|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Node (int id) | |
| int | getNumber () |
| Iterable< Arc< Label > > | getOutgoingArcs () |
| Iterable< Node< Label > > | reachableNodes () |
| void | addArc (Node< Label > destination, double weight, Label label) |
| int | size () |
| String | toString () |
Package Attributes | |
| final Integer | id |
| final List< Arc< Label > > | outgoingArcs |
A node in a directed graph.
| <Label> | Type of label associated with an arc. |
| joshua.lattice.Node< Label >.Node | ( | int | id | ) |
Constructs a new node with the specified numeric identifier.
Adds a new outgoing arc to this node that points to the specified destination. The new arc will have the specified weight and specified label.
| destination | Destination node of the new outgoing arc. |
| weight | Weight of the new outgoing arc. |
| label | Label of the new outgoing arc. |
| int joshua.lattice.Node< Label >.getNumber | ( | ) |
Gets the numeric integer identifier of this node.
| Iterable<Arc<Label> > joshua.lattice.Node< Label >.getOutgoingArcs | ( | ) |
Gets the arcs that begin at this node.
| Iterable<Node<Label> > joshua.lattice.Node< Label >.reachableNodes | ( | ) |
Gets an iterable object capable of iterating over all nodes directly reachable from this node. This will be all nodes which are the target of an outgoing arc from this node.
| int joshua.lattice.Node< Label >.size | ( | ) |
Gets the number of outgoing arcs that begin at this node.
| String joshua.lattice.Node< Label >.toString | ( | ) |
final Integer joshua.lattice.Node< Label >.id [package] |
Numeric integer identifier of this node. Package-private scope so that Lattice can quickly access this variable.
final List<Arc<Label> > joshua.lattice.Node< Label >.outgoingArcs [package] |
Arcs which begin at this node. Package-private scope so that Lattice can quickly access this variable.