generate_ngrams
Extract n-grams from token lists to analyze text patterns and linguistic structures for natural language processing tasks.
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 |