org.cogroo.entities.impl
Class ChunkCogroo

java.lang.Object
  extended by org.cogroo.entities.Chunk
      extended by org.cogroo.entities.impl.ChunkCogroo
All Implemented Interfaces:
Serializable, TokenGroup

public class ChunkCogroo
extends Chunk

Implements a Chunk - group of Tokens.

Author:
William Colen
See Also:
Serialized Form

Constructor Summary
ChunkCogroo(List<Token> tokens, int firstToken)
           
 
Method Summary
 void setMorphologicalTag(MorphologicalTag morphologicalTag)
           
 String toPlainText()
          Gets the representation of the sentence as a plain text.
 
Methods inherited from class org.cogroo.entities.Chunk
equals, getFirstToken, getMainToken, getMorphologicalTag, getRelativeHeadIndex, getSyntacticTag, getTokens, getType, hashCode, setFirstToken, setType, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChunkCogroo

public ChunkCogroo(List<Token> tokens,
                   int firstToken)
Method Detail

toPlainText

public String toPlainText()
Description copied from class: Chunk
Gets the representation of the sentence as a plain text.

Specified by:
toPlainText in class Chunk
Returns:
The sentence as a string.

setMorphologicalTag

public void setMorphologicalTag(MorphologicalTag morphologicalTag)
Overrides:
setMorphologicalTag in class Chunk
Parameters:
morphologicalTag - the morphologicalTag to set


Copyright © 2012-2013 CoGrOO. All Rights Reserved.