documents

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UpdateState func([]*Document) error

State updater function depends on injected function from state to avoid circular dependency

Functions

func ReadDocuments

func ReadDocuments(paths ...string) error

DOC: meant to be called with watcher assumes paths should not be ignored (should be safe assumption due to watcher ignores)

func ReadNotesDirs

func ReadNotesDirs() error

Read, lex, and extract NGrams for all documents in notes directories specified in config file

Types

type Document

type Document struct {
	Path    string
	Weights map[string]float64
	NGrams  map[string]*ngrams.NGram
	// contains filtered or unexported fields
}

Document type stores lexical tokens and NGrams for a single document

Jump to

Keyboard shortcuts

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