Comparing version 1.0.19 to 1.0.20
@@ -99,2 +99,10 @@ const axios = require('axios') | ||
paraphrasing(text) { | ||
const payload = { | ||
'text': text | ||
}; | ||
return axios.post(this.rootURL + '/' + 'paraphrasing', payload, { headers: this.headers }) | ||
} | ||
translation(text) { | ||
@@ -101,0 +109,0 @@ const payload = { |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.19", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, text 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", | ||
"version": "1.0.20", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text 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", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -192,2 +192,10 @@ # Node.js Client For NLP Cloud | ||
### Paraphrasing Endpoint | ||
Call the `paraphrasing()` method and pass the text you want to paraphrase. | ||
```js | ||
client.paraphrasing("<Your text to paraphrase>") | ||
``` | ||
### Translation Endpoint | ||
@@ -194,0 +202,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22186
274
267