This commit is contained in:
Hamcha 2017-08-07 15:21:43 +02:00
parent 44d3a4d18f
commit 9685fc3449
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}