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 (remove
(map database) #(#{eos bos} (.key %)) children)))
(into #{eos bos}))]
(remove
#(banned-ids (.key %)) children))))
database database
(#(vector (rand-nth (phonetics/get-phones %)) %)) (#(vector (rand-nth (phonetics/get-phones %)) %))
vector)) vector))

Loading…
Cancel
Save