Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chatdoc-com/OCRFlux
/ functions
Functions
141 in github.com/chatdoc-com/OCRFlux
⨍
Functions
141
◇
Types & classes
18
↓ 1 callers
Function
vllm_server_host
(args, semaphore)
ocrflux/pipeline.py:666
↓ 1 callers
Function
vllm_server_ready
(args)
ocrflux/pipeline.py:681
↓ 1 callers
Function
vllm_server_task
(args, semaphore)
ocrflux/pipeline.py:561
↓ 1 callers
Function
worker
(args, work_queue: WorkQueue, semaphore, worker_id)
ocrflux/pipeline.py:509
Method
__init__
(self, tag, colspan=None, rowspan=None, content=None, *children)
eval/eval_table_to_html_nanonets.py:46
Method
__init__
(self, structure_only=False, n_jobs=1, ignore_nodes=None)
eval/eval_table_to_html_nanonets.py:90
Method
__init__
(self, tag, colspan=None, rowspan=None, content=None, *children)
eval/eval_table_to_html.py:14
Method
__init__
(self, structure_only=False, n_jobs=1, ignore_nodes=None)
eval/eval_table_to_html.py:58
Method
__init__
(self, tag, colspan=None, rowspan=None, content=None, *children)
eval/eval_table_to_html_olmocr.py:15
Method
__init__
(self, structure_only=False, n_jobs=1, ignore_nodes=None)
eval/eval_table_to_html_olmocr.py:59
Method
__init__
(self, tag, colspan=None, rowspan=None, content=None, *children)
eval/eval_html_table_merge.py:14
Method
__init__
(self, structure_only=False, n_jobs=1, ignore_nodes=None)
eval/eval_html_table_merge.py:58
Method
__init__
Initialize the local work queue. Args: workspace_path: Local directory path where the queue index,
ocrflux/work_queue.py:170
Method
__init__
Initializes the MetricsKeeper. Args: window (int): Time window in seconds for recent metrics. Defaults to 5 minutes.
ocrflux/metrics.py:8
Method
__init__
Initializes the WorkerTracker with a default dictionary. Each worker ID maps to another dictionary that holds counts for each state.
ocrflux/metrics.py:77
Method
__post_init__
(self)
ocrflux/prompts.py:14
Method
__str__
Returns a formatted string of metrics showing tokens/sec since start and within the window. Returns: str: Formatted metr
ocrflux/metrics.py:48
Method
__str__
String representation is not directly supported. Use 'await get_status_table()' to retrieve the status table.
ocrflux/metrics.py:142
Function
_kill_proc
()
ocrflux/pipeline.py:587
Method
bracket
Show tree using brackets notation
eval/eval_table_to_html_nanonets.py:53
Method
bracket
Show tree using brackets notation
eval/eval_table_to_html.py:21
Method
bracket
Show tree using brackets notation
eval/eval_table_to_html_olmocr.py:22
Method
bracket
Show tree using brackets notation
eval/eval_html_table_merge.py:21
Function
download_zstd_csv_local
Download a zstd-compressed CSV from a local path. If the file doesn't exist, returns an empty list.
ocrflux/work_queue.py:122
Method
get_work
Get the next available work item that isn't completed or locked. Args: worker_lock_timeout_secs: Number of seconds befor
ocrflux/work_queue.py:291
Method
initialize_queue
Load the work queue from the relevant store (local or remote) and initialize it for processing. For example, this might remo
ocrflux/work_queue.py:41
Method
is_completed
Check if a work item has been completed. Args: work_hash: Hash of the work item to check Returns: T
ocrflux/work_queue.py:52
Method
mark_done
Mark a work item as done by removing its lock file. Args: work_item: The WorkItem to mark as done
ocrflux/work_queue.py:339
Method
populate_queue
Add new items to the work queue. The specifics will vary depending on whether this is a local or S3-backed queue. Args:
ocrflux/work_queue.py:29
Method
rename
Compares attributes of trees
eval/eval_table_to_html_nanonets.py:77
Method
rename
Compares attributes of trees
eval/eval_table_to_html.py:45
Method
rename
Compares attributes of trees
eval/eval_table_to_html_olmocr.py:46
Method
rename
Compares attributes of trees
eval/eval_html_table_merge.py:45
Function
replace_with_brackets
(match)
eval/eval_table_to_html_nanonets.py:26
Function
replace_with_brackets
(match)
eval/eval_page_to_markdown_olmocr.py:22
Function
replace_with_brackets
(match)
eval/eval_page_to_markdown_nanonets.py:22
Method
size
Get current size of work queue
ocrflux/work_queue.py:91
Method
size
Get current size of local work queue
ocrflux/work_queue.py:355
Function
table_html2matrix
(html_table)
ocrflux/table_format.py:73
Function
trans_markdown_text
(markdown_text,trans_type)
ocrflux/table_format.py:130
Function
upload_zstd_csv_local
Upload a zstd-compressed CSV to a local path.
ocrflux/work_queue.py:140
← previous
101–141 of 141, ranked by callers