tesseract

package
v0.0.0-...-2ec7614 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(url string, options ...Option) (*Client, error)

func (*Client) Extract

func (c *Client) Extract(ctx context.Context, input extractor.File, options *extractor.ExtractOptions) (*extractor.Document, error)

type Option

type Option func(*Client)

func WithChunkOverlap

func WithChunkOverlap(overlap int) Option

func WithChunkSize

func WithChunkSize(size int) Option

func WithClient

func WithClient(client *http.Client) Option

type Result

type Result struct {
	Data struct {
		Stderr string `json:"stderr"`
		Stdout string `json:"stdout"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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