Hello,
I have following set up:
2] I am using batch training on Likelihood examples with Viterbi inference i.e MaximizeByBPChain
3] And for inferencing the Test Data, I use the InferByBPChainMax
4] Finally, I get the label proportions distribution for each Token and pick the probability frm the distribution for the predicted / infered label in step 3
So, I basically get the marginal probabilities for each Token's predicted label.
What I am interested in is a Viterbi probability of the whole Sequence and the Viterbi Probability of segments within the sequence.
For example:
If my query is = Namrata Ghadi Software Engineer
And If my Viterbi score for each token is as follows:
Namrata is a Name-Beg with score = 0.99
Ghadi is a Name-Int with score = 0.97
Software is a Jobtitle-Beg with score = 0.89
Engineer is a Jobtitle-Int with score = 0.90
Then, I would like to know if there is way to get following scores (not the individual level scores that we got above):
Score for most probable viterbi path through the linear chain.. (this is the overall probability of the sequence of labels that we got)
probability of the subpart of the path (for example, the viterbi probability of Segment = Namrata Ghadi , and viterbi probability of another segment (software engineer)