예제 #1
0
 /**
  * @dataProvider stopWordProvider
  */
 public function testIsStopWord($languageCode, $word, $expected)
 {
     $instane = new CdbStopwordAnalyzer(CdbStopwordAnalyzer::getTargetByLanguage($languageCode));
     $this->assertEquals($expected, $instane->isStopWord($word));
 }
예제 #2
0
 /**
  * @since 0.1
  *
  * @return StopwordAnalyzer
  */
 public function newCdbStopwordAnalyzer($languageCode = null)
 {
     return new CdbStopwordAnalyzer(CdbStopwordAnalyzer::getTargetByLanguage($languageCode));
 }