Skip to content

Commit fc82209

Browse files
Update plagiarism_detection_es.ipynb (#156)
* Update plagiarism_detection_es.ipynb updated to latest eland version * update plagiarism_detection_es.ipynb quotes escaped
1 parent 4817bc7 commit fc82209

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

supporting-blog-content/plagiarism-detection-with-elasticsearch/plagiarism_detection_es.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"# Set the model name from Hugging Face and task type\n",
9292
"# open ai detector model - developed by open ai https://github.com/openai/gpt-2-output-dataset/tree/master/detector\n",
9393
"hf_model_id='roberta-base-openai-detector'\n",
94-
"tm = TransformerModel(hf_model_id, \"text_classification\")\n",
94+
"tm = TransformerModel(model_id=hf_model_id, task_type=\"text_classification\")\n",
9595
"\n",
9696
"#set the modelID as it is named in Elasticsearch\n",
9797
"es_model_id = tm.elasticsearch_model_id()\n",
@@ -121,7 +121,7 @@
121121
"# Set the model name from Hugging Face and task type\n",
122122
"# sentence-transformers model\n",
123123
"hf_model_id='sentence-transformers/all-mpnet-base-v2'\n",
124-
"tm = TransformerModel(hf_model_id, \"text_embedding\")\n",
124+
"tm = TransformerModel(model_id=hf_model_id, task_type=\"text_embedding\")\n",
125125
"\n",
126126
"#set the modelID as it is named in Elasticsearch\n",
127127
"es_model_id = tm.elasticsearch_model_id()\n",

0 commit comments

Comments
 (0)