You can use this assignment in your class!
Mastery Progress(100.0%)
i

Unit 5: Sequence tagging with MEMMs

Your instructor specifically marked this question as important.
imgEducator’s Choice

You answeredJUST NOW
Python
You passed all test cases!
STDIN
a a b b c c
Expected STDOUT
[[2. 2. 2.]]
Your STDOUT
[[2. 2. 2.]]
STDIN
a a b b c c d d
Expected STDOUT
[[2. 2. 2.]]
Your STDOUT
[[2. 2. 2.]]
STDIN
a a c c
Expected STDOUT
[[2. 0. 2.]]
Your STDOUT
[[2. 0. 2.]]
STDIN
b b d d d d d d
Expected STDOUT
[[0. 2. 0.]]
Your STDOUT
[[0. 2. 0.]]
STDIN
a a a a a a a a
Expected STDOUT
[[8. 0. 0.]]
Your STDOUT
[[8. 0. 0.]]
STDIN
c c a a
Expected STDOUT
[[2. 0. 2.]]
Your STDOUT
[[2. 0. 2.]]
STDIN
a a a a
Expected STDOUT
[[4. 0. 0.]]
Your STDOUT
[[4. 0. 0.]]

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Gus Hahn-PowellAPR 28, 2021, 6:52:41 PM
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
Select one of the following options:
  • A.
  • B.
  • C.
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.