nltk.tag.HiddenMarkovModelTrainer.train

HiddenMarkovModelTrainer.train(labeled_sequences=None, unlabeled_sequences=None, **kwargs)[source]

Trains the HMM using both (or either of) supervised and unsupervised techniques.

Returns:

the trained model

Return type:

HiddenMarkovModelTagger

Parameters:
  • labelled_sequences (list) – the supervised training data, a set of labelled sequences of observations
  • unlabeled_sequences (list) – the unsupervised training data, a set of sequences of observations
  • kwargs – additional arguments to pass to the training methods