TinySegmenter is super compact Japanese tokenizer originally developed by Taku Kudo . For details, see http://chasen.org/~taku/software/TinySegmenter Original PHP version was developed by xnights . For details, see http://programming-magic.com/?id=172 This class is a simple rework to use JpnForPhp helper methods.
Автор: Axel Bodart (@akeru)
Пример #1
0
 /**
  * Segments the given string to its various part of speech components
  *
  * @param string $str The string to segment
  * @return array Segments parts of the given string
  */
 public static function segment($str)
 {
     $segmenter = new TinySegmenter();
     return $segmenter->segment($str);
 }