Documentation ¶
Index ¶
- type Dictionary
- func (d *Dictionary) Add(words ...string)
- func (d *Dictionary) HuffnamTree(dim int) []*node.Node
- func (d *Dictionary) ID(word string) (int, bool)
- func (d *Dictionary) IDFreq(id int) int
- func (d *Dictionary) Len() int
- func (d *Dictionary) Word(id int) (string, bool)
- func (d *Dictionary) WordFreq(word string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
func New ¶
func New() *Dictionary
func (*Dictionary) Add ¶
func (d *Dictionary) Add(words ...string)
func (*Dictionary) HuffnamTree ¶
func (d *Dictionary) HuffnamTree(dim int) []*node.Node
func (*Dictionary) IDFreq ¶
func (d *Dictionary) IDFreq(id int) int
func (*Dictionary) Len ¶
func (d *Dictionary) Len() int
func (*Dictionary) WordFreq ¶
func (d *Dictionary) WordFreq(word string) int
Click to show internal directories.
Click to hide internal directories.