text

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WSO_ENDS         int = 0 // ADD dot on ent of statement
	WSO_NO_URLS      int = 1 // SKIP ulrs
	WSO_NO_NUMS      int = 2 // SKIP 123, 12.10, 10:10, 12.08.2018, 10-10 etc
	WSO_HASHTAG      int = 3 // use hashtags
	WSO_NO_XXX_COLON int = 4 // skip xxx: and XXX:
)
View Source
const (
	ST_NULL  int = 0
	ST_NUM   int = 1
	ST_ALPHA int = 2

	WS_COMMA string = ","
)

Variables

This section is empty.

Functions

func GetPrefixes

func GetPrefixes(str string) []string

func GetWords

func GetWords(text string) []string

func IsRussian

func IsRussian(str string) bool

func MakePrefSuf

func MakePrefSuf(str string) [][]string

func OtherCyr

func OtherCyr(str string) bool

func Quoted

func Quoted(text string) string

func SubStrDistVal

func SubStrDistVal(str string, minlen int) map[string]int

func Truncate

func Truncate(text string, limit int) string

func WordStream

func WordStream(rdr io.RuneReader, opts ...int) <-chan string

Types

This section is empty.

Directories

Path Synopsis
romance
This file contains test runners that are common to the romance languages.
This file contains test runners that are common to the romance languages.
word
This package defines a Word struct that is used to encapsulate most of the "state" variables we must track when stemming a word.
This package defines a Word struct that is used to encapsulate most of the "state" variables we must track when stemming a word.

Jump to

Keyboard shortcuts

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