zhch158_admin 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
..
B用户_扫描流水.yaml 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
README.md 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
康强_北京农村商业银行_mineru.yaml 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
康强_北京农村商业银行_ppstructure.yaml 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
康强_北京农村商业银行_yusys_ocr.yaml 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana
施博深.yaml 0ac3fe879a feat: add editor and template services for managing table structures and templates hace 1 semana

README.md

数据源配置说明

本目录存放 Table Line Editor Vue 的数据源配置文件。

配置文件格式

每个数据源一个 YAML 文件,格式如下:

data_source:
  name: "数据源名称"
  description: "数据源描述"
  json_format: "mineru"  # 或 "ppstructure"
  base_dir: "/path/to/base"
  json_dir: "{{name}}/ocr_results"
  image_dir: "{{name}}/images"
  json_pattern: "{{ name }}_page_(?P<page>\\d{3})\\.json"
  image_pattern: "{{ name }}_page_(?P<page>\\d{3})\\.png"
  sort_key: "page"
  output:
    directory: "{{base_dir}}/{{ name }}.wiredtable"
    structure_suffix: "_structure.json"
    image_suffix: ".png"
  
  batch:
    enabled: true
    template_name: null  # 可选:默认模板名称
    auto_apply: false
    parallel_workers: 4

模板变量

支持以下模板变量:

  • {{name}}: 数据源名称
  • {{base_dir}}: 基础目录路径

使用方式

  1. 手动创建配置文件:参考示例文件创建新的数据源配置
  2. 通过 API 读取:前端通过 /api/config/data-sources 获取所有数据源
  3. 应用配置:选择数据源后,自动设置扫描目录和输出目录