|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TokenStructure
| Method Summary | |
|---|---|
TokenNode |
addTokenNode()
Adds a token node with index n + 1, where n is the index of the last token node. |
TokenNode |
addTokenNode(int index)
Adds a token node with index index. |
int |
getHighestTokenIndex()
Returns the index of the last token node. |
int |
getSentenceID()
Returns the sentence ID |
SortedSet<Integer> |
getTokenIndices()
Returns a sorted set of integers {s,... |
TokenNode |
getTokenNode(int index)
Returns the token node with index index. |
boolean |
hasTokens()
Returns true if the token structure (sentence) has any token nodes, otherwise false. |
int |
nTokenNode()
Returns the number of token nodes in the token structure (sentence). |
void |
setSentenceID(int sentenceID)
Sets the sentence ID |
| Methods inherited from interface org.maltparser.core.syntaxgraph.Structure |
|---|
clear |
| Methods inherited from interface org.maltparser.core.syntaxgraph.LabeledStructure |
|---|
addLabel, checkInLabelSet, checkOutNewLabelSet, getSymbolTables, setSymbolTables |
| Method Detail |
|---|
TokenNode addTokenNode()
throws MaltChainedException
MaltChainedException
TokenNode addTokenNode(int index)
throws MaltChainedException
index - the index of the token node.
MaltChainedExceptionTokenNode getTokenNode(int index)
index - the index of the token node.
MaltChainedExceptionint nTokenNode()
SortedSet<Integer> getTokenIndices()
int getHighestTokenIndex()
boolean hasTokens()
int getSentenceID()
void setSentenceID(int sentenceID)
sentenceID - a sentence ID
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||