Documentation ¶
Index ¶
- Variables
- func Normalize(word string, reg *stopwords.Register) (string, bool)
- func Sanitize(strs [][]byte, reg *stopwords.Register) []string
- func SortTagItems(items []*model.Tag)
- func SplitToSentences(text []byte) [][]byte
- func SplitToTokens(text []byte, cfg *config.Config) []string
- func TFIDF(t *model.Tag) float64
- func UpdateControlStr(candidate, control string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Domains = stopwords.Setup(stopwords.WithDomains(true))
)
Functions ¶
func SortTagItems ¶
SortTagItems sorts items by score in descending order, if scores are equal it sorts by count if counts are equal, it sorts string values alphabetically.
func SplitToSentences ¶
SplitToSentences splits given text into slice of sentences.
func UpdateControlStr ¶ added in v0.59.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.