Class DUUISegmentationStrategyByDelemiter
java.lang.Object
org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategy
org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategyByDelemiter
- All Implemented Interfaces:
Serializable,IDUUISegmentationStrategy
- See Also:
-
Field Summary
Fields inherited from class org.texttechnologylab.DockerUnifiedUIMAInterface.segmentation.DUUISegmentationStrategy
jCasInput, jCasOutput, segmentationRules -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinalize(org.apache.uima.jcas.JCas jCas) Get final JCas with the generated annotationsorg.apache.uima.jcas.JCasGet next segment of the JCasintbooleanhasDebug()protected voidInitialize the state of the segmentation strategy, this is called automatically when a new JCas is setvoidmerge(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, tryAddDocumentMetaData, tryAddDocumentMetaData, withSegmentationRule
-
Constructor Details
-
DUUISegmentationStrategyByDelemiter
public DUUISegmentationStrategyByDelemiter()
-
-
Method Details
-
withLength
-
withDebug
- Overrides:
withDebugin classDUUISegmentationStrategy
-
hasDebug
public boolean hasDebug() -
withOverlap
-
getSegments
public int getSegments() -
withDelemiter
-
getNextSegment
public org.apache.uima.jcas.JCas getNextSegment()Description copied from class:DUUISegmentationStrategyGet next segment of the JCas- Specified by:
getNextSegmentin interfaceIDUUISegmentationStrategy- Specified by:
getNextSegmentin classDUUISegmentationStrategy- Returns:
-
initialize
protected void initialize() throws org.apache.uima.UIMAExceptionDescription copied from class:DUUISegmentationStrategyInitialize the state of the segmentation strategy, this is called automatically when a new JCas is set- Specified by:
initializein classDUUISegmentationStrategy- Throws:
org.apache.uima.UIMAException
-
merge
public void merge(org.apache.uima.jcas.JCas jCasSegment) Description copied from class:DUUISegmentationStrategyMerge the segmented JCas back into the output JCas- Specified by:
mergein interfaceIDUUISegmentationStrategy- Specified by:
mergein classDUUISegmentationStrategy- Parameters:
jCasSegment-
-
finalize
public void finalize(org.apache.uima.jcas.JCas jCas) Description copied from class:DUUISegmentationStrategyGet final JCas with the generated annotations- Specified by:
finalizein interfaceIDUUISegmentationStrategy- Overrides:
finalizein classDUUISegmentationStrategy- Parameters:
jCas-
-