| Constructor and Description |
|---|
LocationsTagger() |
LocationsTagger(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.
|
float |
belongsTo(org.fit.layout.model.Area node)
Checks whether the area may be tagged with the tag.
|
List<String> |
extract(String src)
Extracts the parts of a source string that correspond to this tag.
|
String |
getDescription() |
String |
getId() |
int |
getMincnt() |
String |
getName() |
String[] |
getParamNames() |
org.fit.layout.api.ParametrizedOperation.ValueType[] |
getParamTypes() |
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.
|
void |
setMincnt(int mincnt) |
List<String> |
split(String src)
Splits the string to substrings where each substring either corresponds to this tag
or it does not correspond.
|
getClassifiergetParam, getParamRange, setParampublic LocationsTagger()
public LocationsTagger(int mincnt)
mincnt - the minimal count of the location names detected in the area necessary for tagging this area.public String getId()
public String getName()
public String getDescription()
public String[] getParamNames()
getParamNames in interface org.fit.layout.api.ParametrizedOperationgetParamNames in class BaseTaggerpublic org.fit.layout.api.ParametrizedOperation.ValueType[] getParamTypes()
getParamTypes in interface org.fit.layout.api.ParametrizedOperationgetParamTypes in class BaseTaggerpublic int getMincnt()
public void setMincnt(int mincnt)
public TextTag getTag()
Taggerpublic float belongsTo(org.fit.layout.model.Area node)
Taggernode - The examined area node.public boolean allowsContinuation(org.fit.layout.model.Area node)
Taggernode - The examined area node.true if the area may be a continuation of a tagged areapublic boolean allowsJoining()
Taggertrue if the tag may be used for joining.public boolean mayCoexistWith(org.fit.layout.model.Tag other)
Taggerpublic List<String> extract(String src)
Taggersrc - The source string.public List<String> split(String src)
Taggersrc - The source string.src back.Copyright © 2016. All rights reserved.