txt

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityNER

type EntityNER interface {
	Formatter
}

type Formatter

type Formatter interface {
	ToJSON(pretty bool) ([]byte, error)
}

type PageNER

type PageNER interface {
	GetID() string
	TextNER
}

func NewPageNER

func NewPageNER(id string, text []rune) PageNER

type TextNER

type TextNER interface {
	GetText() []rune

	SetLines(lines map[int]int)
	GetLines() map[int]int

	SetEntities(ents []EntityNER)
	GetEntities() []EntityNER

	Formatter
}

func NewTextNER

func NewTextNER(text []rune) TextNER

type VolumeNER

type VolumeNER interface {
	GetID() string
	SetPages(pages []PageNER)
	GetPages() []PageNER
	Formatter
}

func NewVolumeNER

func NewVolumeNER(id string) VolumeNER

Jump to

Keyboard shortcuts

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