Package com.yahoo.language
Class LinguisticsCase
- java.lang.Object
-
- com.yahoo.language.LinguisticsCase
-
public class LinguisticsCase extends java.lang.Object
This class provides a case normalization operation to be used e.g. when document search should be case insensitive.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description LinguisticsCase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
toLowerCase(java.lang.String in)
The lower casing method to use in Vespa when doing language independent processing of natural language data.
-
-
-
Method Detail
-
toLowerCase
public static java.lang.String toLowerCase(java.lang.String in)
The lower casing method to use in Vespa when doing language independent processing of natural language data. It is placed in a single place to ensure symmetry between e.g. query processing and indexing. Return a lowercased version of the given string. Since this is language independent, this is more of a case normalization operation than lowercasing.- Parameters:
in
- the string to lowercase- Returns:
- a string containing only lowercase characters
-
-