public class PartOfSpeechAttributeImpl extends AttributeImpl implements PartOfSpeechAttribute, Cloneable
| Constructor and Description | 
|---|
| PartOfSpeechAttributeImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | clear() | 
| void | copyTo(AttributeImpl target) | 
| POS.Tag | getLeftPOS()Get the left part of speech of the token. | 
| Dictionary.Morpheme[] | getMorphemes()Get the  Dictionary.Morphemedecomposition of the token. | 
| POS.Type | getPOSType()Get the  POS.Typeof the token. | 
| POS.Tag | getRightPOS()Get the right part of speech of the token. | 
| void | reflectWith(AttributeReflector reflector) | 
| void | setToken(Token token)Set the current token. | 
clone, end, reflectAsStringpublic POS.Type getPOSType()
PartOfSpeechAttributePOS.Type of the token.getPOSType in interface PartOfSpeechAttributepublic POS.Tag getLeftPOS()
PartOfSpeechAttributegetLeftPOS in interface PartOfSpeechAttributepublic POS.Tag getRightPOS()
PartOfSpeechAttributegetRightPOS in interface PartOfSpeechAttributepublic Dictionary.Morpheme[] getMorphemes()
PartOfSpeechAttributeDictionary.Morpheme decomposition of the token.getMorphemes in interface PartOfSpeechAttributepublic void setToken(Token token)
PartOfSpeechAttributesetToken in interface PartOfSpeechAttributepublic void clear()
clear in class AttributeImplpublic void reflectWith(AttributeReflector reflector)
reflectWith in class AttributeImplpublic void copyTo(AttributeImpl target)
copyTo in class AttributeImplCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.