Skip to content

Commit

Permalink
Fix searched entity in entities() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliensalinas committed Aug 11, 2022
1 parent 77c6a21 commit b88cc82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Client {
entities(text, searchedEntity = null) {
const payload = {
'text': text,
'searchedEntity': searchedEntity
'searched_entity': searchedEntity
};

return axios.post(this.rootURL + '/' + 'entities', payload, { headers: this.headers })
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nlpcloud",
"version": "1.0.25",
"version": "1.0.26",
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text generation, blog post generation, code generation, question answering, machine translation, language detection, semantic similarity, tokenization, POS tagging, embeddings, and dependency parsing. It is ready for production, served through a REST API.\n\nThis is the Node.js client for the NLP Cloud API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b88cc82

Please sign in to comment.