edu.umn.cs.nlp.mt
Class Translation

java.lang.Object
  extended by edu.umn.cs.nlp.mt.Translation
All Implemented Interfaces:
Comparable<Translation>

public class Translation
extends Object
implements Comparable<Translation>

Represents a translation and associated log-linear feature weights.

Version:
$LastChangedDate: 2007-09-27 14:55:40 -0500 (Thu, 27 Sep 2007) $
Author:
Lane Schwartz

Field Summary
static Translation NULL_TRANSLATION
           
 
Constructor Summary
Translation(String translation, LoglinearTranslationFeatures weights)
           
 
Method Summary
 int compareTo(Translation t)
           
 boolean equals(Object o)
           
 double getScore()
           
 String getTranslation()
           
 double[] getWeights()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_TRANSLATION

public static final Translation NULL_TRANSLATION
Constructor Detail

Translation

public Translation(String translation,
                   LoglinearTranslationFeatures weights)
Method Detail

getTranslation

public String getTranslation()

getScore

public double getScore()

getWeights

public double[] getWeights()

compareTo

public int compareTo(Translation t)
Specified by:
compareTo in interface Comparable<Translation>

equals

public boolean equals(Object o)
Overrides:
equals in class Object