MaltParser 1.0.1

org.maltparser.core.sentence
Class Sentence

java.lang.Object
  extended by org.maltparser.core.sentence.Sentence

public class Sentence
extends Object

Sentence consists of a sequence of tokens.

Since:
1.0
Author:
Johan Hall

Field Summary
static int DEFAULTMAXSENLEN
           
 
Constructor Summary
Sentence(org.apache.log4j.Logger logger, DataFormatInstance dataFormatInstance)
           
Sentence(org.apache.log4j.Logger logger, DataFormatInstance dataFormatInstance, int capacity)
           
 
Method Summary
 void clearSentence()
           
 int getCapacity()
           
 DataFormatInstance getDataFormatInstance()
           
 org.apache.log4j.Logger getLogger()
           
 int getSize()
           
 Token getToken(int index)
           
 Token[] getTokens()
           
 boolean hasTokens()
           
 void readSentence(String[] tokenLines)
           
 void setCapacity(int value)
           
 void setDataFormatInstance(DataFormatInstance dataFormatInstance)
           
 void setLogger(org.apache.log4j.Logger logger)
           
 void setToken(String line)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULTMAXSENLEN

public static final int DEFAULTMAXSENLEN
See Also:
Constant Field Values
Constructor Detail

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
Method Detail

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

MaltParser 1.0.1

Copyright 2007 Johan Hall, Jens Nilsson and Joakim Nivre.