finder

package
v1.0.0-RC6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	// FindNames detects scientific names in an item. When a name is detected, it
	// is associated with the parent Item, a Page where it is located, as well as
	// its position on the page which is represented by offset in unicode
	// characters from the start of the page. Optionally, it provides words
	// that are located immediately before and after a name. If there is an
	// nomenclatural annotation after the name, such annotation is normalized
	// and registered.
	FindNames(
		<-chan *item.Item,
		chan<- []name.DetectedName,
		*sync.WaitGroup,
	)

	// SaveNames is an aggregator method that should always run in one instance.
	// It collects detected names data and saves them into storage.
	SaveNames(context.Context, <-chan []name.DetectedName) error
}

Finder detects scientific names in items.

Jump to

Keyboard shortcuts

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