generate_ngrams
Generate n-grams from a list of tokens for text analysis. Returns a list of n-gram lists, useful for language modeling and feature extraction.
Instructions
Generate n-grams from a list of tokens. Returns list of n-gram lists.
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": {
"tokens": "<tokens>"
},
"name": "generate_ngrams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | ||
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |