module documentation

Undocumented

Function call_tadm Call the tadm binary with the given arguments.
Function config_tadm Undocumented
Function encoding_demo Undocumented
Function names_demo Undocumented
Function parse_tadm_weights Given the stdout output generated by tadm when training a model, return a numpy array containing the corresponding weight vector.
Function write_tadm_file Generate an input file for tadm based on the given corpus of classified tokens.
Variable _tadm_bin Undocumented
def call_tadm(args): (source)

Call the tadm binary with the given arguments.

def config_tadm(bin=None): (source)

Undocumented

def encoding_demo(): (source)

Undocumented

def names_demo(): (source)

Undocumented

def parse_tadm_weights(paramfile): (source)

Given the stdout output generated by tadm when training a model, return a numpy array containing the corresponding weight vector.

def write_tadm_file(train_toks, encoding, stream): (source)

Generate an input file for tadm based on the given corpus of classified tokens.

Parameters
train_toks:list(tuple(dict, str))Training data, represented as a list of pairs, the first member of which is a feature dictionary, and the second of which is a classification label.
encoding:TadmEventMaxentFeatureEncodingA feature encoding, used to convert featuresets into feature vectors.
stream:streamThe stream to which the tadm input file should be written.
_tadm_bin = (source)

Undocumented