コード例 #1
0
ファイル: morphiers.php プロジェクト: antixrist/phpMorphy
 function __construct(phpMorphy_Fsa_Interface $fsa, phpMorphy_Morphier_Helper $helper)
 {
     $this->fsa = $fsa;
     $this->root_trans = $fsa->getRootTrans();
     $this->helper = clone $helper;
     $this->helper->setAnnotDecoder($this->createAnnotDecoder($helper));
     $this->graminfo = $helper->getGramInfo();
 }
コード例 #2
0
ファイル: source.php プロジェクト: Blu2z/implsk
 function __construct(phpMorphy_Fsa_Interface $fsa)
 {
     $this->fsa = $fsa;
     $this->root = $fsa->getRootTrans();
 }
コード例 #3
0
ファイル: fsa_state.php プロジェクト: antixrist/phpMorphy
 function __construct(phpMorphy_Fsa_Interface $fsa, $index)
 {
     $this->fsa = $fsa;
     $this->raw_transes = $fsa->readState($index);
     $this->transes = $fsa->unpackTranses($this->raw_transes);
 }