Comparing version 1.0.8 to 1.0.9
@@ -57,2 +57,10 @@ const axios = require('axios') | ||
translation(text) { | ||
const payload = { | ||
'text': text | ||
}; | ||
return axios.post(this.rootURL + '/' + 'translation', payload, { headers: this.headers }) | ||
} | ||
dependencies(text) { | ||
@@ -59,0 +67,0 @@ const payload = { |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Node.js client for the NLP Cloud API. NLP Cloud serves high performance pre-trained and custom models for NER, sentiment-analysis, classification, summarization, question answering, and POS tagging, ready for production, served through a REST API.\n\nMore details here: https://nlpcloud.io\n\nDocumentation: https://docs.nlpcloud.io", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -151,2 +151,10 @@ # Node.js Client For NLP Cloud | ||
### Translation Endpoint | ||
Call the `translation()` method and pass the text you want to translate. | ||
```js | ||
client.translation("<Your text to translate>") | ||
``` | ||
### Dependencies Endpoint | ||
@@ -153,0 +161,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
10698
89
183