MCPcopy Create free account

hub / github.com/NanoNets/docstrange / functions

Functions340 in github.com/NanoNets/docstrange

↓ 1 callersMethod_get_tokenizer
Lazily initialize the tokenizer for token counting.
mcp_server_module/server.py:69
↓ 1 callersMethod_get_user_info
Get user information from Auth0 userinfo endpoint.
docstrange/services/auth_service.py:591
↓ 1 callersMethod_group_into_paragraphs_advanced
Advanced paragraph grouping using multiple heuristics.
docstrange/pipeline/layout_detector.py:85
↓ 1 callersMethod_initialize_docling_models
Initialize docling's pre-trained models.
docstrange/pipeline/neural_document_processor.py:208
↓ 1 callersMethod_initialize_model_paths
Initialize paths to downloaded models.
docstrange/pipeline/neural_document_processor.py:99
↓ 1 callersMethod_initialize_models
Initialize Nanonets OCR model from local cache.
docstrange/pipeline/nanonets_processor.py:24
↓ 1 callersMethod_initialize_models
Initialize all required models.
docstrange/pipeline/neural_document_processor.py:86
↓ 1 callersMethod_is_list_item
Check if text is a list item.
docstrange/pipeline/layout_detector.py:218
↓ 1 callersMethod_is_table_row
Check if text might be a table row.
docstrange/pipeline/layout_detector.py:226
↓ 1 callersMethod_is_url
Check if the text looks like a URL. Args: text: Text to check Returns: True if text look
docstrange/processors/url_processor.py:291
↓ 1 callersMethod_organize_table_data
Organize table data into proper structure using row/col indices from tf_responses.
docstrange/pipeline/neural_document_processor.py:485
↓ 1 callersMethod_parse_markdown_sections
Parse markdown content into sections based on headers.
mcp_server_module/server.py:94
↓ 1 callersMethod_post_process_text
Post-process text to improve readability.
docstrange/pipeline/layout_detector.py:172
↓ 1 callersMethod_process_blockquotes
Process blockquotes.
docstrange/result.py:514
↓ 1 callersMethod_process_code_blocks
Process fenced code blocks.
docstrange/result.py:410
↓ 1 callersMethod_process_csv
Process a CSV file and return a conversion result. Args: file_path: Path to the CSV file to process
docstrange/processors/excel_processor.py:60
↓ 1 callersMethod_process_doc_file
Process .doc files using pypandoc.
docstrange/processors/docx_processor.py:63
↓ 1 callersMethod_process_docx_file
Process .docx files using python-docx with improved table extraction.
docstrange/processors/docx_processor.py:86
↓ 1 callersMethod_process_excel
Process an Excel file and return a conversion result. Args: file_path: Path to the Excel file to process
docstrange/processors/excel_processor.py:98
↓ 1 callersMethod_process_file_url
Download and process a file from URL. Args: url: URL to download from file_info: Information about the file
docstrange/processors/url_processor.py:169
↓ 1 callersMethod_process_headers
Process markdown headers.
docstrange/result.py:548
↓ 1 callersMethod_process_horizontal_rules
Process horizontal rules.
docstrange/result.py:510
↓ 1 callersMethod_process_image
Process image file with OCR capabilities. Args: file_path: Path to the image file Returns:
docstrange/processors/gpu_processor.py:316
↓ 1 callersMethod_process_lists
Process ordered and unordered lists.
docstrange/result.py:557
↓ 1 callersMethod_process_paragraphs
Process paragraphs by wrapping non-empty lines in <p> tags.
docstrange/result.py:648
↓ 1 callersMethod_process_pdf
Process PDF file by converting to images and using OCR. Args: file_path: Path to the PDF file Return
docstrange/processors/gpu_processor.py:357
↓ 1 callersMethod_process_ppt_file
Process .ppt files using pypandoc.
docstrange/processors/pptx_processor.py:67
↓ 1 callersMethod_process_pptx_file
Process .pptx files using python-pptx.
docstrange/processors/pptx_processor.py:90
↓ 1 callersMethod_process_tables
Process markdown tables.
docstrange/result.py:449
↓ 1 callersMethod_process_tables_with_structure_model
Process tables using the table structure model.
docstrange/pipeline/neural_document_processor.py:398
↓ 1 callersMethod_process_web_page
Process a web page URL. Args: url: URL to process Returns: ConversionResult containing t
docstrange/processors/url_processor.py:227
↓ 1 callersMethod_process_with_ocr
Process PDF using OCR after converting pages to images.
docstrange/processors/pdf_processor.py:83
↓ 1 callersMethod_search_in_document
Search for a query in the document.
mcp_server_module/server.py:265
↓ 1 callersMethod_setup_handlers
Setup MCP server handlers.
mcp_server_module/server.py:339
↓ 1 callersMethod_setup_local_processors
Setup local processors based on GPU preferences.
docstrange/extractor.py:151
↓ 1 callersMethod_start_callback_server
Start local server to handle OAuth callback with limited ports for Auth0 whitelist.
docstrange/services/auth_service.py:339
↓ 1 callersFunctionanalyze_content
Analyze the content structure of the markdown.
tests/test_real_files_enhanced.py:188
↓ 1 callersMethodarea
Calculate area of the element.
docstrange/pipeline/layout_detector.py:25
↓ 1 callersMethodauthenticate
Perform browser-based authentication. Args: force_reauth: Force re-authentication even if cached credentials exi
docstrange/services/auth_service.py:433
↓ 1 callersMethodcan_process
Check if this processor can handle the given file. Args: file_path: Path to the file to check Return
docstrange/processors/base.py:30
↓ 1 callersMethodcan_process
Check if the processor can handle the file.
docstrange/processors/cloud_processor.py:238
↓ 1 callersFunctionclear_auth
Clear cached authentication credentials.
docstrange/services/auth_service.py:700
↓ 1 callersFunctioncreate_extractor_with_mode
Create DocumentExtractor with proper error handling for processing mode.
docstrange/web_app.py:63
↓ 1 callersFunctioncreate_sample_files
Create additional sample files for testing.
tests/test_real_files_enhanced.py:46
↓ 1 callersFunctioncreate_sample_text_file
Create a sample text file for testing.
tests/test_real_files.py:48
↓ 1 callersMethoddisableSubmitButton
()
docstrange/static/script.js:147
↓ 1 callersMethoddisplayFileInfo
(file)
docstrange/static/script.js:106
↓ 1 callersMethoddisplayResults
(result)
docstrange/static/script.js:199
↓ 1 callersFunctiondownload_and_package_models
Download models from HF and package for S3.
scripts/prepare_s3_models.py:22
↓ 1 callersFunctiondownload_models
Download models synchronously before starting the app.
docstrange/web_app.py:26
↓ 1 callersFunctiondownload_sample_files
Download sample files for each supported format using reliable sources.
tests/test_real_files_enhanced.py:13
↓ 1 callersFunctiondownload_sample_files
Download sample files for each supported format.
tests/test_real_files.py:13
↓ 1 callersMethodenableSubmitButton
()
docstrange/static/script.js:142
↓ 1 callersMethodescapeHtml
(text)
docstrange/static/script.js:254
↓ 1 callersMethodexchange_code_for_token
Exchange authorization code for access token directly with Auth0.
docstrange/services/auth_service.py:521
↓ 1 callersMethodextract
Convert markdown text to HTML. Args: markdown_text: The markdown content to extract Returns:
docstrange/result.py:373
↓ 1 callersMethodextract_csv
Export tables as CSV format. Args: table_index: Which table to export (0-based index). Default is 0 (first table).
docstrange/processors/cloud_processor.py:197
↓ 1 callersMethodextract_data
Export as structured JSON using Nanonets model with specific prompt.
docstrange/processors/gpu_processor.py:80
↓ 1 callersMethodextract_data
Export as structured JSON with optional field extraction. Args: specified_fields: Optional list of specific fields to ext
docstrange/processors/cloud_processor.py:140
↓ 1 callersMethodextract_document_json
Extract important fields and their values from document content using Ollama. Args: markdown_content: Raw markdown conten
docstrange/services/ollama_service.py:227
↓ 1 callersMethodextract_fields
Extract specified fields from markdown content. Args: markdown_content: The markdown content to extract from
docstrange/services/ollama_service.py:74
↓ 1 callersMethodextract_html
Export as HTML.
docstrange/processors/cloud_processor.py:136
↓ 1 callersMethodextract_text
Extract text from image using Nanonets OCR.
docstrange/pipeline/nanonets_processor.py:82
↓ 1 callersMethodextract_text
Extract text using Nanonets OCR.
docstrange/pipeline/ocr_service.py:63
↓ 1 callersMethodextract_text_with_layout
Extract text with layout awareness using Nanonets OCR.
docstrange/pipeline/ocr_service.py:92
↓ 1 callersMethodextract_url
Convert a URL to internal format. Args: url: URL to extract Returns: ConversionResult co
docstrange/extractor.py:233
↓ 1 callersMethodextract_with_schema
Extract data according to a JSON schema from markdown content. Args: markdown_content: The markdown content to extract fr
docstrange/services/ollama_service.py:153
↓ 1 callersMethodformatFileSize
(bytes)
docstrange/static/script.js:120
↓ 1 callersFunctiongenerate_detailed_report
Generate a detailed test report.
tests/test_real_files_enhanced.py:301
↓ 1 callersFunctiongenerate_report
Generate a comprehensive test report.
tests/test_real_files.py:246
↓ 1 callersMethodget_available_providers
Get list of available OCR providers. Returns: List of available provider names
docstrange/pipeline/ocr_service.py:216
↓ 1 callersFunctionget_gpu_info
Get detailed GPU information. Returns: Dictionary with GPU information
docstrange/utils/gpu_utils.py:33
↓ 1 callersMethodhandleFormSubmission
()
docstrange/static/script.js:152
↓ 1 callersFunctionhandle_logout
Handle logout command.
docstrange/cli.py:148
↓ 1 callersMethodhideLoading
()
docstrange/static/script.js:284
↓ 1 callersMethodinitializeApp
()
docstrange/static/script.js:10
↓ 1 callersMethodinitializeEventListeners
()
docstrange/static/script.js:32
↓ 1 callersMethodjoin_text_properly
Join text words into proper sentences and paragraphs.
docstrange/pipeline/layout_detector.py:255
↓ 1 callersMethodloadSystemInfo
()
docstrange/static/script.js:15
↓ 1 callersFunctionmain
Main CLI function.
docstrange/cli.py:165
↓ 1 callersFunctionmain
CLI entry point for authentication.
docstrange/services/auth_service.py:707
↓ 1 callersFunctionmain
Main setup function.
scripts/setup_dev.py:24
↓ 1 callersFunctionmain
Main test function.
tests/test_cloud_mode.py:165
↓ 1 callersFunctionmain
Main test function.
tests/test_ocr_with_real_image.py:286
↓ 1 callersFunctionmain
Main test function.
tests/test_real_files_enhanced.py:345
↓ 1 callersFunctionmain
Main test function.
tests/test_real_files.py:276
↓ 1 callersFunctionmain
Run the test.
tests/test_real_json_conversion.py:120
↓ 1 callersFunctionmain
Main test function.
tests/test_enhanced_library.py:216
↓ 1 callersFunctionmain
Main test function.
tests/test_enhanced_pdf_processor.py:179
↓ 1 callersFunctionmain
Run all tests.
tests/test_json_structure.py:228
↓ 1 callersMethodpredownload_ocr_models
Pre-download OCR models by running a dummy prediction.
docstrange/processors/gpu_processor.py:489
↓ 1 callersFunctionprint_supported_formats
Print supported formats in a nice format.
docstrange/cli.py:22
↓ 1 callersFunctionprint_version
Print version information.
docstrange/cli.py:15
↓ 1 callersMethodprocess
Process image file with OCR capabilities. Args: file_path: Path to the image file Returns:
docstrange/processors/image_processor.py:47
↓ 1 callersMethodprocess
Create a lazy CloudConversionResult that will make API calls on demand. Args: file_path: Path to the file to process
docstrange/processors/cloud_processor.py:251
↓ 1 callersFunctionprocess_single_input
Process a single input item and return result with metadata.
docstrange/cli.py:47
↓ 1 callersMethodprocessor
Get the Nanonets processor.
docstrange/pipeline/ocr_service.py:54
↓ 1 callersMethodremoveFile
()
docstrange/static/script.js:128
↓ 1 callersMethodshowLoading
()
docstrange/static/script.js:274
↓ 1 callersMethodswitchTab
(tabName)
docstrange/static/script.js:260
← previousnext →101–200 of 340, ranked by callers