mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 02:58:54 +07:00
37 lines
647 B
Python
37 lines
647 B
Python
"""
|
|
test performance
|
|
"""
|
|
import os
|
|
import shutil
|
|
import json
|
|
from lib import calculate_score
|
|
import pytest
|
|
from conf import conf
|
|
|
|
code_path = os.environ.get('GITHUB_WORKSPACE')
|
|
pdf_dev_path = conf.conf["pdf_dev_path"]
|
|
pdf_res_path = conf.conf["pdf_res_path"]
|
|
|
|
class TestTable():
|
|
"""
|
|
test table
|
|
"""
|
|
def test_perf_close_table(self):
|
|
"""
|
|
test perf when close table
|
|
"""
|
|
|
|
|
|
|
|
|
|
def get_score():
|
|
"""
|
|
get score
|
|
"""
|
|
score = calculate_score.Scoring(os.path.join(pdf_dev_path, "result.json"))
|
|
score.calculate_similarity_total("mineru", pdf_dev_path)
|
|
res = score.summary_scores()
|
|
return res
|
|
|
|
|