A state in a mutable FST.
More...
|
| __construct (int $id) |
| Create a new state.
|
|
| addEdge (string $upper, string $lower, State $to) |
| Add an edge from this state to another.
|
|
| writeATT ( $handle) |
| Write the edges of this state to the given $handle as an AT&T format file.
|
|
|
| $id |
|
| $edges = [] |
|
| $isFinal = false |
|
A state in a mutable FST.
◆ __construct()
Wikimedia\LangConv\Construct\State::__construct |
( |
int | $id | ) |
|
Create a new state.
- Parameters
-
int | $id | The index of this state in the parent MutableFST. |
◆ addEdge()
Wikimedia\LangConv\Construct\State::addEdge |
( |
string | $upper, |
|
|
string | $lower, |
|
|
State | $to ) |
Add an edge from this state to another.
- Parameters
-
string | $upper | The token on the upper side of the edge |
string | $lower | The token on the lower side of the edge |
State | $to | The destination of the edge |
◆ writeATT()
Wikimedia\LangConv\Construct\State::writeATT |
( |
| $handle | ) |
|
Write the edges of this state to the given $handle as an AT&T format file.
- Parameters
-
The documentation for this class was generated from the following file: