Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nlpcloud

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlpcloud - npm Package Compare versions

Comparing version 1.0.45 to 1.0.46

7

dist/index.d.ts

@@ -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 = {

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc