unstructured

package
v0.0.0-...-8699900 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 10 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 Element

type Element struct {
	ID string `json:"element_id"`

	Type string `json:"type"`
	Text string `json:"text"`

	Metadata ElementMetadata `json:"metadata"`
}

type ElementMetadata

type ElementMetadata struct {
	FileName string `json:"filename"`
	FileType string `json:"filetype"`

	Languages []string `json:"languages"`
}

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

Jump to

Keyboard shortcuts

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