pname

package
v0.0.0-...-98ddf8d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDict

func LoadDict(r io.Reader, withHeader bool, delim string, tsv bool) (map[string][]string, error)

func LoadDictFile

func LoadDictFile(fname string, withHeader bool, delim string) (map[string][]string, error)

func ToLowerCamelCase

func ToLowerCamelCase(text []string) string

func ToLowerSnakeCase

func ToLowerSnakeCase(text []string) string

func ToUpperCamelCase

func ToUpperCamelCase(text []string) string

func ToUpperSnakeCase

func ToUpperSnakeCase(text []string) string

Types

type DictTokenizer

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

func (*DictTokenizer) SplitText

func (tk *DictTokenizer) SplitText(text string) []*Token

type Token

type Token struct {
	Lnm string
	Pnm []string
	OK  bool
}

type Tokenizer

type Tokenizer interface {
	SplitText(text string) []*Token
}

func NewDictTokenizer

func NewDictTokenizer(dict map[string][]string) Tokenizer

Jump to

Keyboard shortcuts

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