edu.umn.cs.nlp.mt.chiang2007
Class Translation
java.lang.Object
edu.umn.cs.nlp.mt.huangchiang2005.Derivation<RuleApplication,Translation>
edu.umn.cs.nlp.mt.chiang2007.Translation
- All Implemented Interfaces:
- Comparable<Derivation>
public class Translation
- extends Derivation<RuleApplication,Translation>
Represents a translation derived by tracing through a parse tree.
- Version:
- $LastChangedDate: 2007-11-05 15:28:15 -0600 (Mon, 05 Nov 2007) $
- Author:
- Lane Schwartz
Translation
public Translation(RuleApplication edge,
List<Translation> childTranslations)
- Construct a Translation from a RuleApplication and child Translations.
- Parameters:
edge
- childTranslations
-
isTerminal
public boolean isTerminal()
- Overrides:
isTerminal
in class Derivation<RuleApplication,Translation>
getFeatures
public LoglinearTranslationFeatures getFeatures()
- Gets the loglinear feature values for this Translation.
The features of a Translation are defined to be
the features of the RuleApplication
plus the features of any child translations.
- Returns:
- the loglinear feature values for this Translation
toString
public String toString()
- Returns the String representation of this Translation.
- Overrides:
toString
in class Derivation<RuleApplication,Translation>
- Returns:
- the String representation of this Translation