Comparing version 1.0.45 to 1.0.46
@@ -17,9 +17,2 @@ export = Client; | ||
}>; | ||
articleGeneration(title: string): Promise<{ | ||
status: number; | ||
statusText: string; | ||
data: { | ||
generated_article: string; | ||
}; | ||
}>; | ||
asr(url?: string, encodedFile?: string, inputLanguage?: string): Promise<{ | ||
@@ -26,0 +19,0 @@ status: number; |
@@ -43,10 +43,2 @@ const axios = require('axios') | ||
articleGeneration(title) { | ||
const payload = { | ||
'title': title | ||
}; | ||
return axios.post(this.rootURL + '/' + 'article-generation', payload, { headers: this.headers }) | ||
} | ||
asr(url = null, encodedFile = null, inputLanguage = null) { | ||
@@ -53,0 +45,0 @@ const payload = { |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.45", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text generation, image generation, blog post generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, 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.46", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, text generation, image generation, code generation, question answering, automatic speech recognition, machine translation, language detection, semantic search, semantic similarity, tokenization, POS tagging, speech synthesis, 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": { |
@@ -88,3 +88,3 @@ # Node.js Client For NLP Cloud | ||
const client = new NLPCloudClient('bart-large-cnn','4eC39HqLyjWDarjtT1zdp7dc', true, 'fr') | ||
const client = new NLPCloudClient('bart-large-cnn','4eC39HqLyjWDarjtT1zdp7dc', true, 'fra_Latn') | ||
@@ -145,3 +145,3 @@ client.summarization(`Sur des images aériennes, prises la veille par un vol de surveillance | ||
If you want to use the multilingual add-on in order to process non-English texts, set `lang='<your language code>'` as the 4th argument. For example, if you want to process French text, you should set `lang='fr'` as the 4th argument. | ||
If you want to use the multilingual add-on in order to process non-English texts, set `lang='<your language code>'` as the 4th argument. For example, if you want to process French text, you should set `lang='fra_Latn'` as the 4th argument. | ||
@@ -188,10 +188,2 @@ ```js | ||
### Blog Post Generation Endpoint | ||
Call the `articleGeneration()` method and pass the title of the article you want to generate. | ||
```js | ||
client.articleGeneration('<Your title>') | ||
``` | ||
### Chatbot Endpoint | ||
@@ -198,0 +190,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
34903
499
407