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.Morpheme decomposition of the token. |
POS.Type |
getPOSType()
Get the
POS.Type of 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, reflectAsString
public POS.Type getPOSType()
PartOfSpeechAttribute
POS.Type
of the token.getPOSType
in interface PartOfSpeechAttribute
public POS.Tag getLeftPOS()
PartOfSpeechAttribute
getLeftPOS
in interface PartOfSpeechAttribute
public POS.Tag getRightPOS()
PartOfSpeechAttribute
getRightPOS
in interface PartOfSpeechAttribute
public Dictionary.Morpheme[] getMorphemes()
PartOfSpeechAttribute
Dictionary.Morpheme
decomposition of the token.getMorphemes
in interface PartOfSpeechAttribute
public void setToken(Token token)
PartOfSpeechAttribute
setToken
in interface PartOfSpeechAttribute
public void clear()
clear
in class AttributeImpl
public void reflectWith(AttributeReflector reflector)
reflectWith
in class AttributeImpl
public void copyTo(AttributeImpl target)
copyTo
in class AttributeImpl
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.