internal

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PStep = "recognition/post-correction"
View Source
const Version = "v0.0.22"

Version defines the version of apoco.

Variables

This section is empty.

Functions

func E added in v0.0.21

func E(str string) string

func IDFromFilePath

func IDFromFilePath(path, fg string) string

IDFromFilePath generates an id based on the file group and the file path.

Types

type Piper added in v0.0.17

type Piper struct {
	IFGS, Exts, Dirs []string
	METS             string
}

func (Piper) Pipe added in v0.0.17

func (p Piper) Pipe(ctx context.Context, fns ...apoco.StreamFunc) error

type Stok added in v0.0.21

type Stok struct {
	OCR, Sug, GT, ID         string
	Conf                     float64
	Rank                     int
	Skipped, Short, Lex, Cor bool
}

Stok represents a stats token. Stat tokens explain correction decisions of apoco.

func MakeStok added in v0.0.21

func MakeStok(line string) (Stok, error)

MakeStok creates a new stats token from a according formatted line.

func (Stok) String added in v0.0.21

func (s Stok) String() string

Jump to

Keyboard shortcuts

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