프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$filePaths | Array of file paths of documents to be scanned | ||
$mode | |||
$stopWords | array |
메소드 | 설명 | |
---|---|---|
__construct ( array $filePaths, integer $mode = self::MODE_FREQ ) | ||
__destruct ( ) | ||
getFilePaths ( ) : string[] | Returns the array of file paths | |
getStopwords ( ) : string[] | Returns an array of stop words and their frequencies |
메소드 | 설명 | |
---|---|---|
computeUsingFreqDist ( array $tokens ) | Adds frequency counts to the stopWords property | |
getFileContent ( string $filePath ) : string | Returns the text content from the file |
public __construct ( array $filePaths, integer $mode = self::MODE_FREQ ) | ||
$filePaths | array | |
$mode | integer |
protected computeUsingFreqDist ( array $tokens ) | ||
$tokens | array |
protected getFileContent ( string $filePath ) : string | ||
$filePath | string | |
리턴 | string |
public getFilePaths ( ) : string[] | ||
리턴 | string[] |
public getStopwords ( ) : string[] | ||
리턴 | string[] |