Skip to content
Snippets Groups Projects
Commit 50224745 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

don't use io/file because that breaks when we are reading out of a zipped jar file.

parent 0887a747
Branches
Tags
No related merge requests found
......@@ -9,7 +9,7 @@
"checkins"])
; # Build a cost dictionary, assuming Zipf's law and cost = -math.log(probability).
(def ^:private words (concat special-words (s/split-lines (slurp (io/file (io/resource "words-by-frequency.txt"))))))
(def ^:private words (concat special-words (s/split-lines (slurp (io/resource "words-by-frequency.txt")))))
; wordcost = dict((k, log((i+1)*log(len(words)))) for i,k in enumerate(words))
(def ^:private word-cost
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment