Package org.apache.solr.handler.tagger
Interface TaggingAttribute
-
- All Superinterfaces:
org.apache.lucene.util.Attribute
- All Known Implementing Classes:
TaggingAttributeImpl
public interface TaggingAttribute extends org.apache.lucene.util.Attribute
Attribute used by theTagger
to decide if a token can start a newtag
.By default this Attribute will return
true
, but it might be reset by someTokenFilter
added to theTokenStream
used to analyze the parsed text. Typically this will be done based on NLP processing results (e.g. to only lookup Named Entities).NOTE: that all Tokens are used to advance existing
tags
.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_TAGGABLE
By default this Attribute will be initialised withtrue
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isTaggable()
Getter for the taggable state of the current Tokenvoid
setTaggable(boolean lookup)
Setter for the taggable state.
-
-
-
Field Detail
-
DEFAULT_TAGGABLE
static final boolean DEFAULT_TAGGABLE
By default this Attribute will be initialised withtrue
. This ensures that all tokens are taggable by default (especially if theTaggingAttribute
is not set by any component in the configuredTokenStream
- See Also:
- Constant Field Values
-
-