edu.columbia.cs.utils
Class TokenInformation

java.lang.Object
  extended by edu.columbia.cs.utils.TokenInformation
All Implemented Interfaces:
java.io.Serializable

public class TokenInformation
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
TokenInformation()
           
 
Method Summary
 void add(java.lang.String feature)
           
 TokenInformation copyNoShortestPath()
           
 boolean equals(java.lang.Object o)
           
 java.util.List<java.lang.String> getOwnFeatures()
           
 double getSimilarity(TokenInformation other)
           
 int hashCode()
           
 boolean isEntity1()
           
 boolean isEntity2()
           
 boolean isInShortestPath()
           
 void setInShortestPath(boolean isInShortestPath)
           
 void setIsEntity1(boolean v, java.lang.String type)
           
 void setIsEntity2(boolean v, java.lang.String type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TokenInformation

public TokenInformation()
Method Detail

add

public void add(java.lang.String feature)

getSimilarity

public double getSimilarity(TokenInformation other)

getOwnFeatures

public java.util.List<java.lang.String> getOwnFeatures()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setInShortestPath

public void setInShortestPath(boolean isInShortestPath)

isInShortestPath

public boolean isInShortestPath()

setIsEntity1

public void setIsEntity1(boolean v,
                         java.lang.String type)

setIsEntity2

public void setIsEntity2(boolean v,
                         java.lang.String type)

isEntity1

public boolean isEntity1()

isEntity2

public boolean isEntity2()

copyNoShortestPath

public TokenInformation copyNoShortestPath()