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