Package cz.vutbr.fit.layout.text.taggers
Class BaseTagger
- java.lang.Object
-
- cz.vutbr.fit.layout.impl.BaseService
-
- cz.vutbr.fit.layout.impl.BaseParametrizedOperation
-
- cz.vutbr.fit.layout.text.taggers.BaseTagger
-
- All Implemented Interfaces:
ParametrizedOperation,Service,Tagger
- Direct Known Subclasses:
CombinedTagger,DateTagger,IntegerTagger,NERTagger,RegexpTagger,TimeTagger
public abstract class BaseTagger extends BaseParametrizedOperation implements Tagger
A base implementation of a tagger with no parametres.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description BaseTagger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()protected booleanisHomogeneous(Area a)Checks whether an area is homogeneous regarding the contents style and layout so that it can be treated as an atomic entity for tagging.StringtoString()-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseParametrizedOperation
defineParams, getParam, getParams, getParamString, setParam
-
Methods inherited from class cz.vutbr.fit.layout.impl.BaseService
getServiceManager, setServiceManager
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cz.vutbr.fit.layout.api.ParametrizedOperation
getParam, getParams, getParamString, setParam
-
Methods inherited from interface cz.vutbr.fit.layout.api.Service
getDescription, getId, getName, setServiceManager
-
Methods inherited from interface cz.vutbr.fit.layout.api.Tagger
allowsContinuation, allowsJoining, belongsTo, extract, mayCoexistWith
-
-
-
-
Method Detail
-
getCategory
public String getCategory()
- Specified by:
getCategoryin interfaceService
-
isHomogeneous
protected boolean isHomogeneous(Area a)
Checks whether an area is homogeneous regarding the contents style and layout so that it can be treated as an atomic entity for tagging.- Parameters:
a- The area to test.- Returns:
truewhen the area is homogeneous.
-
-