Remove unnecessary code

main
Eric Ihli 3 years ago
parent c6881b361d
commit 9d0f411012

@ -1059,11 +1059,8 @@
markov-trie markov-trie
[eos eos eos] [eos eos eos]
(fn [children] (fn [children]
(let [banned-ids (->> banned-words
(map database)
(into #{eos bos}))]
(remove (remove
#(banned-ids (.key %)) children)))) #(#{eos bos} (.key %)) children)))
database database
(#(vector (rand-nth (phonetics/get-phones %)) %)) (#(vector (rand-nth (phonetics/get-phones %)) %))
vector)) vector))

Loading…
Cancel
Save