Example #1
0
 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();
 }
Example #2
0
 function __construct(phpMorphy_Fsa_Interface $fsa)
 {
     $this->fsa = $fsa;
     $this->root = $fsa->getRootTrans();
 }
Example #3
0
 function __construct(phpMorphy_Fsa_Interface $fsa, $index)
 {
     $this->fsa = $fsa;
     $this->raw_transes = $fsa->readState($index);
     $this->transes = $fsa->unpackTranses($this->raw_transes);
 }