Closed C-K-Loan closed 3 years ago
I have more info on this:
Deprecated Models in Spark NLP 3.0.x These don't have TF2.0 SavedModel on TF Hub yet
It was already reported here and we are waiting: https://github.com/tensorflow/hub/issues/735
I'll keep this issue open for other users. Thanks @C-K-Loan
@C-K-Loan to extend the last comment, the following models however should work. I have found the issue and it will be fixed in the next release:
tfhub_use_multi
tfhub_use_multi_lg
Description
Loading
UniversalSentenceEncoder.pretrained("tfhub_use_multi_lg", "xx")
causes TF exceptions beeing thrownSteps to Reproduce
Other Multi Lingual Models tested, that work fine
WordEmbeddingsModel.pretrained('glove_840B_300','xx')\
BertSentenceEmbeddings.pretrained("labse", "xx")
BertSentenceEmbeddings.pretrained("sent_bert_multi_cased", "xx")
Your Environment
sparknlp.version()
: 3.0.1spark.version
: 3.0.2java -version
: 1.8!wget http://setup.johnsnowlabs.com/colab.sh -O - | bash