PHP Класс TextAnalysis\NGrams\NGramFactory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
create ( array $tokens, integer $nGramSize = self::BIGRAM, $separator = ' ' ) : array Generate Ngrams from the tokens

Защищенные методы

Метод Описание
__construct ( ) Protect the constructor

Описание методов

__construct() защищенный Метод

Protect the constructor
protected __construct ( )

create() публичный статический Метод

Generate Ngrams from the tokens
public static create ( array $tokens, integer $nGramSize = self::BIGRAM, $separator = ' ' ) : array
$tokens array
$nGramSize integer
Результат array return an array of the ngrams