class documentation
This class defines a set of transition which is applied to a configuration to get another configuration Note that for different parsing algorithm, the transition is different.
| Method | __init__ |
No summary |
| Method | left |
:return : A new configuration or -1 if the pre-condition is not satisfied |
| Method | reduce |
:return : A new configuration or -1 if the pre-condition is not satisfied |
| Method | right |
:return : A new configuration or -1 if the pre-condition is not satisfied |
| Method | shift |
:return : A new configuration or -1 if the pre-condition is not satisfied |
| Constant | LEFT |
Undocumented |
| Constant | REDUCE |
Undocumented |
| Constant | RIGHT |
Undocumented |
| Constant | SHIFT |
Undocumented |
| Instance Variable | _algo |
Undocumented |
| Parameters | |
| alg | the algorithm option of this parser. Currently support arc-standard and arc-eager algorithm |
- Note that the algorithm for left-arc is quite similar except for precondition for both arc-standard and arc-eager
- :return : A new configuration or -1 if the pre-condition is not satisfied
| Parameters | |
| conf | Undocumented |
| relation | Undocumented |
| configuration | is the current configuration |
- Note that the algorithm for reduce is only available for arc-eager
- :return : A new configuration or -1 if the pre-condition is not satisfied
| Parameters | |
| conf | Undocumented |
| configuration | is the current configuration |
- Note that the algorithm for right-arc is DIFFERENT for arc-standard and arc-eager
- :return : A new configuration or -1 if the pre-condition is not satisfied
| Parameters | |
| conf | Undocumented |
| relation | Undocumented |
| configuration | is the current configuration |