Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
joshua.ui.tree_visualizer.DerivationTree Class Reference
Inheritance diagram for joshua.ui.tree_visualizer.DerivationTree:
[legend]
Collaboration diagram for joshua.ui.tree_visualizer.DerivationTree:
[legend]

List of all members.

Public Member Functions

 DerivationTree (String tree)
 DerivationTree (String tree, String source)
Node getRoot ()
Node getSourceRoot ()
void addCorrespondences ()
void setSubtreeHighlight (Node n, boolean b)

Static Public Member Functions

static void main (String[] argv)

Static Public Attributes

static final String DELIMITER = "\\|\\|\\|"
static final String SPACE = "\\s+"
static final int TGT_LINE = 1
static final int SRC_LINE = 1

Package Attributes

Node picked

Private Member Functions

void graph (String tree)
int treeToGraph (String[] toks, Node parent, int curr)
Node addVertexWithContext (String child, Node parent, boolean isSource)
int addSourceNodes (Node curr, Node parent, int currentSourceIndex)

Private Attributes

Node root
Node sourceRoot
String source
LinkedList< Nodevertices

Static Private Attributes

static final long serialVersionUID = 2914449263979566324L

Constructor & Destructor Documentation

Here is the call graph for this function:

Here is the caller graph for this function:

joshua.ui.tree_visualizer.DerivationTree.DerivationTree ( String  tree,
String  source 
)

Here is the call graph for this function:


Member Function Documentation

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.ui.tree_visualizer.DerivationTree.addSourceNodes ( Node  curr,
Node  parent,
int  currentSourceIndex 
) [private]

Here is the call graph for this function:

Here is the caller graph for this function:

Node joshua.ui.tree_visualizer.DerivationTree.addVertexWithContext ( String  child,
Node  parent,
boolean  isSource 
) [private]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

void joshua.ui.tree_visualizer.DerivationTree.graph ( String  tree) [private]

Here is the call graph for this function:

Here is the caller graph for this function:

static void joshua.ui.tree_visualizer.DerivationTree.main ( String[]  argv) [static]

Here is the call graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

int joshua.ui.tree_visualizer.DerivationTree.treeToGraph ( String[]  toks,
Node  parent,
int  curr 
) [private]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

final String joshua.ui.tree_visualizer.DerivationTree.DELIMITER = "\\|\\|\\|" [static]
final long joshua.ui.tree_visualizer.DerivationTree.serialVersionUID = 2914449263979566324L [static, private]

Eclipse thinks this is necessary.

final String joshua.ui.tree_visualizer.DerivationTree.SPACE = "\\s+" [static]