get_collocations
Get collocations for a query in a corpus by specifying the collocation attribute (e.g., word, lemma) to analyze word co-occurrence patterns.
Instructions
Get collocations for a query
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": {
"corpname": "<corpname>",
"q": "<q>",
"cattr": "<cattr>"
},
"name": "get_collocations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Query string | |
| cattr | Yes | Collocation attribute (e.g., 'word', 'lemma') | |
| format | No | Response format | json |
| corpname | Yes | Name of the corpus |