org.maltparser.core.sentence
Class Sentence
java.lang.Object
org.maltparser.core.sentence.Sentence
public class Sentence
- extends Object
Sentence consists of a sequence of tokens.
- Since:
- 1.0
- Author:
- Johan Hall
DEFAULTMAXSENLEN
public static final int DEFAULTMAXSENLEN
- See Also:
- Constant Field Values
Sentence
public Sentence(org.apache.log4j.Logger logger,
DataFormatInstance dataFormatInstance)
throws MaltChainedException
- Throws:
MaltChainedException
Sentence
public Sentence(org.apache.log4j.Logger logger,
DataFormatInstance dataFormatInstance,
int capacity)
throws MaltChainedException
- Throws:
MaltChainedException
readSentence
public void readSentence(String[] tokenLines)
throws MaltChainedException
- Throws:
MaltChainedException
getCapacity
public int getCapacity()
setCapacity
public void setCapacity(int value)
getSize
public int getSize()
getDataFormatInstance
public DataFormatInstance getDataFormatInstance()
setDataFormatInstance
public void setDataFormatInstance(DataFormatInstance dataFormatInstance)
getLogger
public org.apache.log4j.Logger getLogger()
setLogger
public void setLogger(org.apache.log4j.Logger logger)
getTokens
public Token[] getTokens()
getToken
public Token getToken(int index)
setToken
public void setToken(String line)
throws MaltChainedException
- Throws:
MaltChainedException
hasTokens
public boolean hasTokens()
clearSentence
public void clearSentence()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.