factory() public static method

public static factory ( string $language = 'English' ) : StopWords
$language string
return StopWords
コード例 #1
0
ファイル: StopWordsTest.php プロジェクト: php-ai/php-ml
 public function testPolishStopWords()
 {
     $stopWords = StopWords::factory('Polish');
     $this->assertTrue($stopWords->isStopWord('wam'));
     $this->assertFalse($stopWords->isStopWord('transhumanizm'));
 }