diff options
Diffstat (limited to 'linguistics/src/main/java/com/yahoo/language/process/Normalizer.java')
-rw-r--r-- | linguistics/src/main/java/com/yahoo/language/process/Normalizer.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/linguistics/src/main/java/com/yahoo/language/process/Normalizer.java b/linguistics/src/main/java/com/yahoo/language/process/Normalizer.java new file mode 100644 index 00000000000..f4e1ccc9feb --- /dev/null +++ b/linguistics/src/main/java/com/yahoo/language/process/Normalizer.java @@ -0,0 +1,19 @@ +// 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; + +/** + * <p>This interface provides NFKC normalization of Strings through the underlying linguistics library.</p> + * + * @author <a href="mailto:mathiasm@yahoo-inc.com">Mathias M\u00F8lster Lidal</a> + */ +public interface Normalizer { + + /** + * <p>NFKC normalizes a String.</p> + * + * @param input String to normalize. + * @return The normalized String. + * @throws ProcessingException If underlying library throws an Exception. + */ + public String normalize(String input); +} |