test_table.py 1.07 KB
Newer Older
quyuan's avatar
quyuan committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""
test table case
"""
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_paddle_table_master_cuda(self):
        """
        select table: paddle table master,mode is cuda
        """
    def test_paddle_table_master_cpu(self):
        """
        select table: paddle table master, mode is cpu
        """
    def test_st_table_cuda(self):
        """
        select table: ST, mode is cuda 
        """

    def test_st_table_cpu(self):
        """
        select table: ST, mode is cpu
        """

    def test_close_table_cuda(self):
        """
        close table, mode is cuda
        """
    



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