CentreForDigitalHumanities / CentreForDigitalHumanities/sasta

Reconstruct matches when reading annotations

Open
#68 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When reading annotations from a corrected excel file, allresults.allmatches are not updated. The following should happen:

  • Detect which annotations are not in the corrected file, remove the corresponding matches from allmatches
  • Detect new annotations. Reconstruct matches for these using their word position to find the corresponding node in the parsed transcript.

Be aware that this may still result in allresults.allmatches not correctly corresponding to allresults.coreresults and allresults.annotations. This is because some queries match more than one word, and the annotation Excel format is unable to express this. For scoring purposes, assuming the matches have a span of 1 is fine.

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 at the code that reads annotations from a corrected Excel file and updates allresults.allmatches; trace how annotations, matches, and parsed-transcript nodes are represented. Done means removed annotations also remove their matches, new annotations reconstruct one-word matches by word position, and the resulting structures are covered by the relevant existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.