org.cogroo.text.impl
Class ChunkImpl

java.lang.Object
  extended by org.cogroo.text.impl.ChunkImpl
All Implemented Interfaces:
Chunk

public class ChunkImpl
extends Object
implements Chunk


Constructor Summary
ChunkImpl(String tag, int start, int end, Sentence theSentence)
           
 
Method Summary
 int getEnd()
           
 int getHeadIndex()
           
 int getStart()
           
 String getTag()
           
 List<Token> getTokens()
           
 void setBoundaries(int start, int end)
           
 void setHeadIndex(int index)
           
 void setTag(String tag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkImpl

public ChunkImpl(String tag,
                 int start,
                 int end,
                 Sentence theSentence)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

setHeadIndex

public void setHeadIndex(int index)
Specified by:
setHeadIndex in interface Chunk

getHeadIndex

public int getHeadIndex()
Specified by:
getHeadIndex in interface Chunk

getStart

public int getStart()
Specified by:
getStart in interface Chunk

getEnd

public int getEnd()
Specified by:
getEnd in interface Chunk

setBoundaries

public void setBoundaries(int start,
                          int end)
Specified by:
setBoundaries in interface Chunk

getTag

public String getTag()
Specified by:
getTag in interface Chunk

setTag

public void setTag(String tag)
Specified by:
setTag in interface Chunk

getTokens

public List<Token> getTokens()
Specified by:
getTokens in interface Chunk


Copyright © 2012-2013 CoGrOO. All Rights Reserved.