Function LangTokeniser_EN->word_list_to_word_ngrams
Definitions
sources/lang_tokeniser_EN.php
- Convert a simple word list into a list of ngrams, taking into account we want to do sequencing.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$word_ngrams | array | required parameter | N/A | N/A | Write word ngrams into here (along with a boolean to indicate whether they are a boolean ngram) |
$word_list | array | required parameter | N/A | N/A | List of words |
$max_ngram_size | integer | required parameter | N/A | N/A | The maximum number of ngrams (typically words) to sequence together |