public interface Tagger
Modifier and Type | Method and Description |
---|---|
boolean |
allowsContinuation(Area node)
Checks whether the area may be a continuation of a previously started area tagged with this tag.
|
boolean |
allowsJoining()
Checks whether the tag may be used for joining the areas in the visual area tree.
|
boolean |
belongsTo(Area node)
Checks whether the area may be tagged with the tag.
|
java.util.Vector<java.lang.String> |
extract(java.lang.String src)
Extracts the parts of a source string that correspond to this tag.
|
double |
getRelevance()
Obtains the relevance of the tagger.
|
TextTag |
getTag()
Obtains the tag that this tagger assigns to the areas.
|
boolean |
mayCoexistWith(Tag other)
Check if the area tagged with this tag may be tagged with another tag.
|
TextTag getTag()
double getRelevance()
boolean belongsTo(Area node)
node
- The examined area node.true
if the area should be tagged with the tagboolean allowsContinuation(Area node)
node
- The examined area node.true
if the area may be a continuation of a tagged areaboolean allowsJoining()
true
if the tag may be used for joining.boolean mayCoexistWith(Tag other)
java.util.Vector<java.lang.String> extract(java.lang.String src)
src
- The source string.