microsoft / microsoft/TUTA_table_understanding

Sample spreadsheet does not work during execution - Why?

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

Nobody has claimed this yet.

Dominant language
Python
Stars
125
Forks
27
Avg merge
9d 1h
Merged PRs (30d)
1

Description

Hi, I am trying to pretrain a model based on your spreadsheet sample. However, the code rejects the sample for some reason.
The same happens for some manual spreadsheet samples that I've created.

I believe this happens due to lines 681-682 in tokenizer.py:

if (max(top_pos_list[icell]) == -1) or (max(left_pos_list[icell]) == -1):
    return None

But I can not understand thoroughly what's happening behind these conditions for these lists.
Can you please explain why your given spreadsheet sample is not working?

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the rejection with the provided spreadsheet sample and trace tokenizer.py around lines 681-682. Inspect how top_pos_list and left_pos_list are populated, then determine why either list reaches -1 and document or correct the behavior so the sample’s expected execution outcome is clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.