public class SynonymHandler extends java.lang.Object implements LinguisticExpanderResource.Handler
Internal details
The MOT processor is in charge of of annotating the raw Text's alphabetic tokens with the normalized words belonging to the same taxon. The taxonomy ( http://en.wikipedia.org/wiki/Taxonomy) is configurable (@see resourceDir).
The post-processor simply expands the tokenized text with these synonyms under the NORMALIZED form.
Constructor and Description |
---|
SynonymHandler(java.lang.String name,
java.lang.String resourceDir,
boolean optional,
boolean scoreMultiWordsExpressionsAsSingleWords) |
Modifier and Type | Method and Description |
---|---|
LinguisticExpanderResource.PostProcessorFactory |
buildPostProcessorFactory() |
java.util.List<SemanticProcessor> |
buildSemanticProcessor() |
void |
release() |
public SynonymHandler(java.lang.String name, java.lang.String resourceDir, boolean optional, boolean scoreMultiWordsExpressionsAsSingleWords)
public java.util.List<SemanticProcessor> buildSemanticProcessor()
buildSemanticProcessor
in interface LinguisticExpanderResource.Handler
public LinguisticExpanderResource.PostProcessorFactory buildPostProcessorFactory()
buildPostProcessorFactory
in interface LinguisticExpanderResource.Handler
public void release()
release
in interface LinguisticExpanderResource.Handler
Copyright © 2013 Dassault Systèmes, All Rights Reserved.