Comparing version 1.0.17 to 1.0.18
@@ -35,3 +35,3 @@ const axios = require('axios') | ||
classification(text, labels, multiClass = null) { | ||
classification(text, labels = null, multiClass = null) { | ||
const payload = { | ||
@@ -82,6 +82,6 @@ 'text': text, | ||
question(context, question) { | ||
question(question, context = null) { | ||
const payload = { | ||
'context': context, | ||
'question': question | ||
'question': question, | ||
'context': context | ||
}; | ||
@@ -88,0 +88,0 @@ |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"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, 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", |
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
21775