corpus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadForCmd

func LoadForCmd(cmd *cobra.Command, opts *Options)

Types

type Corpus

type Corpus interface {
	IndexedDoc() []int
	BatchWords(chan []int, int) error
	Dictionary() *dictionary.Dictionary
	Cooccurrence() *co.Cooccurrence
	Len() int
	Load(*WithCooccurrence, *verbose.Verbose, int) error
}

type Options

type Options struct {
	DocInMemory bool
	ToLower     bool
}

func DefaultOptions

func DefaultOptions() Options

type WithCooccurrence

type WithCooccurrence struct {
	CountType co.CountType
	Window    int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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