keyword_extract
Extract weighted keywords from text using TF-IDF or TextRank for Chinese, with word-frequency fallback for English to enable cheap preprocessing.
Instructions
Keyword extraction with weights. Chinese: jieba TF-IDF or TextRank. English: word-frequency fallback (honest, cheap, deterministic).
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": "keyword_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| top_k | No | ||
| method | No | tfidf |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||