예제 #1
0
 /**
  * @param phpMorphy_Fsa_FsaInterface $fsa
  * @param phpMorphy_Helper $helper
  */
 function __construct(phpMorphy_Fsa_FsaInterface $fsa, phpMorphy_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
 /**
  * Return root transition of fsa
  * @return int
  */
 public function getRootTrans()
 {
     $result = $this->object->getRootTrans();
     return $result === $this->object ? $this : $result;
 }
예제 #3
0
 /**
  * @param phpMorphy_Fsa_FsaInterface $fsa
  */
 function __construct(phpMorphy_Fsa_FsaInterface $fsa)
 {
     $this->fsa = $fsa;
     $this->root = $fsa->getRootTrans();
 }