public class UnitsOfMeasurementNormalizer extends StandardDocumentProcessor
condition
Constructor and Description |
---|
UnitsOfMeasurementNormalizer(java.lang.String indexFieldName,
java.lang.String indexFieldUnitSymbol,
java.lang.String suffixName,
boolean removeContext) |
Modifier and Type | Method and Description |
---|---|
AnnotatedToken[] |
_getTokens(java.lang.String textChunk) |
void |
init(DocumentProcessingContext ctx)
Called at start of analysis job
|
void |
process(DocumentProcessingContext context,
ProcessableDocument document)
Process a document.
|
void |
release()
Called at end of analysis job
|
getCondition, setCondition
public UnitsOfMeasurementNormalizer(java.lang.String indexFieldName, java.lang.String indexFieldUnitSymbol, java.lang.String suffixName, boolean removeContext)
public void init(DocumentProcessingContext ctx)
init
in interface DocumentProcessor
init
in class StandardDocumentProcessor
public void release()
release
in interface DocumentProcessor
release
in class StandardDocumentProcessor
public AnnotatedToken[] _getTokens(java.lang.String textChunk)
public void process(DocumentProcessingContext context, ProcessableDocument document) throws java.lang.Exception
DocumentProcessor
context
- Context to perform various operations related to processingdocument
- The document being processed.java.lang.Exception
Copyright © 2013 Dassault Systèmes, All Rights Reserved.