Function LangTokeniser_EN->text_to_phrases
Definitions
sources/lang_tokeniser_EN.php
- Convert text to phrases (a phrase is a sequence of words that go together, that can be used for ngram sequences).
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $text | string | No | No | required parameter | N/A | N/A | The text |
Returns
- List of phrases
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Convert text to phrases (a phrase is a sequence of words that go together, that can be used for ngram sequences).
*
* @param string $text The text
* @return array List of phrases
*/
protected function text_to_phrases(string $text) : array
* Convert text to phrases (a phrase is a sequence of words that go together, that can be used for ngram sequences).
*
* @param string $text The text
* @return array List of phrases
*/
protected function text_to_phrases(string $text) : array

