Comparing version 1.0.14 to 1.0.15
@@ -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 @@ |
{ | ||
"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. |
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
17125
139
241