View Source TxtaiEx.Textractor (txtai_ex v0.1.1)

txtai textractor instance for interfacing with a remote txtai service via REST API calls, providing functionality for extracting text from files.

Summary

Functions

Extracts text from a list of files in batch.

Extracts text from a single file.

Functions

Link to this function

batchtextract(api, files)

View Source

Extracts text from a list of files in batch.

Parameters

  • api: The API struct containing configuration for URL and token.
  • files: A list of paths to files from which text is to be extracted.

Returns

  • on success, where list_of_extracted_texts contains the text extracted from each file.
  • on failure.

Extracts text from a single file.

Parameters

  • api: The API struct containing configuration for URL and token.
  • file: The path to the file from which text is to be extracted.

Returns

  • on success, where extracted_text is the text extracted from the file.
  • on failure.