edu.columbia.cs.utils
Class TokenInformation
java.lang.Object
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
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TokenInformation
public TokenInformation()
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()