MCPcopy Create free account

hub / github.com/NanoNets/docstrange / functions

Functions340 in github.com/NanoNets/docstrange

↓ 1 callersFunctiontest_advanced_ocr
Test the advanced OCR service.
tests/test_advanced_ocr.py:14
↓ 1 callersFunctiontest_all_sample_files
Test all sample files in the sample_documents folder.
tests/test_ocr_with_real_image.py:212
↓ 1 callersFunctiontest_basic_functionality
Test basic functionality of the enhanced library.
tests/test_enhanced_library.py:11
↓ 1 callersFunctiontest_basic_structure
Test basic markdown structure parsing.
tests/test_json_structure.py:11
↓ 1 callersFunctiontest_batch_processing
Test batch processing capabilities.
tests/test_real_files.py:192
↓ 1 callersFunctiontest_complex_hierarchy
Test complex heading hierarchy.
tests/test_json_structure.py:174
↓ 1 callersFunctiontest_content_types
Test different content types parsing.
tests/test_json_structure.py:49
↓ 1 callersFunctiontest_document_conversion
Test conversion of a single document to a specific format.
tests/test_cloud_mode.py:22
↓ 1 callersFunctiontest_empty_content
Test empty or whitespace-only content.
tests/test_json_structure.py:160
↓ 1 callersFunctiontest_error_handling
Test error handling functionality.
tests/test_enhanced_library.py:159
↓ 1 callersFunctiontest_field_extraction
Test field extraction functionality.
tests/test_cloud_mode.py:80
↓ 1 callersFunctiontest_file_extraction
Test extraction capabilities on downloaded and created files.
tests/test_real_files_enhanced.py:123
↓ 1 callersFunctiontest_file_extraction
Test extraction capabilities on downloaded files.
tests/test_real_files.py:78
↓ 1 callersFunctiontest_html_generation
Test the HTML generation with various markdown elements.
tests/test_html_generation.py:6
↓ 1 callersFunctiontest_layout_classification
Test the layout classification logic.
tests/test_enhanced_layout.py:79
↓ 1 callersFunctiontest_layout_detection
Test the enhanced layout detection functionality.
tests/test_enhanced_layout.py:19
↓ 1 callersFunctiontest_llm_integration_ready
Test if the output is ready for LLM integration.
tests/test_real_files_enhanced.py:243
↓ 1 callersFunctiontest_llm_integration_with_ocr
Test LLM integration with OCR results.
tests/test_ocr_with_real_image.py:159
↓ 1 callersFunctiontest_markdown_quality
Test the quality of markdown output.
tests/test_real_files_enhanced.py:213
↓ 1 callersFunctiontest_markdown_to_json
Test converting a markdown string to structured JSON.
tests/test_real_json_conversion.py:11
↓ 1 callersFunctiontest_model_downloader
Test the model downloader.
tests/test_advanced_ocr.py:86
↓ 1 callersFunctiontest_no_headers
Test content without headers.
tests/test_json_structure.py:138
↓ 1 callersFunctiontest_ocr_capabilities
Test OCR capabilities with a sample image.
tests/test_real_files.py:133
↓ 1 callersFunctiontest_ocr_capabilities
Test OCR capabilities specifically.
tests/test_enhanced_pdf_processor.py:126
↓ 1 callersFunctiontest_ocr_comparison
Compare OCR vs non-OCR results.
tests/test_ocr_with_real_image.py:111
↓ 1 callersFunctiontest_ocr_debug
Test OCR with detailed debugging.
tests/debug_ocr.py:11
↓ 1 callersFunctiontest_ocr_functionality
Test OCR functionality if available.
tests/test_enhanced_library.py:193
↓ 1 callersFunctiontest_ocr_service_factory
Test the OCR service factory with different providers.
tests/test_advanced_ocr.py:58
↓ 1 callersFunctiontest_ocr_with_real_image
Test OCR capabilities with the real sample.png file.
tests/test_ocr_with_real_image.py:11
↓ 1 callersFunctiontest_paddleocr_model_download
Test PaddleOCR model download functionality.
tests/test_enhanced_pdf_processor.py:164
↓ 1 callersFunctiontest_pdf_processor_directly
Test the PDF processor directly with different configurations.
tests/test_enhanced_pdf_processor.py:82
↓ 1 callersFunctiontest_pdf_processor_enhancements
Test the enhanced PDF processor with OCR support and markdown output.
tests/test_enhanced_pdf_processor.py:26
↓ 1 callersFunctiontest_processor_specific_functionality
Test specific processor functionality.
tests/test_enhanced_library.py:86
↓ 1 callersFunctiontest_schema_extraction
Test JSON schema extraction functionality.
tests/test_cloud_mode.py:119
↓ 1 callersFunctiontest_url_extraction
Test URL extraction capabilities.
tests/test_real_files.py:162
↓ 1 callersMethodupdatePreviewContent
(content)
docstrange/static/script.js:229
↓ 1 callersMethodupdateProcessingModeOptions
(systemInfo)
docstrange/static/script.js:27
↓ 1 callersMethodupdateRawContent
(content)
docstrange/static/script.js:249
Method__del__
Cleanup resources.
docstrange/pipeline/nanonets_processor.py:131
Method__del__
Cleanup resources.
docstrange/pipeline/neural_document_processor.py:646
Method__init__
Initialize the file extractor. Args: preserve_layout: Whether to preserve document layout include_images: Whe
docstrange/extractor.py:30
Method__init__
Initialize the parser.
docstrange/result.py:16
Method__init__
Initialize the extractor.
docstrange/result.py:359
Method__init__
Initialize the conversion result. Args: content: The converted content as string metadata: Optional metadata
docstrange/result.py:692
Method__init__
Initialize Ollama field extractor. Args: base_url: Ollama server URL (default: http://localhost:11434) model:
docstrange/services/ollama_service.py:13
Method__init__
(self, auth_service, *args, **kwargs)
docstrange/services/auth_service.py:25
Method__init__
(self, text: str, x: int, y: int, width: int, height: int, element_type: str = "text", confi
docstrange/pipeline/layout_detector.py:14
Method__init__
Initialize the layout detector.
docstrange/pipeline/layout_detector.py:41
Method__init__
Initialize the model downloader. Args: cache_dir: Directory to cache downloaded models
docstrange/pipeline/model_downloader.py:47
Method__init__
Initialize the Neural Document Processor with Nanonets OCR.
docstrange/pipeline/nanonets_processor.py:15
Method__init__
Initialize the service.
docstrange/pipeline/ocr_service.py:42
Method__init__
Initialize the service.
docstrange/pipeline/ocr_service.py:125
Method__init__
Initialize the Neural Document Processor.
docstrange/pipeline/neural_document_processor.py:64
Method__init__
Initialize the processor. Args: preserve_layout: Whether to preserve document layout include_images: Whether
docstrange/processors/base.py:15
Method__init__
(self, preserve_layout: bool = True, include_images: bool = False, ocr_enabled: bool = True, use_markdownify:
docstrange/processors/image_processor.py:19
Method__init__
(self, content: str, metadata: Optional[Dict[str, Any]] = None, gpu_processor: Optional['GPU
docstrange/processors/gpu_processor.py:23
Method__init__
(self, file_path: str, cloud_processor: 'CloudProcessor', metadata: Optional[Dict[str, Any]] = None)
docstrange/processors/cloud_processor.py:19
Method__init__
(self, preserve_layout: bool = True, include_images: bool = False, ocr_enabled: bool = True, use_markdownify:
docstrange/processors/pdf_processor.py:22
Method__init__
(self)
mcp_server_module/server.py:55
Method__repr__
Representation of the result object.
docstrange/result.py:1141
Method__str__
String representation of the result.
docstrange/result.py:1137
Method_clean_content
Clean up the extracted Excel content. Args: content: Raw Excel text content Returns: Cle
docstrange/processors/excel_processor.py:182
Method_convert_page_to_image
Convert a PDF page to an image file. Args: pdf_path: Path to the PDF file page_num: Page number (0-based)
docstrange/processors/pdf_processor.py:134
Method_extract_ocr_text_from_result
Extract OCR text from ImageProcessor result. Args: result: ConversionResult from ImageProcessor Retu
docstrange/processors/pdf_processor.py:168
Method_format_page_content
Format page content as markdown with enhanced structure. Args: text: Extracted text page_num: Page number
docstrange/processors/pdf_processor.py:209
Methodare_models_cached
Check if all required models are cached. Returns: True if all required models are cached, False otherwise
docstrange/pipeline/model_downloader.py:232
Methodauthenticate
Perform browser-based authentication and update API key. Args: force_reauth: Force re-authentication even if cac
docstrange/extractor.py:117
Methodbuild_tree
(sections, parent_level=0)
mcp_server_module/server.py:149
Methodcall_tool
Handle tool calls.
mcp_server_module/server.py:534
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/html_processor.py:18
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/excel_processor.py:18
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/txt_processor.py:14
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/docx_processor.py:14
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/image_processor.py:23
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check (or URL)
docstrange/processors/url_processor.py:17
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/gpu_processor.py:263
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/pdf_processor.py:34
Methodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/pptx_processor.py:18
Methodcenter_x
Get center X coordinate.
docstrange/pipeline/layout_detector.py:33
Methodcenter_y
Get center Y coordinate.
docstrange/pipeline/layout_detector.py:29
Methodconstructor
()
docstrange/static/script.js:4
Methodconvert_to_structured_markdown
Convert text blocks to structured markdown with proper hierarchy.
docstrange/pipeline/layout_detector.py:54
Methodconvert_with_output_type
Convert a file with specific output type for cloud processing. Args: file_path: Path to the file to extract o
docstrange/extractor.py:199
Methodcreate_layout_element_from_block
Create a LayoutElement from a block of text data.
docstrange/pipeline/layout_detector.py:295
Methoddo_GET
Handle GET request from OAuth callback.
docstrange/services/auth_service.py:29
FunctiondownloadAsJson
()
docstrange/static/script.js:376
FunctiondownloadAsText
()
docstrange/static/script.js:357
Functionextract_document
API endpoint for document extraction.
docstrange/web_app.py:86
Methodextract_html
Export as HTML with GPU processing styling.
docstrange/processors/gpu_processor.py:60
Methodextract_markdown
Export as markdown without GPU processing metadata.
docstrange/processors/gpu_processor.py:56
Methodextract_markdown
Export as markdown.
docstrange/processors/cloud_processor.py:132
Methodextract_tables_from_sections
(sections)
docstrange/result.py:1047
Methodextract_text
Extract text using Neural OCR (docling models).
docstrange/pipeline/ocr_service.py:131
Methodextract_text
Extract text from image using neural OCR.
docstrange/pipeline/neural_document_processor.py:264
Methodextract_text
Export as plain text.
docstrange/processors/cloud_processor.py:188
Methodextract_text_with_layout
Extract text with layout awareness using Nanonets OCR. Note: Nanonets OCR already provides layout-aware extraction, so this m
docstrange/pipeline/nanonets_processor.py:95
Methodextract_text_with_layout
Extract text with layout awareness using Neural OCR.
docstrange/pipeline/ocr_service.py:160
Methodextract_text_with_layout
Extract text with layout awareness using neural models.
docstrange/pipeline/neural_document_processor.py:277
Methodget_cache_info
Get information about cached models. Returns: Dictionary with cache information
docstrange/pipeline/model_downloader.py:295
Methodget_ocr_info
Get information about the OCR processing used. Returns: Dictionary with OCR processing information
docstrange/processors/gpu_processor.py:43
← previousnext →201–300 of 340, ranked by callers