snowball

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(conn *sqlite3.SQLiteConn, settings Settings) error

Init registers the snowball stemmer with the connection and configures it for the list of languages. If a language cannot be found, initialization fails.

func ListStemmers

func ListStemmers() []string

ListStemmers returns a list of all built-in Snowball stemmer algorithms.

Types

type Settings

type Settings struct {
	Stemmers         []string
	RemoveDiacritics bool
	TokenCharacters  string
	Separators       string
	MinTokenLength   int
}

Settings for initializing the stemmer

Jump to

Keyboard shortcuts

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