Class phpMorphy_Fsa_Sparse_Shm
This file is autogenerated at Wed, 14 Oct 2009 01:33:59 +0400, don`t change
it!
-
phpMorphy_Fsa
implements
phpMorphy_Fsa_Interface
-
phpMorphy_Fsa_Sparse_Shm
Methods summary
public
boolean
|
#
walk( mixed $trans, string $word, boolean $readAnnot = true )
Find word in automat
Parameters
- $trans
- mixed $trans starting transition
- $word
- string $word
- $readAnnot
- bool $readAnnot read annot or simple check if word exists in automat
Returns
boolean TRUE if word is found, FALSE otherwise
|
public
|
#
collect( mixed $startNode, mixed $callback, boolean $readAnnot = true, string $path = '' )
Traverse automat and collect words For each found words $callback function
invoked with follow arguments: call_user_func($callback, $word, $annot) when
$readAnnot is FALSE then $annot arg is always NULL
Traverse automat and collect words For each found words $callback function
invoked with follow arguments: call_user_func($callback, $word, $annot) when
$readAnnot is FALSE then $annot arg is always NULL
Parameters
- $startNode
- mixed $startNode
- $callback
- mixed $callback callback function(in php format callback i.e. string or
array(obj, method) or array(class, method)
- $readAnnot
- bool $readAnnot read annot
- $path
- string $path string to be append to all words
|
public
array
|
#
readState( integer $index )
Read state at given index
Read state at given index
Parameters
Returns
array array
|
public
array
|
#
unpackTranses( mixed $rawTranses )
Unpack transition from binary form to array
Unpack transition from binary form to array
Parameters
- $rawTranses
- mixed $rawTranses may be array for convert more than one transitions
Returns
array array
|
protected
|
|
protected
|
|
public
string
|
#
getAnnot( array $trans )
Return annotation for given transition(if annotation flag is set for given
trans)
Return annotation for given transition(if annotation flag is set for given
trans)
Parameters
Returns
string string
|
public
|
|
create(),
createState(),
getAlphabet(),
getRootState(),
getRootStateIndex(),
getRootTrans(),
phpMorphy_Fsa(),
readHeader(),
validateHeader()
Magic methods summary
Constants summary
HEADER_SIZE
Properties summary
$alphabet,
$fsa_start,
$header,
$resource,
$root_trans
[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the
Silverstripe Forums to ask development related questions.
-