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

List of all members.

Public Member Functions

 OracleExtractor ()
HyperGraph getOracle (HyperGraph forest, int lmOrder, String reference)

Private Attributes

final OracleExtractionHG extractor

Detailed Description

Convenience wrapper class for oracle extraction code.

Author:
Lane Schwartz
Version:
$LastChangedDate$

Constructor & Destructor Documentation

Constructs an object capable of extracting an oracle hypergraph.


Member Function Documentation

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.

Parameters:
forestOriginal hypergraph representing a shared forest.
lmOrderN-gram order of the language model.
referenceReference sentence.
Returns:
Hypergraph closest to the reference.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation