Package jazzparser :: Package taggers :: Package candc :: Module tagger :: Class CandcTaggerModel
[hide private]
[frames] | no frames]

Class CandcTaggerModel

source code

        object --+    
                 |    
models.TaggerModel --+
                     |
                    CandcTaggerModel

This is really a fake: it doesn't actually save models itself, since we hand over to the C&C tagger to do that. It provides the public methods of tagger models so that we can use all the usual tagger training and evaluation scripts without any special hacks.

Instance Methods [hide private]
 
train(self, input_data, grammar=None, logger=None)
Trains the loaded model using the data in the list of sequences.
source code
 
save(self)
Saves the model data to a file.
source code
 
_get_tags(self) source code
 
delete(self)
Removes all the model's data.
source code

Inherited from models.TaggerModel: __init__, get_extra_filenames, process_training_options

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]

Inherited from models.TaggerModel (private): _get_model_dir, _load_model

Static Methods [hide private]
 
load_model(model_name)
Override to provide non-standard behaviour
source code
 
list_models()
Returns a list of the names of available models.
source code
Class Variables [hide private]
  MODEL_TYPE = 'candc'
hash(x)
  TRAINING_OPTIONS = [get_chord_mapping_module_option(),]+ Tagge...
Properties [hide private]
  tags

Inherited from models.TaggerModel: description, options

Inherited from models.TaggerModel (private): _filename

Inherited from object: __class__

Method Details [hide private]

train(self, input_data, grammar=None, logger=None)

source code 

Trains the loaded model using the data in the list of sequences.

Overrides: models.TaggerModel.train
(inherited documentation)

load_model(model_name)
Static Method

source code 

Override to provide non-standard behaviour

Overrides: models.TaggerModel.load_model

save(self)

source code 

Saves the model data to a file.

Overrides: models.TaggerModel.save
(inherited documentation)

list_models()
Static Method

source code 

Returns a list of the names of available models.

Overrides: models.TaggerModel.list_models
(inherited documentation)

delete(self)

source code 

Removes all the model's data. It is assumed that the tagger will not be used at all after this has been called.

Overrides: models.TaggerModel.delete
(inherited documentation)

Class Variable Details [hide private]

TRAINING_OPTIONS

Value:
[get_chord_mapping_module_option(),]+ TaggerModel.TRAINING_OPTIONS

Property Details [hide private]

tags

Get Method:
_get_tags(self)