|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| Translation (Sentence source, HyperGraph hypergraph, List< FeatureFunction > featureFunctions) | |
| HyperGraph | hypergraph () |
| Sentence | getSourceSentence () |
| int | id () |
| String | translation () |
| void | print () |
| String | toString () |
Private Attributes | |
| int | id = -1 |
| Sentence | source |
| String | translation |
| List< Double > | modelScores = null |
| double | score |
| HyperGraph | hypergraph |
| List< FeatureFunction > | featureFunctions |
This class represents translated input objects (sentences or lattices). It is aware of the source sentence and id and contains the decoded hypergraph. Translation objects are returned by DecoderThread instances to the InputHandler, where they are assembled in order for output.
| joshua.decoder.Translation.Translation | ( | Sentence | source, |
| HyperGraph | hypergraph, | ||
| List< FeatureFunction > | featureFunctions | ||
| ) |
| int joshua.decoder.Translation.id | ( | ) |
| void joshua.decoder.Translation.print | ( | ) |
| String joshua.decoder.Translation.toString | ( | ) |
| String joshua.decoder.Translation.translation | ( | ) |
List<FeatureFunction> joshua.decoder.Translation.featureFunctions [private] |
int joshua.decoder.Translation.id = -1 [private] |
List<Double> joshua.decoder.Translation.modelScores = null [private] |
double joshua.decoder.Translation.score [private] |
Sentence joshua.decoder.Translation.source [private] |
String joshua.decoder.Translation.translation [private] |