Class SequenceModelExplorer
java.lang.Object
org.tribuo.sequence.SequenceModelExplorer
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.command.CommandGroup
public class SequenceModelExplorer
extends Object
implements com.oracle.labs.mlrg.olcut.command.CommandGroup
A CLI for interacting with a
SequenceModel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommand line options. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.oracle.labs.mlrg.olcut.command.CommandInterpreter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfeatureInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, String featureName) org.jline.reader.Completer[]getName()static voidminCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int minCount) modelDescription(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) voidStart the command shelltopFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures) static Stringusage()
-
Field Details
-
shell
protected com.oracle.labs.mlrg.olcut.command.CommandInterpreter shell
-
-
Constructor Details
-
SequenceModelExplorer
public SequenceModelExplorer()
-
-
Method Details
-
getName
- Specified by:
getNamein interfacecom.oracle.labs.mlrg.olcut.command.CommandGroup
-
getDescription
- Specified by:
getDescriptionin interfacecom.oracle.labs.mlrg.olcut.command.CommandGroup
-
fileCompleter
public org.jline.reader.Completer[] fileCompleter() -
startShell
public void startShell()Start the command shell -
loadModel
-
modelDescription
@Command(usage="Shows the model description") public String modelDescription(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
featureInfo
-
outputInfo
@Command(usage="Shows the output information.") public String outputInfo(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
topFeatures
@Command(usage="<int> - Shows the top N features in the model") public String topFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int numFeatures) -
numFeatures
@Command(usage="Shows the number of features in the model") public String numFeatures(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci) -
minCount
@Command(usage="<min count> - Shows the number of features that occurred more than min count times.") public String minCount(com.oracle.labs.mlrg.olcut.command.CommandInterpreter ci, int minCount) -
usage
-
main
-