Document Location Mapping
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 123
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
Document Location Mapping
The main goal of document location mapping is to match segments (token ranges) with structural elements in the original documents (pages and poetic lines). This will allow various tools (e.g rolling window) to display the original page and line numbers instead of meaningless token ranges or segment numbers. Currently, we can only do this if we cut by milestone. We'll want to expand this functionality to transform xml tags into milestones. That way a TEI text with chapter divisions encoded can be used.
Ideally, we'd have some sort of index that keeps track of the token ranges for the divisions in the current session. The main challenge is that, once a document is scrubbed and/or tokenised, its feature vector is not the same as the original. Sometimes the token count can be significantly reduced (or occasionally increased). So mapping token ranges onto document strings becomes a sequence alignment problem.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing milestone-based location handling and the scrubbing and tokenisation flow. The issue calls for an index mapping token ranges to original pages and poetic lines, including TEI divisions, while accounting for changed token counts. Done means structural locations can be recovered for transformed documents without relying only on milestones.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100