edu.umn.cs.nlp.mt.chiang2007
Class Translation

java.lang.Object
  extended by edu.umn.cs.nlp.mt.huangchiang2005.Derivation<RuleApplication,Translation>
      extended by 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

Field Summary
 
Fields inherited from class edu.umn.cs.nlp.mt.huangchiang2005.Derivation
derivations, e, size, weight
 
Constructor Summary
Translation(RuleApplication edge, List<Translation> childTranslations)
          Construct a Translation from a RuleApplication and child Translations.
 
Method Summary
 LoglinearTranslationFeatures getFeatures()
          Gets the loglinear feature values for this Translation.
 boolean isTerminal()
           
 String toString()
          Returns the String representation of this Translation.
 
Methods inherited from class edu.umn.cs.nlp.mt.huangchiang2005.Derivation
compareTo, size, weight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translation

public Translation(RuleApplication edge,
                   List<Translation> childTranslations)
Construct a Translation from a RuleApplication and child Translations.

Parameters:
edge -
childTranslations -
Method Detail

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