org.apache.lucene.analysis.morfologik
Class MorphosyntacticTagAttributeImpl
java.lang.Object
org.apache.lucene.util.AttributeImpl
org.apache.lucene.analysis.morfologik.MorphosyntacticTagAttributeImpl
- All Implemented Interfaces:
- Cloneable, MorphosyntacticTagAttribute, Attribute
public class MorphosyntacticTagAttributeImpl
- extends AttributeImpl
- implements MorphosyntacticTagAttribute, Cloneable
Morphosyntactic annotations for surface forms.
- See Also:
MorphosyntacticTagAttribute
MorphosyntacticTagAttributeImpl
public MorphosyntacticTagAttributeImpl()
setTag
public void setTag(CharSequence pos)
- Set the tag.
- Specified by:
setTag
in interface MorphosyntacticTagAttribute
- Parameters:
pos
- POS tag corresponding to current lemma
getTag
public CharSequence getTag()
- Returns the POS tag of the term. If you need a copy of this char sequence, clone it
because it may change with each new term!
- Specified by:
getTag
in interface MorphosyntacticTagAttribute
clear
public void clear()
- Description copied from interface:
MorphosyntacticTagAttribute
- Clear to default value.
- Specified by:
clear
in interface MorphosyntacticTagAttribute
- Specified by:
clear
in class AttributeImpl
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
copyTo
public void copyTo(AttributeImpl target)
- Specified by:
copyTo
in class AttributeImpl
clone
public MorphosyntacticTagAttributeImpl clone()
- Overrides:
clone
in class AttributeImpl
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.