Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
areaexpr
The expression the whole area must start with
|
protected java.util.Vector<java.lang.String> |
blacklist
Words that are not allowed in the session title
|
protected java.util.regex.Pattern |
contexpr
The expression describing the allowed format of the title continuation
|
protected int |
MIN_WORDS |
protected java.util.regex.Pattern |
titleexpr
The expression describing the allowed title format
|
protected java.util.Vector<java.lang.String> |
whitelist
Words that are required in the session title
|
Constructor and Description |
---|
SessionTagger() |
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.
|
protected boolean |
containsListedWord(java.util.Vector<java.lang.String> list,
java.lang.String[] words) |
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.
|
protected final int MIN_WORDS
protected java.util.regex.Pattern areaexpr
protected java.util.regex.Pattern titleexpr
protected java.util.regex.Pattern contexpr
protected java.util.Vector<java.lang.String> whitelist
protected java.util.Vector<java.lang.String> blacklist
public TextTag getTag()
Tagger
public double getRelevance()
Tagger
getRelevance
in interface Tagger
public boolean belongsTo(Area node)
Tagger
public boolean allowsContinuation(Area node)
Tagger
allowsContinuation
in interface Tagger
node
- The examined area node.true
if the area may be a continuation of a tagged areapublic boolean allowsJoining()
Tagger
allowsJoining
in interface Tagger
true
if the tag may be used for joining.public boolean mayCoexistWith(Tag other)
Tagger
mayCoexistWith
in interface Tagger
public java.util.Vector<java.lang.String> extract(java.lang.String src)
Tagger
protected boolean containsListedWord(java.util.Vector<java.lang.String> list, java.lang.String[] words)