projects
/
cipher-training.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f188487
)
Don't create language_models.py twice
author
Neil Smith
<neil.git@njae.me.uk>
Tue, 22 Jul 2014 12:46:39 +0000
(13:46 +0100)
committer
Neil Smith
<neil.git@njae.me.uk>
Tue, 22 Jul 2014 12:46:39 +0000
(13:46 +0100)
slides/caesar-break.html
patch
|
blob
|
history
diff --git
a/slides/caesar-break.html
b/slides/caesar-break.html
index 7a2fbf6d550cbd8e8dc90bcea3b694c0e4dcd293..879244624f8a5e210c3495ee12794a1ae321d479 100644
(file)
--- a/
slides/caesar-break.html
+++ b/
slides/caesar-break.html
@@
-246,8
+246,6
@@
with open('count_1l.txt', 'w') as f:
# Reading letter probabilities
-New file: `language_models.py`
-
1. Load the file `count_1l.txt` into a dict, with letters as keys.
2. Normalise the counts (components of vector sum to 1): `$$ \hat{\mathbf{x}} = \frac{\mathbf{x}}{\| \mathbf{x} \|} = \frac{\mathbf{x}}{ \mathbf{x}_1 + \mathbf{x}_2 + \mathbf{x}_3 + \dots }$$`