PHP Class TextAnalysis\Corpus\ReadCorpusAbstract

显示文件 Open project: yooper/php-text-analysis

Protected Properties

Property Type Description
$dir the directory the corpus files are located
$lang which language to use, default is eng

Public Methods

Method Description
__construct ( string $dir, string $lang = 'eng' )
getDir ( ) : string
getFileNames ( ) : string[]
getLanguage ( ) : string

Method Details

__construct() public method

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 method

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

getFileNames() abstract public method

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

getLanguage() public method

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

Property Details

$dir protected_oe property

the directory the corpus files are located
protected $dir

$lang protected_oe property

which language to use, default is eng
protected $lang