From 9685fc3449ff9d3b91ad224a6ef67aa45dcdc2fd Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 7 Aug 2017 15:21:43 +0200 Subject: [PATCH] it didnt --- mods/oroscopo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/oroscopo.go b/mods/oroscopo.go index 992a393..05c26f3 100644 --- a/mods/oroscopo.go +++ b/mods/oroscopo.go @@ -13,6 +13,7 @@ import ( ) var orogen *mctext.MChain +var orocorpus *strings.Reader func initoroscopo() { counter := 0 @@ -33,8 +34,10 @@ func initoroscopo() { return nil }) + orocorpus = strings.NewReader(corpus) + orogen := mctext.New() - orogen.Parse(strings.NewReader(corpus)) + orogen.Parse(orocorpus) log.Printf("[oroscopo] Loaded corpus from %d files\n", counter) }