PHP 클래스 TextAnalysis\Collocations\CollocationFinder

저자: yooper
파일 보기 프로젝트 열기: yooper/php-text-analysis 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$nGramSize
$tokens

공개 메소드들

메소드 설명
__construct ( array $tokens, $nGramSize = 2 )
getCollocations ( ) : array Returns a naive implementation of collocations
getCollocationsByPmi ( ) : array Compute the Pointwise Mutual Information on the collocations

메소드 상세

__construct() 공개 메소드

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

getCollocations() 공개 메소드

Returns a naive implementation of collocations
public getCollocations ( ) : array
리턴 array

getCollocationsByPmi() 공개 메소드

Compute the Pointwise Mutual Information on the collocations
public getCollocationsByPmi ( ) : array
리턴 array

프로퍼티 상세

$nGramSize 보호되어 있는 프로퍼티

protected $nGramSize

$tokens 보호되어 있는 프로퍼티

protected $tokens