Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 582 Bytes

TODO.md

File metadata and controls

18 lines (15 loc) · 582 Bytes

TODO

  • add tests,
    • use reflect.DeepEqual
  • turn into a library, kill the main, change the package name
  • rewrite genhash in ngram.go
  • change the storage backend to be an interface, and have mongo and memory be two implementations
  • these functions need to touch the storage backend
    • func (n *nGram) exists() bool
    • func (n *nGram) GetInstanceCount(class string) int
    • func GetTotalNGrams(class string) int
    • func CountDistinctNGrams() int
    • func (d *Document)DumpToMongo()
    • func (c *ClassData) Update()
    • func GetClassProbabilities() map[string]float64