Package com.yahoo.language
Class LinguisticsCase
java.lang.Object
com.yahoo.language.LinguisticsCase
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toLowerCase
(String in) The lower casing method to use in Vespa when doing language independent processing of natural language data.
-
Constructor Details
-
LinguisticsCase
public LinguisticsCase()
-
-
Method Details
-
toLowerCase
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
-