public class PhoneticHandler extends java.lang.Object implements LinguisticExpanderResource.Handler
Internal details
The MOT processor is in charge of annotating the raw text's alphabetic tokens with their phonemes. The post-processor first creates phonetic expansion queries for each phoneme found. Then it queries the dictionary for corpus word that matched the phonemes and expand the query with their normalized form.
Modifier and Type | Class and Description |
---|---|
static class |
PhoneticHandler.PostProcessor |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
availableLanguages |
protected static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
PhoneticHandler() |
PhoneticHandler(java.lang.String language) |
PhoneticHandler(java.lang.String language,
java.lang.String resourceFile) |
Modifier and Type | Method and Description |
---|---|
LinguisticExpanderResource.PostProcessorFactory |
buildPostProcessorFactory() |
java.util.List<SemanticProcessor> |
buildSemanticProcessor() |
void |
release() |
public static final java.lang.String[] availableLanguages
protected static final org.apache.log4j.Logger logger
public PhoneticHandler()
public PhoneticHandler(java.lang.String language)
public PhoneticHandler(java.lang.String language, java.lang.String resourceFile)
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.