예제 #1
0
 /**
  * Unpack transition from binary form to array
  *
  * @param string|string[] $rawTranses may be array for convert more than one transitions
  * @return array
  */
 public function unpackTranses($rawTranses)
 {
     $result = $this->object->unpackTranses($rawTranses);
     return $result === $this->object ? $this : $result;
 }
예제 #2
0
 function phpMorphy_Fsa_State(phpMorphy_Fsa_FsaInterface $fsa, $index)
 {
     $this->fsa = $fsa;
     $this->raw_transes = $fsa->readState($index);
     $this->transes = $fsa->unpackTranses($this->raw_transes);
 }