Unstructured-IO / Unstructured-IO/unstructured-inference

是否可以将加载 microsoft/table-transformer-structure-recognition模型的代码,改为可以指定从本地目录加载

Open
#370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
209
Forks
73
PR merge metrics
No merged PRs in 30d

Description

就是在models.tables.py#load_agent()
中的
tables_agent.initialize("microsoft/table-transformer-structure-recognition")
是否可修改为如果环境变量有设置,则从环境变量指定的路径中加载

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in models/tables.py at load_agent(), especially the tables_agent.initialize call. Check how environment variables are handled elsewhere, then make the model source configurable so a set local path is used while the current model identifier remains the fallback; verify both loading paths with the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.