edu.umn.cs.nlp.mt.huangchiang2005
Class Derivation<Edge extends Hyperarc,Parse extends Derivation>

java.lang.Object
  extended by edu.umn.cs.nlp.mt.huangchiang2005.Derivation<Edge,Parse>
All Implemented Interfaces:
Comparable<Derivation>
Direct Known Subclasses:
Translation

public class Derivation<Edge extends Hyperarc,Parse extends Derivation>
extends Object
implements Comparable<Derivation>

Version:
$LastChangedDate: 2007-11-05 14:43:54 -0600 (Mon, 05 Nov 2007) $
Author:
Lane Schwartz
See Also:
"Better k-best Parsing" by Liang Huang & David Chiang (IWPT, 2005)

Field Summary
protected  List<Parse> derivations
           
protected  Edge e
           
protected  int size
           
protected  double weight
           
 
Constructor Summary
Derivation(Edge e, List<Parse> derivations)
           
 
Method Summary
 int compareTo(Derivation d)
           
 boolean isTerminal()
           
 int size()
           
 String toString()
           
 double weight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

size

protected final int size

weight

protected final double weight

e

protected final Edge extends Hyperarc e

derivations

protected final List<Parse extends Derivation> derivations
Constructor Detail

Derivation

public Derivation(Edge e,
                  List<Parse> derivations)
Method Detail

size

public int size()

weight

public double weight()

isTerminal

public boolean isTerminal()

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Derivation d)
Specified by:
compareTo in interface Comparable<Derivation>