I am afraid at the moment with Mallet ridiculously poor documentation regarding HMM. I managed to import the data into instances (adapted from the ImportExample.java fragment), and I'm just wondering how it can be used to train the HMM model. At first I started by creating an instance of HMM, but was not sure whether to look for:
HMM hmm = new HMM(instances.getDataAlphabet(), instances.getTargetAlphabet());
Or use the same data alphabet twice:
HMM hmm = new HMM(instances.getDataAlphabet(), instances.getDataAlphabet());
Anyway when I get to
hmm.train(instances);
I get the following error:
cc.mallet.types.FeatureVectorSequence cannot be dropped
I would be grateful for any help you can provide.
Greetings
Lezan source share