public class AiSpellParser
extends java.lang.Object
| Constructor and Description |
|---|
AiSpellParser() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canParse(java.util.ArrayList<AiCommand> commands,
java.lang.String[] chunks,
double closenessFactor)
Determines if a given input matches another command closely enough,
in order to suggest a command
|
static AiLastCommand |
parse(java.util.ArrayList<AiCommand> commands,
java.lang.String[] chunks,
SymphonyClient symClient,
double closenessFactor)
Find a close matching command.
|
public static boolean canParse(java.util.ArrayList<AiCommand> commands, java.lang.String[] chunks, double closenessFactor)
commands - the list of commands to comparechunks - the text chunksclosenessFactor - the minimum closeness value needed to be considered a matchpublic static AiLastCommand parse(java.util.ArrayList<AiCommand> commands, java.lang.String[] chunks, SymphonyClient symClient, double closenessFactor)
commands - the list of commands to comparechunks - the text chunkssymClient - the org.org.symphonyoss.ai sym clientclosenessFactor - the minimum closeness value needed to be considered a match