Package edu.upf.taln.dri.lib.model.ext
Interface Token
-
- All Known Implementing Classes:
TokenImpl
public interface Token
Interface to access the tokens of a sentence of a document together with their descriptive features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
asString(boolean compactOutput)
String representation of the objectInteger
getContainingSentence()
The document-wide unambiguous id that references theSentence
of the document that includes the citation markerInteger
getId()
The document unambiguous ID of the tokenInteger
getInSentencePosition()
The position of the token inside the sentenceString
getLemma()
The token lemmaString
getPOS()
The token Part-Of-SpeechString
getWord()
The token text
-
-
-
Method Detail
-
getId
Integer getId()
The document unambiguous ID of the token- Returns:
-
getInSentencePosition
Integer getInSentencePosition()
The position of the token inside the sentence- Returns:
-
getContainingSentence
Integer getContainingSentence()
The document-wide unambiguous id that references theSentence
of the document that includes the citation marker- Returns:
-
getWord
String getWord()
The token text- Returns:
-
getLemma
String getLemma()
The token lemma- Returns:
-
getPOS
String getPOS()
The token Part-Of-Speech- Returns:
-
asString
String asString(boolean compactOutput)
String representation of the object- Returns:
-
-