New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nlpcloud

Package Overview
Dependencies
Maintainers
1
Versions
58
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.40 to 1.0.41

2

dist/index.d.ts

@@ -191,3 +191,3 @@ export = Client;

}>;
semanticSearch(text: string): Promise<{
semanticSearch(text: string, numResults: number): Promise<{
status: number;

@@ -194,0 +194,0 @@ statusText: string;

@@ -208,5 +208,6 @@ const axios = require('axios')

semanticSearch(text) {
semanticSearch(text, numResults = null) {
const payload = {
'text': text
'text': text,
'num_results': numResults
};

@@ -213,0 +214,0 @@

{
"name": "nlpcloud",
"version": "1.0.40",
"version": "1.0.41",
"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, 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",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -157,3 +157,3 @@ # Node.js Client For NLP Cloud

const client = new NLPCloudClient("<model>", "<your token>", false, '<your language code>', true)
const client = new NLPCloudClient('<model>', '<your token>', false, '<your language code>', true)
```

@@ -164,3 +164,3 @@

```js
client.asyncResult("https://api.nlpcloud.io/v1/get-async-result/21718218-42e8-4be9-a67f-b7e18e03b436")
client.asyncResult('https://api.nlpcloud.io/v1/get-async-result/21718218-42e8-4be9-a67f-b7e18e03b436')
```

@@ -173,3 +173,3 @@

```js
client.adGeneration(["keyword 1", "keyword 2", ...])
client.adGeneration(['keyword 1', 'keyword 2', ...])
```

@@ -179,6 +179,10 @@

Call the `asr()` method and pass the url that hosts your audio or video file.
Call the `asr()` method and pass the following arguments:
1. (Optional: either this or the encoded file should be set) `url`: a URL where your audio or video file is hosted
1. (Optional: either this or the url should be set) `encodedFile`: a base 64 encoded version of your file
1. (Optional) `inputLanguage`: the language of your file as ISO code
```js
client.asr("Your url")
client.asr('Your url')
```

@@ -191,3 +195,3 @@

```js
client.articleGeneration("<Your title>")
client.articleGeneration('<Your title>')
```

@@ -204,3 +208,3 @@

```js
client.chatbot("<Your input>")
client.chatbot('<Your input>')
```

@@ -217,3 +221,3 @@

```js
client.classification("<Your block of text>", ["label 1", "label 2", ...])
client.classification('<Your block of text>', ['label 1', 'label 2', ...])
```

@@ -226,3 +230,3 @@

```js
client.codeGeneration("<Your instruction>")
client.codeGeneration('<Your instruction>')
```

@@ -235,3 +239,3 @@

```js
client.dependencies("<Your block of text>")
client.dependencies('<Your block of text>')
```

@@ -244,3 +248,3 @@

```js
client.embeddings(["<Text 1>", "<Text 2>", "<Text 3>", ...])
client.embeddings(['<Text 1>', '<Text 2>', '<Text 3>', ...])
```

@@ -255,3 +259,3 @@

```js
client.entities("<Your block of text>")
client.entities('<Your block of text>')
```

@@ -283,3 +287,3 @@

```js
client.generation("<Your input text>")
client.generation('<Your input text>')
```

@@ -292,3 +296,3 @@

```js
client.gsCorrection("<The text you want to correct>")
client.gsCorrection('<The text you want to correct>')
```

@@ -301,3 +305,3 @@

```js
client.imageGeneration("<Your text instruction>")
client.imageGeneration('<Your text instruction>')
```

@@ -310,3 +314,3 @@

```js
client.intentClassification("<The text you want to analyze>")
client.intentClassification('<The text you want to analyze>')
```

@@ -319,3 +323,3 @@

```js
client.kwKpExtraction("<The text you want to analyze>")
client.kwKpExtraction('<The text you want to analyze>')
```

@@ -328,3 +332,3 @@

```js
client.langdetection("<The text you want to analyze>")
client.langdetection('<The text you want to analyze>')
```

@@ -348,3 +352,3 @@

```js
client.question("<Your question>","<Your context>")
client.question('<Your question>','<Your context>')
```

@@ -357,3 +361,3 @@

```python
client.semanticSearch("Your search query")
client.semanticSearch('Your search query')
```

@@ -368,3 +372,3 @@

```python
client.semanticSimilarity(["<Block of text 1>", "<Block of text 2>"])
client.semanticSimilarity(['<Block of text 1>', '<Block of text 2>'])
```

@@ -379,3 +383,3 @@

```js
client.sentenceDependencies("<Your block of text>")
client.sentenceDependencies('<Your block of text>')
```

@@ -388,3 +392,3 @@

```js
client.sentiment("<Your block of text>")
client.sentiment('<Your block of text>')
```

@@ -397,3 +401,3 @@

```js
client.summarization("<Your text to summarize>")
client.summarization('<Your text to summarize>')
```

@@ -406,3 +410,3 @@

```js
client.paraphrasing("<Your text to paraphrase>")
client.paraphrasing('<Your text to paraphrase>')
```

@@ -415,3 +419,3 @@

```js
client.tokens("<Your block of text>")
client.tokens('<Your block of text>')
```

@@ -424,3 +428,3 @@

```js
client.translation("<Your text to translate>")
client.translation('<Your text to translate>')
```
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