| Modifier and Type | Field and Description |
|---|---|
protected Pattern |
contexpr
The expression describing the allowed format of the title continuation
|
| Constructor and Description |
|---|
PersonsTagger(int mincnt)
Construct a new tagger.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsContinuation(org.fit.layout.model.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(org.fit.layout.model.Area node)
Checks whether the area may be tagged with the tag.
|
Vector<String> |
extract(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(org.fit.layout.model.Tag other)
Check if the area tagged with this tag may be tagged with another tag.
|
protected Pattern contexpr
public PersonsTagger(int mincnt)
mincnt - the minimal count of the personal names detected in the area necessary for tagging this area.public TextTag getTag()
Taggerpublic double getRelevance()
TaggergetRelevance in interface Taggerpublic boolean belongsTo(org.fit.layout.model.Area node)
Taggerpublic boolean allowsContinuation(org.fit.layout.model.Area node)
TaggerallowsContinuation in interface Taggernode - The examined area node.true if the area may be a continuation of a tagged areapublic boolean mayCoexistWith(org.fit.layout.model.Tag other)
TaggermayCoexistWith in interface Taggerpublic boolean allowsJoining()
TaggerallowsJoining in interface Taggertrue if the tag may be used for joining.Copyright © 2015. All rights reserved.