浏览代码

feat(table-config): add sub_model configuration for rapid_table

- Add sub_model configuration option for rapid_table model
- Provide two sub_model options: slanet_plus and unitable
myhloli 9 月之前
父节点
当前提交
6ff18b14fa
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      README.md
  2. 1 0
      README_zh-CN.md

+ 1 - 0
README.md

@@ -278,6 +278,7 @@ You can modify certain configurations in this file to enable or disable features
     },
     "table-config": {
         "model": "rapid_table",  // Default to using "rapid_table", can be switched to "tablemaster" or "struct_eqtable".
+        "sub_model": "slanet_plus",  // When the model is "rapid_table", you can choose a sub_model. The options are "slanet_plus" and "unitable"
         "enable": true, // The table recognition feature is enabled by default. If you need to disable it, please change the value here to "false".
         "max_time": 400
     }

+ 1 - 0
README_zh-CN.md

@@ -282,6 +282,7 @@ pip install -U "magic-pdf[full]" --extra-index-url https://wheels.myhloli.com -i
     },
     "table-config": {
         "model": "rapid_table",  // 默认使用"rapid_table",可以切换为"tablemaster"和"struct_eqtable"
+        "sub_model": "slanet_plus",  // 当model为"rapid_table"时,可以自选sub_model,可选项为"slanet_plus"和"unitable"
         "enable": true, // 表格识别功能默认是开启的,如果需要关闭请修改此处的值为"false"
         "max_time": 400
     }