PHP 클래스 TextAnalysis\Corpus\ReadCorpusAbstract

파일 보기 프로젝트 열기: yooper/php-text-analysis

보호된 프로퍼티들

프로퍼티 타입 설명
$dir the directory the corpus files are located
$lang which language to use, default is eng

공개 메소드들

메소드 설명
__construct ( string $dir, string $lang = 'eng' )
getDir ( ) : string
getFileNames ( ) : string[]
getLanguage ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $dir, string $lang = 'eng' )
$dir string the directory the corpus files are located
$lang string language to use, default is eng

getDir() 공개 메소드

public getDir ( ) : string
리턴 string the directory the corpus files are located

getFileNames() 추상적인 공개 메소드

abstract public getFileNames ( ) : string[]
리턴 string[] Return the list of file names that must be loaded to use the corpus Should use relative paths

getLanguage() 공개 메소드

public getLanguage ( ) : string
리턴 string language to use, default is eng

프로퍼티 상세

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

the directory the corpus files are located
protected $dir

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

which language to use, default is eng
protected $lang