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

Unit 5: Sequence tagging with MEMMs

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
Professor Gus Hahn-PowellAPR. 28, 2021 AT 6:52 PMstarTop Answer
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
  • A.
  • B.
  • C.

Was this helpful?

(Voting helps us personalize your learning experience!)

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