senko

package
v0.0.0-...-ed73f69 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse(s string) string

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(dict *Dictionary, mat *Matrix) *Decoder

func (*Decoder) Search

func (dec *Decoder) Search(sentence string) []*Word

type Dictionary

type Dictionary struct {
	// contains filtered or unexported fields
}

func NewDictionary

func NewDictionary() *Dictionary

func (*Dictionary) LoadDictionaries

func (dic *Dictionary) LoadDictionaries(dname string)

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func LoadMatrix

func LoadMatrix(fname string) *Matrix

func (*Matrix) Get

func (mat *Matrix) Get(from int, to int) int

type Score

type Score struct {
	// contains filtered or unexported fields
}

type Word

type Word struct {
	// contains filtered or unexported fields
}

func (*Word) Repr

func (word *Word) Repr() string

func (*Word) Word

func (word *Word) Word() string

Jump to

Keyboard shortcuts

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