jpclouds

package module
v0.0.0-...-7848233 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectWords

func CollectWords(r io.Reader, targets ...SpeechPart) ([]string, error)

func Preprocess

func Preprocess(r io.Reader) (io.Reader, error)

Preprocess do some processes to realize proper word counts. This gets io.Reader then returns io.Reader, because in some cases, this preprocess might not be used.

func RemoveStopWords

func RemoveStopWords(m map[string]int, sw []string) error

func WordCount

func WordCount(words []string) (map[string]int, error)

Types

type SpeechPart

type SpeechPart int
const (
	Noun SpeechPart = iota
	Verb
	Adjective
)

func (SpeechPart) String

func (sp SpeechPart) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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