Property | Type | Description | |
---|---|---|---|
$nGramSize | |||
$tokens |
Method | Description | |
---|---|---|
__construct ( array $tokens, $nGramSize = 2 ) | ||
getCollocations ( ) : array | Returns a naive implementation of collocations | |
getCollocationsByPmi ( ) : array | Compute the Pointwise Mutual Information on the collocations |
public getCollocations ( ) : array | ||
return | array |
public getCollocationsByPmi ( ) : array | ||
return | array |