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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | ||
| n | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |