docs: 添加涉密文件自检工具实施计划
This commit is contained in:
14
UmiOCR-data/py_src/ocr/tbpu/parser_none.py
Normal file
14
UmiOCR-data/py_src/ocr/tbpu/parser_none.py
Normal file
@@ -0,0 +1,14 @@
|
||||
# 排版解析-不做处理
|
||||
|
||||
from .tbpu import Tbpu
|
||||
|
||||
|
||||
class ParserNone(Tbpu):
|
||||
def __init__(self):
|
||||
self.tbpuName = "排版解析-不做处理"
|
||||
|
||||
def run(self, textBlocks):
|
||||
for tb in textBlocks:
|
||||
if "end" not in tb:
|
||||
tb["end"] = "\n" # 默认结尾间隔符为换行
|
||||
return textBlocks
|
||||
Reference in New Issue
Block a user