Search in sources :

Example 1 with Transformer

use of com.yahoo.language.process.Transformer in project vespa by vespa-engine.

the class NormalizeExpression method doExecute.

@Override
protected void doExecute(ExecutionContext context) {
    Transformer transformer = linguistics.getTransformer();
    context.setValue(new StringFieldValue(transformer.accentDrop(String.valueOf(context.getValue()), context.resolveLanguage(linguistics))));
}
Also used : Transformer(com.yahoo.language.process.Transformer) StringFieldValue(com.yahoo.document.datatypes.StringFieldValue)

Aggregations

StringFieldValue (com.yahoo.document.datatypes.StringFieldValue)1 Transformer (com.yahoo.language.process.Transformer)1