clips / clips/pattern

How should I handle cross-chunk matching with taxonomies?

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

Nobody has claimed this yet.

Dominant language
Python
Stars
8.9k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

I am trying to use a taxonomy with some long terms in it, such as fungal lung infectious disease. The chunker used by parsetree() puts fungal lung and infectious disease into separate chunks preventing the full term in the taxonomy from matching the text. One work around I can imagine would be to chunk the longer taxonomy terms into multiple taxonomies, but then I would need to use queries like like 'search("DISEASE_BEGINNING DISEASE_INSIDE*", text)'. Is there a better way to handle this?

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 examining parsetree() and the taxonomy matching behavior described in the issue, then review how search() handles chunk boundaries. The issue does not name files or tests, and it does not define a specific implementation or acceptance criteria; clarification is needed before work can be considered done.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.