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.14 to 1.0.15

5

index.js

@@ -48,3 +48,3 @@ const axios = require('axios')

noRepeatNgramSize = null, numReturnSequences = null, topK = null, topP = null,
temperature = null, repetitionPenalty = null, lengthPenalty = null, badWords = null) {
temperature = null, repetitionPenalty = null, lengthPenalty = null, badWords = null, removeEndSequence = null) {
const payload = {

@@ -67,3 +67,4 @@ 'text': text,

'length_penalty': lengthPenalty,
'bad_words': badWords
'bad_words': badWords,
'remove_end_sequence': removeEndSequence
};

@@ -70,0 +71,0 @@

2

package.json
{
"name": "nlpcloud",
"version": "1.0.14",
"version": "1.0.15",
"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, tokenization, POS tagging, 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",

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

1. (Optional) `endSequence`: A specific token that should be the end of the generated sequence, as a string. For example if could be `.` or `\n` or `###` or anything else below 10 characters.
1. (Optional) `removeEndSequence`: Whether you want to remove the end sequence form the result, as a boolean. Defaults to false.
1. (Optional) `removeInput`: Whether you want to remove the input text form the result, as a boolean. Defaults to false.

@@ -149,0 +150,0 @@ 1. (Optional) `doSample`: Whether or not to use sampling ; use greedy decoding otherwise, as a boolean. Defaults to true.

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