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

List of all members.

Classes

class  ActiveFrame
class  Derivation
class  FileChoiceListener
class  SentenceListListener

Static Public Member Functions

static void main (String[] argv)

Static Public Attributes

static final int DEFAULT_WIDTH = 640
static final int DEFAULT_HEIGHT = 480

Static Private Member Functions

static void initializeJComponents ()
static JMenuBar createJMenuBar ()
static void populateSourceList ()
static void populateTargetList ()
static void setNBestLists ()

Static Private Attributes

static JFrame chooserFrame
static JList sourceList
static JList targetList
static File sourceFile
static File targetFile
static LinkedList< String >[] nBestLists
static JFileChooser fileChooser
static ActiveFrame activeFrame

Detailed Description

A stand-alone application for viewing derivation trees. Given files holding the source-side sentences and n-best output from the Joshua decoder, the user can browse through visualizations showing derivation trees for each sentence.

Author:
jonny

Member Function Documentation

static JMenuBar joshua.ui.tree_visualizer.DerivationBrowser.createJMenuBar ( ) [static, private]

Creates the menu bar for the chooser frame. We put this in a seperate method so that it can be easily found and changed if need be.

Returns:
the menu bar for the chooser frame

Here is the caller graph for this function:

Initializes the various components in the chooser frame. The two JLists are laid out, and a menu bar is attached.

Here is the call graph for this function:

Here is the caller graph for this function:

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

The main method.

Parameters:
argvcommand-line parameters. Can specify the source or target file.

Here is the call graph for this function:

Displays the source-side sentences in their list. This method is called whenever the source- side file is changed.

Here is the caller graph for this function:

Displays the candidate translations for the current source sentence in their list. This method is called whenever the source list's selected value is changed.

Here is the caller graph for this function:

Reads in the currently set target file and organizes it into seperate n-best lists. Each n-best list corresponds to a different source sentence.

Here is the caller graph for this function:


Member Data Documentation

The active frame is the frame that displays a derivation tree for the currently selected candidate translation.

A frame that displays the list of source-side sentences and the list of target-side sentences.

A JFileChooser to allow the user to choose the source or target file.

LinkedList<String> [] joshua.ui.tree_visualizer.DerivationBrowser.nBestLists [static, private]

Each member of this array is a linked list holding the candidate translations for one particular sentence.

A file containing source-side sentences.

A list that will display all the sentences in the current source-side file.

A file containing candidate translations for all source sentences, annotated with source-side alignments.

A list that will display all the candidate translations for the currently-selected source sentence.