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

List of all members.

Static Public Member Functions

static void main (String[] args)

Static Package Functions

static void incrementCurrentSourceIndex ()
static void decrementCurrentSourceIndex ()
static void setCurrentSourceIndex (int index)
static void incrementCurrentCandidateIndex ()
static void decrementCurrentCandidateIndex ()
static void setCurrentCandidateIndex (int index)
static String getCurrentSourceSentence ()
static String getCurrentReferenceTranslation ()
static ArrayList< String > getCurrentCandidateTranslations ()
static ArrayList< String > getCurrentOneBests ()
static TranslationInfoList getTranslationInfo ()

Static Package Attributes

static ArrayList
< DerivationTreeFrame
activeFrame
static Color[] dataSetColors = {Color.red, Color.orange, Color.blue, Color.green}

Static Private Member Functions

static void initializeChooserFrame ()
static void refreshLists ()

Static Private Attributes

static final String USAGE = "USAGE: Browser <source> <reference> <n-best>"
static int currentSourceIndex
static int currentCandidateIndex
static TranslationInfoList translations
static JList oneBestList
static final int DEFAULT_WIDTH = 640
static final int DEFAULT_HEIGHT = 480

Member Function Documentation

Decrements currentCandidateIndex unless is is already at zero.

Decrements currentSourceIndex, unless it is already at zero.

Here is the caller graph for this function:

static ArrayList<String> joshua.ui.tree_visualizer.browser.Browser.getCurrentCandidateTranslations ( ) [static, package]

Returns the candidate translation currently pointed to by the candidate index.

Returns:
the current candidate translation

Here is the call graph for this function:

Here is the caller graph for this function:

static ArrayList<String> joshua.ui.tree_visualizer.browser.Browser.getCurrentOneBests ( ) [static, package]

Returns the one-best translation text currently pointed to by the source index.

Returns:
the current one-best translation text

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the reference translation for the translation information currently pointed to by the source index.

Returns:
the current reference translation

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the source sentence of the translation information currently pointed to by the source index.

Returns:
the current source sentence

Here is the call graph for this function:

Here is the caller graph for this function:

Returns information about all the translations stored in the source, reference, and n-best files.

Returns:
a TranslationInfoList populated by the current source, reference, and n-best files.

Here is the caller graph for this function:

Increments currentCandidateIndex, unless it is already at its maximum.

Here is the call graph for this function:

Increments currentSourceIndex, unless it is already at its maximum.

Here is the call graph for this function:

Here is the caller graph for this function:

Initializes the various JComponents in the chooser frame.

Here is the call graph for this function:

Here is the caller graph for this function:

static void joshua.ui.tree_visualizer.browser.Browser.main ( String[]  args) [static]
Parameters:
argsthe paths to the source, reference, and n-best files

Here is the call graph for this function:

static void joshua.ui.tree_visualizer.browser.Browser.refreshLists ( ) [static, private]

Removes and re-adds the appropriate values to the reference and one-best lists.

Here is the call graph for this function:

Here is the caller graph for this function:

static void joshua.ui.tree_visualizer.browser.Browser.setCurrentCandidateIndex ( int  index) [static, package]

Sets currentCandidateIndex to the specified value.

Parameters:
indexthe value to assign to currentCandidateIndex

Here is the call graph for this function:

static void joshua.ui.tree_visualizer.browser.Browser.setCurrentSourceIndex ( int  index) [static, package]

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

The current frame that displays a derivation tree.

The index of currentCandidateTranslation in the source sentence's translation information.

The index of currentSourceSentence in the translation information.

Color [] joshua.ui.tree_visualizer.browser.Browser.dataSetColors = {Color.red, Color.orange, Color.blue, Color.green} [static, package]

List of colors to be used in derivation trees

Default height of the chooser frame.

Default width of the chooser frame.

A list that contains the one best translation of each source sentence.

Holds the translation information contained in the source, reference, and n-best files.

final String joshua.ui.tree_visualizer.browser.Browser.USAGE = "USAGE: Browser <source> <reference> <n-best>" [static, private]

Usage message.