Class DUUISegmentationStrategyByDelemiter
java.lang.Object
org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategy
org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategyByDelemiter
- All Implemented Interfaces:
Serializable
,IDUUISegmentationStrategy
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finalize
(org.apache.uima.jcas.JCas jCas) Get final JCas with the generated annotationsorg.apache.uima.jcas.JCas
Get next segment of the JCasint
boolean
hasDebug()
void
merge
(org.apache.uima.jcas.JCas jCasSegment) Merge the segmented JCas back into the output JCaswithDelemiter
(String sValue) withLength
(int iLength) withOverlap
(int iOverlap) Methods inherited from class org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategy
addSegmentationRule, initialize, withSegmentationRule
-
Constructor Details
-
DUUISegmentationStrategyByDelemiter
public DUUISegmentationStrategyByDelemiter()
-
-
Method Details
-
withLength
-
withDebug
-
hasDebug
public boolean hasDebug() -
withOverlap
-
getSegments
public int getSegments() -
withDelemiter
-
getNextSegment
public org.apache.uima.jcas.JCas getNextSegment()Description copied from class:DUUISegmentationStrategy
Get next segment of the JCas- Specified by:
getNextSegment
in interfaceIDUUISegmentationStrategy
- Specified by:
getNextSegment
in classDUUISegmentationStrategy
-
merge
public void merge(org.apache.uima.jcas.JCas jCasSegment) Description copied from class:DUUISegmentationStrategy
Merge the segmented JCas back into the output JCas- Specified by:
merge
in interfaceIDUUISegmentationStrategy
- Specified by:
merge
in classDUUISegmentationStrategy
-
finalize
public void finalize(org.apache.uima.jcas.JCas jCas) Description copied from class:DUUISegmentationStrategy
Get final JCas with the generated annotations- Specified by:
finalize
in interfaceIDUUISegmentationStrategy
- Overrides:
finalize
in classDUUISegmentationStrategy
-