-
Notifications
You must be signed in to change notification settings - Fork 5
Sequence Likelihood
Jinho D. Choi edited this page Feb 9, 2015
·
1 revision
- Create a package
segment
. - Put the
Sequence
class undersegment
. - Create an abstract class
AbstractSegment
undersegment
. - Create a constructor.
-
@param model
a language model. - Create an abstract method
segment
. -
@return
the word sequence segmented from the string with the highest probability. -
@param s
the string to segment.
- Create a class
Segment
undersegment
. - Extend
AbstractSegment
. - Create a constructor.
-
@param model
a language model. - Override the
segment
method. - You may want to create an auxiliary method called recursively.
- Assess
Segment
using:SegmentTest
.
- Run
SegmentTest
using theunigramWeight
of0.5
instead. What are the new sequences and their maximum likelihoods? Explain why the results change.
©2015 Emory University