blob: 21d8e01cbb2c8557f8ef3bab0d90aee99b235fa2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language.process;
import com.yahoo.language.Language;
/**
* Interface for providers of text transformations such as accent removal.
*
* @author Mathias Mølster Lidal
*/
public interface Transformer {
/**
* Remove accents from input text.
*
* @param input text to transform
* @param language language of input text
* @return text with accents removed, or input-text if the feature is unavailable
* @throws ProcessingException thrown if there is an exception stemming this input
*/
String accentDrop(String input, Language language);
}
|