Skip to content

Commit

Permalink
Fixed the answer for exercise 1
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig committed Jun 11, 2015
1 parent f0c8853 commit 3169156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/01-test-answer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ coverage = 0.800000
# So the probability for each word is
# P(a) = 0.95*0.25 + 0.05*1/1000000 = .23750005
# P(c) = 0.95*0.125 + 0.05*1/1000000 = .11875005
# P(e) = 0.95*0 + 0.05*1/1000000 = .23750005
# P(</s>) = 0.95*0.25 + 0.05*1/1000000 = .00000005
# P(e) = 0.95*0 + 0.05*1/1000000 = .00000005
# P(</s>) = 0.95*0.25 + 0.05*1/1000000 = .23750005
#
# Thus, the entropy for a single word is:
# H(a) = -log_2( .23750005 ) = 2.07400
Expand Down

0 comments on commit 3169156

Please sign in to comment.