Represents a tool for preliminary data extraction from documents for separating the stage of subsequent fast indexing.
The Extractor type exposes the following members:
| Constructor |
Description |
| init |
Initializes a new instance of the Extractor class. |
| Method |
Description |
| extract |
Extracts data from a document. |
| Property |
Description |
| settings |
The extractor settings. |
| Event |
Description |
| error_occurred |
Occurs when an error happens during an extractor operation. |
| image_preparing |
Occurs when an image is going to be prepared for indexing. |
| password_required |
Occurs when a document requires password for opening. |
from groupdocs.search import Extractor
from groupdocs.search.common import Document
from groupdocs.search.options import ExtractionOptions
extractor = Extractor()
extractor.error_occurred += lambda sender, args: print(args.message)
document = Document.create_from_file("./documents/lecture.txt")
extraction_options = ExtractionOptions()
extraction_options.use_raw_text_extraction = False
extracted_data = extractor.extract(document, extraction_options)
We value your opinion. Your feedback will help us improve our documentation.