Class PartOfSpeechAttributeImpl
- java.lang.Object
-
- org.apache.lucene.util.AttributeImpl
-
- org.apache.lucene.analysis.ko.tokenattributes.PartOfSpeechAttributeImpl
-
- All Implemented Interfaces:
Cloneable,PartOfSpeechAttribute,Attribute
public class PartOfSpeechAttributeImpl extends AttributeImpl implements PartOfSpeechAttribute
Part of Speech attributes for Korean.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description PartOfSpeechAttributeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcopyTo(AttributeImpl target)POS.TaggetLeftPOS()Get the left part of speech of the token.Dictionary.Morpheme[]getMorphemes()Get theDictionary.Morphemedecomposition of the token.POS.TypegetPOSType()Get thePOS.Typeof the token.POS.TaggetRightPOS()Get the right part of speech of the token.voidreflectWith(AttributeReflector reflector)voidsetToken(Token token)Set the current token.-
Methods inherited from class org.apache.lucene.util.AttributeImpl
clone, end, reflectAsString
-
-
-
-
Method Detail
-
getPOSType
public POS.Type getPOSType()
Description copied from interface:PartOfSpeechAttributeGet thePOS.Typeof the token.- Specified by:
getPOSTypein interfacePartOfSpeechAttribute
-
getLeftPOS
public POS.Tag getLeftPOS()
Description copied from interface:PartOfSpeechAttributeGet the left part of speech of the token.- Specified by:
getLeftPOSin interfacePartOfSpeechAttribute
-
getRightPOS
public POS.Tag getRightPOS()
Description copied from interface:PartOfSpeechAttributeGet the right part of speech of the token.- Specified by:
getRightPOSin interfacePartOfSpeechAttribute
-
getMorphemes
public Dictionary.Morpheme[] getMorphemes()
Description copied from interface:PartOfSpeechAttributeGet theDictionary.Morphemedecomposition of the token.- Specified by:
getMorphemesin interfacePartOfSpeechAttribute
-
setToken
public void setToken(Token token)
Description copied from interface:PartOfSpeechAttributeSet the current token.- Specified by:
setTokenin interfacePartOfSpeechAttribute
-
clear
public void clear()
- Specified by:
clearin classAttributeImpl
-
reflectWith
public void reflectWith(AttributeReflector reflector)
- Specified by:
reflectWithin classAttributeImpl
-
copyTo
public void copyTo(AttributeImpl target)
- Specified by:
copyToin classAttributeImpl
-
-