|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.util.AttributeImpl org.apache.lucene.analysis.morfologik.MorphosyntacticTagsAttributeImpl
public class MorphosyntacticTagsAttributeImpl
Morphosyntactic annotations for surface forms.
MorphosyntacticTagsAttribute
Constructor Summary | |
---|---|
MorphosyntacticTagsAttributeImpl()
Initializes this attribute with no tags |
Method Summary | |
---|---|
void |
clear()
Clear to default value. |
MorphosyntacticTagsAttributeImpl |
clone()
|
void |
copyTo(AttributeImpl target)
|
boolean |
equals(Object other)
|
List<StringBuilder> |
getTags()
Returns the POS tag of the term. |
int |
hashCode()
|
void |
setTags(List<StringBuilder> tags)
Sets the internal tags reference to the given list. |
String |
toString()
|
Methods inherited from class org.apache.lucene.util.AttributeImpl |
---|
reflectAsString, reflectWith |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MorphosyntacticTagsAttributeImpl()
Method Detail |
---|
public List<StringBuilder> getTags()
StringBuilder
s) because it changes with
each new term to avoid unnecessary memory allocations.
getTags
in interface MorphosyntacticTagsAttribute
public void clear()
MorphosyntacticTagsAttribute
clear
in interface MorphosyntacticTagsAttribute
clear
in class AttributeImpl
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setTags(List<StringBuilder> tags)
setTags
in interface MorphosyntacticTagsAttribute
tags
- A list of POS tags corresponding to current lemma.public void copyTo(AttributeImpl target)
copyTo
in class AttributeImpl
public MorphosyntacticTagsAttributeImpl clone()
clone
in class AttributeImpl
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |