ch.ethz.mxquery.datamodel.adm
Class LinguisticToken
java.lang.Object
ch.ethz.mxquery.datamodel.adm.LinguisticToken
- All Implemented Interfaces:
- FTToken
public class LinguisticToken
- extends java.lang.Object
- implements FTToken
Linguistic Token: for each word in the text there exists a Linguistic Token
Additional Information: position of term in text, Dewey Identifier, sentence and paragraph information etc.
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
LinguisticToken
public LinguisticToken(int startPos,
int endPos,
DeweyIdentifier did,
TextToken token,
int sentenceID,
int paraID,
boolean startingToken,
boolean endingToken)
getText
public java.lang.String getText()
- getter methods
getPosition
public int getPosition()
getDeweyId
public DeweyIdentifier getDeweyId()
getTextToken
public TextToken getTextToken()
getSentence
public int getSentence()
getParagraph
public int getParagraph()
copy
public LinguisticToken copy()
throws MXQueryException
- Throws:
MXQueryException
compareTo
public int compareTo(LinguisticToken value)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich