PHP Class TextAnalysis\Collocations\CollocationFinder

Author: yooper
Afficher le fichier Open project: yooper/php-text-analysis Class Usage Examples

Protected Properties

Свойство Type Description
$nGramSize
$tokens

Méthodes publiques

Méthode Description
__construct ( array $tokens, $nGramSize = 2 )
getCollocations ( ) : array Returns a naive implementation of collocations
getCollocationsByPmi ( ) : array Compute the Pointwise Mutual Information on the collocations

Method Details

__construct() public méthode

public __construct ( array $tokens, $nGramSize = 2 )
$tokens array

getCollocations() public méthode

Returns a naive implementation of collocations
public getCollocations ( ) : array
Résultat array

getCollocationsByPmi() public méthode

Compute the Pointwise Mutual Information on the collocations
public getCollocationsByPmi ( ) : array
Résultat array

Property Details

$nGramSize protected_oe property

protected $nGramSize

$tokens protected_oe property

protected $tokens