|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Node (String label, boolean isSource) | |
| String | toString () |
Public Attributes | |
| final String | label |
| final boolean | isSource |
| boolean | isHighlighted = false |
A representation of a node in a derivation tree. The derivation tree class itself is parameterized in terms of this class and the DerivationEdge class. A Node may represent either a non-terminal symbol or one or more terminal symbols of the derivation.
| joshua.ui.tree_visualizer.Node.Node | ( | String | label, |
| boolean | isSource | ||
| ) |
Constructor used for root nodes or nodes whose parent is not given.
| label | a String that represents the symbols at this node |
| isSource | a boolean saying whether this is a source-side node |
| String joshua.ui.tree_visualizer.Node.toString | ( | ) |
| boolean joshua.ui.tree_visualizer.Node.isHighlighted = false |
A boolean to let the renderer know whether this vertex is highlighted.
| final boolean joshua.ui.tree_visualizer.Node.isSource |
Indicates whether this node is part of the source-side of target- side derivation tree.
| final String joshua.ui.tree_visualizer.Node.label |
The label to be shown on the node. If the node is a non-terminal symbol, it is the name of the symbol. Otherwise, it is terminal symbols joined with spaces.