cases

package
v0.0.0-...-14668ea Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoogleCloudSvcAccountKey string
	SampleRate               uint64 = 100 // Default: Nothing is sampled.
)

Functions

func GetCorpusRootDir

func GetCorpusRootDir() string

func NewStudy

func NewStudy[samples, aggregated any](
	ident string,
	collector Collector[samples],
	aggregator Aggregator[samples, aggregated],
	reportor Reporter[aggregated],
) study[samples, aggregated]

func SetCorpusRootDir

func SetCorpusRootDir(base string)

func WalkCorpus

func WalkCorpus(corpus string, fn func(filename string) error) error

Types

type Aggregator

type Aggregator[samples, aggregated any] func(samples) aggregated

type Analyses

type Analyses struct {
	Entity []string

	Language language.Tag

	Feats         tokenize.Features
	Parser        Parser
	FuzzyMatching bool

	Ext       string
	Filenames []string
}

type Collector

type Collector[samples any] func(entitydebs.Frames) samples

type Parser

type Parser func(io.Reader, chan []byte) chan error

type Reporter

type Reporter[aggregated any] func(aggregated, Translate, io.Writer) error

type Translate

type Translate func([]string) ([]string, error)

Directories

Path Synopsis
International sentiment of public figures
International sentiment of public figures
National sentiment of political speeches
National sentiment of political speeches
Root verbs of music genres
Root verbs of music genres

Jump to

Keyboard shortcuts

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