|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
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 |
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.
| 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.
| static void joshua.ui.tree_visualizer.DerivationBrowser.initializeJComponents | ( | ) | [static, private] |
Initializes the various components in the chooser frame. The two JLists are laid out, and a menu bar is attached.
| static void joshua.ui.tree_visualizer.DerivationBrowser.main | ( | String[] | argv | ) | [static] |
The main method.
| argv | command-line parameters. Can specify the source or target file. |
| static void joshua.ui.tree_visualizer.DerivationBrowser.populateSourceList | ( | ) | [static, private] |
Displays the source-side sentences in their list. This method is called whenever the source- side file is changed.
| static void joshua.ui.tree_visualizer.DerivationBrowser.populateTargetList | ( | ) | [static, private] |
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.
| static void joshua.ui.tree_visualizer.DerivationBrowser.setNBestLists | ( | ) | [static, private] |
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.
ActiveFrame joshua.ui.tree_visualizer.DerivationBrowser.activeFrame [static, private] |
The active frame is the frame that displays a derivation tree for the currently selected candidate translation.
JFrame joshua.ui.tree_visualizer.DerivationBrowser.chooserFrame [static, private] |
A frame that displays the list of source-side sentences and the list of target-side sentences.
final int joshua.ui.tree_visualizer.DerivationBrowser.DEFAULT_HEIGHT = 480 [static] |
final int joshua.ui.tree_visualizer.DerivationBrowser.DEFAULT_WIDTH = 640 [static] |
JFileChooser joshua.ui.tree_visualizer.DerivationBrowser.fileChooser [static, private] |
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.
File joshua.ui.tree_visualizer.DerivationBrowser.sourceFile [static, private] |
A file containing source-side sentences.
JList joshua.ui.tree_visualizer.DerivationBrowser.sourceList [static, private] |
A list that will display all the sentences in the current source-side file.
File joshua.ui.tree_visualizer.DerivationBrowser.targetFile [static, private] |
A file containing candidate translations for all source sentences, annotated with source-side alignments.
JList joshua.ui.tree_visualizer.DerivationBrowser.targetList [static, private] |
A list that will display all the candidate translations for the currently-selected source sentence.