edu.stanford.nlp.parser.lexparser
Class LatticeEdge

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.LatticeEdge
All Implemented Interfaces:
Serializable

public class LatticeEdge
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
 Map<String,String> attrs
           
 int end
           
 String label
           
 int start
           
 double weight
           
 String word
           
 
Constructor Summary
LatticeEdge(String word, double weight, int start, int end)
           
 
Method Summary
 String getAttr(String key)
           
 void setAttr(String key, String value)
           
 void setLabel(String l)
           
 void setWeight(double w)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

word

public final String word

label

public String label

weight

public double weight

start

public final int start

end

public final int end

attrs

public final Map<String,String> attrs
Constructor Detail

LatticeEdge

public LatticeEdge(String word,
                   double weight,
                   int start,
                   int end)
Method Detail

setAttr

public void setAttr(String key,
                    String value)

getAttr

public String getAttr(String key)

setLabel

public void setLabel(String l)

setWeight

public void setWeight(double w)

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group