dictionary

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.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