index

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filename string)

reload corpus index from file

func LoadFromString

func LoadFromString(txt string)

reload corpus from txt

func Total

func Total() int

get corpus index size

Types

type Record

type Record struct {
	Name     string
	Words    []*Word
	TypeMask int64
}

corpus index value

func Get

func Get(f string) *Record

get corpus data for form

func (*Record) ForEachTags

func (r *Record) ForEachTags(fn words.FOREACH_UINT16_FUNC)

func (*Record) ForEachType

func (r *Record) ForEachType(fn words.FOREACH_UINT16_FUNC)

func (*Record) HasOpt

func (r *Record) HasOpt(o int64) bool

check has word with oopts

func (*Record) HasType

func (r *Record) HasType(code uint16) bool

check has type

func (*Record) TT2Word

func (r *Record) TT2Word(w *Word)

func (*Record) WordByMask

func (r *Record) WordByMask(m int64) *Word

func (*Record) WordByOpt

func (r *Record) WordByOpt(o int64) *Word

func (*Record) WordByType

func (r *Record) WordByType(code uint16) *Word

type Word

type Word = words.Word

aliases for external types

Jump to

Keyboard shortcuts

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