// NewCorpus creates a new corpus
NewCorpus creates a new corpus
// NewCorpus creates a new corpus
func NewCorpus(basis []string) *Corpus {
	w := make(map[string]bool)
	for _, v := range basis {
		if _, ok := w[v]; !ok {
			w[v] = true
		}
	}
	return &Corpus{
		Size:  len(w),
		words: w,
	}
}
func NewCorpus ( basis [ ] string ) * Corpus { w := make ( map [ string ] bool ) for _ , v := range basis { if _ , ok := w [ v ] ; ! ok { w [ v ] = true } } return & Corpus { Size : len ( w ) , words : w , } }
NewCorpus creates a new corpus
NewCorpus creates a new corpus