ngram_extract
Extract and count word- or character-level n-grams from text to identify frequent phrases or patterns, with configurable n, top results, and mode.
Instructions
Extract and count n-grams (word or character level) from text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | N-gram size (default 2). | |
| top | No | Number of top entries to return (default 20). | |
| mode | No | 'word' (default) or 'character'. | |
| text | Yes | Text to analyse. |