|
Joshua
open source statistical hierarchical phrase-based machine translation system
|
Public Member Functions | |
| OracleExtractor () | |
| HyperGraph | getOracle (HyperGraph forest, int lmOrder, String reference) |
Private Attributes | |
| final OracleExtractionHG | extractor |
Convenience wrapper class for oracle extraction code.
Constructs an object capable of extracting an oracle hypergraph.
| HyperGraph joshua.oracle.OracleExtractor.getOracle | ( | HyperGraph | forest, |
| int | lmOrder, | ||
| String | reference | ||
| ) |
Extract a hypergraph that represents the translation from the original shared forest hypergraph that is closest to the reference translation.
| forest | Original hypergraph representing a shared forest. |
| lmOrder | N-gram order of the language model. |
| reference | Reference sentence. |
final OracleExtractionHG joshua.oracle.OracleExtractor.extractor [private] |