sentiment
Classify text polarity in English or Chinese using installed pretrained models, returning compound scores or per-sentence labels and auto-selecting an available engine.
Instructions
Sentiment classification with pretrained models.
English: NLTK VADER (valence lexicon, compound score). Chinese: stanza neural classifier (REN model) with per-sentence labels - a trained model, not a lexicon lookup. Use auto to get the best installed engine.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "sentiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | auto | |
| text | Yes | ||
| engine | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||