Skip to content

Conversation

@priscillaparodi
Copy link
Contributor

updated to latest eland version

updated to latest eland version
@priscillaparodi
Copy link
Contributor Author

#144

"# open ai detector model - developed by open ai https://github.com/openai/gpt-2-output-dataset/tree/master/detector\n",
"hf_model_id='roberta-base-openai-detector'\n",
"tm = TransformerModel(hf_model_id, \"text_classification\")\n",
"tm = TransformerModel(model_id=hf_model_id, task_type="text_classification")\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quotes are not escaped here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated. thank you.

"# sentence-transformers model\n",
"hf_model_id='sentence-transformers/all-mpnet-base-v2'\n",
"tm = TransformerModel(hf_model_id, \"text_embedding\")\n",
"tm = TransformerModel(model_id=hf_model_id, task_type="text_embedding")\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too, the quotes need to be escaped.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated. thank you.

@miguelgrinberg miguelgrinberg merged commit fc82209 into main Jan 9, 2024
@miguelgrinberg miguelgrinberg deleted the priscillaparodi-patch-3 branch January 9, 2024 18:05
miguelgrinberg pushed a commit to miguelgrinberg/elasticsearch-labs that referenced this pull request Jan 17, 2024
* Update plagiarism_detection_es.ipynb

updated to latest eland version

* update plagiarism_detection_es.ipynb

quotes escaped
miguelgrinberg pushed a commit that referenced this pull request Jan 18, 2024
* Update plagiarism_detection_es.ipynb

updated to latest eland version

* update plagiarism_detection_es.ipynb

quotes escaped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants