Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def load_sparknlp_models():
|
|
154 |
try:
|
155 |
if embeddings_name=="glove_100d":
|
156 |
model_dict[embeddings_name]= WordEmbeddingsModel.pretrained(embeddings_name, "en")\
|
157 |
-
.setInputCols("sentence", "token")\
|
158 |
.setOutputCol("embeddings")
|
159 |
|
160 |
elif embeddings_name=="elmo":
|
|
|
154 |
try:
|
155 |
if embeddings_name=="glove_100d":
|
156 |
model_dict[embeddings_name]= WordEmbeddingsModel.pretrained(embeddings_name, "en")\
|
157 |
+
.setInputCols(["sentence", "token"])\
|
158 |
.setOutputCol("embeddings")
|
159 |
|
160 |
elif embeddings_name=="elmo":
|