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
The North Wind and the Sun had a quarrel about which of them was the stronger
Expected STDOUT
['startsWithUpper', 'token=North', 'token=Sun', 'token=The', 'token=Wind', 'token=a', 'token=about', 'token=and', 'token=had', 'token=of', 'token=quarrel', 'token=stronger', 'token=the', 'token=them', 'token=was', 'token=which']
Your STDOUT
['startsWithUpper', 'token=North', 'token=Sun', 'token=The', 'token=Wind', 'token=a', 'token=about', 'token=and', 'token=had', 'token=of', 'token=quarrel', 'token=stronger', 'token=the', 'token=them', 'token=was', 'token=which']
STDIN
They agreed that the one who first succeeded in making the traveler take his cloak off should be considered stronger than the other
Expected STDOUT
['startsWithUpper', 'token=They', 'token=agreed', 'token=be', 'token=cloak', 'token=considered', 'token=first', 'token=his', 'token=in', 'token=making', 'token=off', 'token=one', 'token=other', 'token=should', 'token=stronger', 'token=succeeded', 'token=take', 'token=than', 'token=that', 'token=the', 'token=traveler', 'token=who']
Your STDOUT
['startsWithUpper', 'token=They', 'token=agreed', 'token=be', 'token=cloak', 'token=considered', 'token=first', 'token=his', 'token=in', 'token=making', 'token=off', 'token=one', 'token=other', 'token=should', 'token=stronger', 'token=succeeded', 'token=take', 'token=than', 'token=that', 'token=the', 'token=traveler', 'token=who']
STDIN
Then the North Wind blew as hard as he could but the more he blew the more closely did the traveler fold his cloak around him
Expected STDOUT
['startsWithUpper', 'token=North', 'token=Then', 'token=Wind', 'token=around', 'token=as', 'token=blew', 'token=but', 'token=cloak', 'token=closely', 'token=could', 'token=did', 'token=fold', 'token=hard', 'token=he', 'token=him', 'token=his', 'token=more', 'token=the', 'token=traveler']
Your STDOUT
['startsWithUpper', 'token=North', 'token=Then', 'token=Wind', 'token=around', 'token=as', 'token=blew', 'token=but', 'token=cloak', 'token=closely', 'token=could', 'token=did', 'token=fold', 'token=hard', 'token=he', 'token=him', 'token=his', 'token=more', 'token=the', 'token=traveler']
STDIN
and at last the North Wind gave up the attempt
Expected STDOUT
['startsWithUpper', 'token=North', 'token=Wind', 'token=and', 'token=at', 'token=attempt', 'token=gave', 'token=last', 'token=the', 'token=up']
Your STDOUT
['startsWithUpper', 'token=North', 'token=Wind', 'token=and', 'token=at', 'token=attempt', 'token=gave', 'token=last', 'token=the', 'token=up']
STDIN
Then the Sun shined out warmly and immediately the traveler took off his cloak
Expected STDOUT
['startsWithUpper', 'token=Sun', 'token=Then', 'token=and', 'token=cloak', 'token=his', 'token=immediately', 'token=off', 'token=out', 'token=shined', 'token=the', 'token=took', 'token=traveler', 'token=warmly']
Your STDOUT
['startsWithUpper', 'token=Sun', 'token=Then', 'token=and', 'token=cloak', 'token=his', 'token=immediately', 'token=off', 'token=out', 'token=shined', 'token=the', 'token=took', 'token=traveler', 'token=warmly']
STDIN
And so the North Wind was obliged to confess that the Sun was the stronger of the two
Expected STDOUT
['startsWithUpper', 'token=And', 'token=North', 'token=Sun', 'token=Wind', 'token=confess', 'token=obliged', 'token=of', 'token=so', 'token=stronger', 'token=that', 'token=the', 'token=to', 'token=two', 'token=was']
Your STDOUT
['startsWithUpper', 'token=And', 'token=North', 'token=Sun', 'token=Wind', 'token=confess', 'token=obliged', 'token=of', 'token=so', 'token=stronger', 'token=that', 'token=the', 'token=to', 'token=two', 'token=was']

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Gus Hahn-PowellAPR 25, 2021, 11:10:55 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.