org.cogroo.entities.impl
Class ChunkCogroo
java.lang.Object
org.cogroo.entities.Chunk
org.cogroo.entities.impl.ChunkCogroo
- All Implemented Interfaces:
- Serializable, TokenGroup
public class ChunkCogroo
- extends Chunk
Implements a Chunk
- group of Token
s.
- Author:
- William Colen
- See Also:
- Serialized Form
Methods inherited from class org.cogroo.entities.Chunk |
equals, getFirstToken, getMainToken, getMorphologicalTag, getRelativeHeadIndex, getSyntacticTag, getTokens, getType, hashCode, setFirstToken, setType, toString |
ChunkCogroo
public ChunkCogroo(List<Token> tokens,
int firstToken)
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.