pipeline

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lower

func Lower(text string) string

Lower converts a string to lowercase

func Pipeline

func Pipeline(text string, pl *Config) []string

Pipeline performs steps to convert a string into a CLF input

func RemoveSymbols

func RemoveSymbols(text string) string

RemoveSymbols removes symbols from string

func Tokenize

func Tokenize(text string) []string

Tokenize splits the text into tokens

Types

type Config

type Config struct {
	RemoveSymbols bool    `mapstructure:"remove_symbols"`
	Lower         bool    `mapstructure:"lower"`
	Threshold     float64 `mapstructure:"threshold"`
}

Config defines a Pipeline configuration

Jump to

Keyboard shortcuts

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