blob: 4d288aafaca64326341cea86d2f4c99a99c1fe6b (
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 2016 Yahoo Inc. 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 <a href="mailto:mathiasm@yahoo-inc.com">Mathias Mølster Lidal</a>
*/
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);
}
|