snippets

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extensions

type Extensions []string

Extensions is used to tokenize snippets in directories using the list of file extensions.

func (Extensions) Tokenize

func (e Extensions) Tokenize(dirs ...string) apoco.StreamFunc

Tokenize tokenizes tokens from line snippets TSV files (identyfied by the given file extensions) and alignes them accordingly. If a extension ends with `.txt`, one line is read from the text file (no confidences). Otherwise the file is read as a TSV file expecting on char and its confidence on each line.

Jump to

Keyboard shortcuts

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