etokenizer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokenizer

type Tokenizer interface {
	Tokens(s string) []string
}

Tokenizer break a string into tokens.

func AlphaNumCaseTokenizer

func AlphaNumCaseTokenizer() Tokenizer

AlphaNumCaseTokenizer returns alpha-numeric tokens. This tokenizer ignores characters except alpha-numeric. This tokenizer splits token on case change. For example, "Powered by GoLang version1.17." is tokenized to "Powered", "by", "Go", "Lang", "version1", and "17".

Jump to

Keyboard shortcuts

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