dictionary

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

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) ID

func (d *Dictionary) ID(word string) (int, bool)

func (*Dictionary) IDFreq

func (d *Dictionary) IDFreq(id int) int

func (*Dictionary) Len

func (d *Dictionary) Len() int

func (*Dictionary) Word

func (d *Dictionary) Word(id int) (string, bool)

func (*Dictionary) WordFreq

func (d *Dictionary) WordFreq(word string) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL