This commit is contained in:
Hamcha 2017-08-07 15:21:43 +02:00
parent 44d3a4d18f
commit 9685fc3449

View file

@ -13,6 +13,7 @@ import (
) )
var orogen *mctext.MChain var orogen *mctext.MChain
var orocorpus *strings.Reader
func initoroscopo() { func initoroscopo() {
counter := 0 counter := 0
@ -33,8 +34,10 @@ func initoroscopo() {
return nil return nil
}) })
orocorpus = strings.NewReader(corpus)
orogen := mctext.New() orogen := mctext.New()
orogen.Parse(strings.NewReader(corpus)) orogen.Parse(orocorpus)
log.Printf("[oroscopo] Loaded corpus from %d files\n", counter) log.Printf("[oroscopo] Loaded corpus from %d files\n", counter)
} }