Beispiel #1
0
 def bulk_load(self, **parameters):
     """For big input files, efficiently prune vocabulary and import docs.
     """
     return core.call("bulk-load", self.executable, **parameters)
Beispiel #2
0
 def prune(self, **parameters):
     """Remove features based on frequency or information gain.
     """
     return core.call("prune", self.executable, **parameters)
Beispiel #3
0
 def split(self, **parameters):
     """Divide data into testing, training, and validation portions.
     """
     return core.call("split", self.executable, **parameters)
Beispiel #4
0
 def infer_topics(self, **parameters):
     """Use a trained topic model to infer topics for new documents.
     """
     return core.call("infer-topics", self.executable, **parameters)
Beispiel #5
0
 def evaluate_topics(self, **parameters):
     """Estimate the probability of new documents under a trained model.
     """
     return core.call("evaluate-topics", self.executable, **parameters)
Beispiel #6
0
 def classify_svmlight(self, **parameters):
     """Classify data from a single file in SVMLight format.
     """
     return core.call("classify-svmlight", self.executable, **parameters)
Beispiel #7
0
 def train_topics(self, **parameters):
     """Train a topic model from MALLET data files.
     """
     return core.call("train-topics", self.executable, **parameters)
Beispiel #8
0
 def classify_dir(self, **parameters):
     """Classify the contents of a directory with a saved classifier.
     """
     return core.call("classify-dir", self.executable, **parameters)
Beispiel #9
0
 def classify_file(self, **parameters):
     """Classify data from a single file with a saved classifier.
     """
     return core.call("classify-file", self.executable, **parameters)
Beispiel #10
0
 def train_classifier(self, **parameters):
     """Train a classifier from MALLET data files.
     """
     return core.call("train-classifier", self.executable, **parameters)
Beispiel #11
0
 def info(self, **parameters):
     """Get information about MALLET instances.
     """
     return core.call("info", self.executable, **parameters)
Beispiel #12
0
 def import_svmlight(self, **parameters):
     """Load SVMLight data files into MALLET instances.
     """
     return core.call("import-svmlight", self.executable, **parameters)
Beispiel #13
0
 def import_file(self, **parameters):
     """Load a file into MALLET instances.
     """
     return core.call("import-file", self.executable, **parameters)
Beispiel #14
0
 def import_dir(self, **parameters):
     """Load contents of a directory into MALLET instances.
     """
     return core.call("import-dir", self.executable, **parameters)