Package com.reign.kat.lib.voice.speech
Class Tokenizer
java.lang.Object
com.reign.kat.lib.voice.speech.Tokenizer
Allows us to parse text into a series of generalized tokens which make up the structure of the sentence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Initializes the Tokenizer and creates the necessary token bindingsstatic TokenResult
Attempts to convert a list of Strings into a valid series of tokens
-
Constructor Details
-
Tokenizer
public Tokenizer()
-
-
Method Details
-
init
Initializes the Tokenizer and creates the necessary token bindings- Parameters:
tableVersion
- tokentable format version to use. (will throw an error if we try to read an incompatible file version)tokenTablePath
- path to tokentable.json
-
tokenize
Attempts to convert a list of Strings into a valid series of tokens- Parameters:
text
- List of strings to convert- Returns:
- List of tokens created from text
-