- java.lang.Object
-
- io.annot8.common.components.AbstractComponent
-
- io.annot8.common.components.AbstractProcessor
-
- io.annot8.components.base.processors.AbstractContentProcessor<io.annot8.common.data.content.Text>
-
- io.annot8.components.base.processors.AbstractTextProcessor
-
- io.annot8.components.geo.processors.LatLon.Processor
-
- All Implemented Interfaces:
io.annot8.api.components.Annot8Component,io.annot8.api.components.Processor,AutoCloseable
- Enclosing class:
- LatLon
public static class LatLon.Processor extends AbstractTextProcessor
-
-
Constructor Summary
Constructors Constructor Description Processor(boolean lonLat, int minDP)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringnormalizeQuotesAndDots(String s)Replace smart quotes, curly quotes, back ticks and mid-dots with standard quotes and dots to simplify the required regular expressions.protected voidprocess(io.annot8.common.data.content.Text content)-
Methods inherited from class io.annot8.components.base.processors.AbstractContentProcessor
accept, process
-
Methods inherited from class io.annot8.common.components.AbstractComponent
createDefaultLogger, createDefaultMetrics, log, metrics, setLogger, setMetrics
-
-
-
-
Method Detail
-
process
protected void process(io.annot8.common.data.content.Text content)
- Specified by:
processin classAbstractContentProcessor<io.annot8.common.data.content.Text>
-
normalizeQuotesAndDots
public static String normalizeQuotesAndDots(String s)
Replace smart quotes, curly quotes, back ticks and mid-dots with standard quotes and dots to simplify the required regular expressions.Symbols are replaced with the same number of characters (one-to-one replacement) so that character offsets are not affected.
-
-