Transliterator

esc.normalization.Transliterator

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def transToLatin(text: String): String

Transliteration method for any script to latin using the ICU lib. Remark: For some scripts like arabic oder chinese the method transToLatinWithAi gives better results in most cases.

Transliteration method for any script to latin using the ICU lib. Remark: For some scripts like arabic oder chinese the method transToLatinWithAi gives better results in most cases.

Value parameters

text

The string, e.g. a full name, to transliterate into latin.

Attributes

Returns

Return the latin encoded String.

def transToLatinBestGuess(text: String): String

Transliteration method for any script to latin using the ICU lib or the AiAgent. Choose the fastest and best way based on the script. Remark: Make sure you have loaded the model to the AiAgent before.

Transliteration method for any script to latin using the ICU lib or the AiAgent. Choose the fastest and best way based on the script. Remark: Make sure you have loaded the model to the AiAgent before.

Value parameters

text

The string, e.g. a full name, to transliterate into latin.

Attributes

Returns

Return the latin encoded String.

def transToLatinWithAi(text: String): String

Transliteration method for any script to latin using the AiAgent. Remark: Make sure you have loaded the model to the AiAgent before. For batch processing with different scripts it's recommended to use the transToLatinBestGuess method which have a better performance.

Transliteration method for any script to latin using the AiAgent. Remark: Make sure you have loaded the model to the AiAgent before. For batch processing with different scripts it's recommended to use the transToLatinBestGuess method which have a better performance.

Value parameters

text

The string, e.g. a full name, to transliterate into latin.

Attributes

Returns

Return the latin encoded String.