Comparing version 1.0.22 to 1.0.23
@@ -206,5 +206,7 @@ const axios = require('axios') | ||
translation(text) { | ||
translation(text, source, target) { | ||
const payload = { | ||
'text': text | ||
'text': text, | ||
'source': source, | ||
'target': target | ||
}; | ||
@@ -211,0 +213,0 @@ |
{ | ||
"name": "nlpcloud", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "NLP Cloud serves high performance pre-trained or custom models for NER, sentiment-analysis, classification, summarization, paraphrasing, 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", |
29511
367