PHP Class Phpml\FeatureExtraction\StopWords

Show file Open project: php-ai/php-ml Class Usage Examples

Protected Properties

Property Type Description
$stopWords array

Public Methods

Method Description
__construct ( array $stopWords )
factory ( string $language = 'English' ) : StopWords
isStopWord ( string $token ) : boolean

Method Details

__construct() public method

public __construct ( array $stopWords )
$stopWords array

factory() public static method

public static factory ( string $language = 'English' ) : StopWords
$language string
return StopWords

isStopWord() public method

public isStopWord ( string $token ) : boolean
$token string
return boolean

Property Details

$stopWords protected property

protected array $stopWords
return array