MaartenGr / MaartenGr/KeyBERT

Highligth n_grams index error

Open Beginner friendly
#77 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.2k
Forks
385
PR merge metrics
No merged PRs in 30d

Description

https://github.com/MaartenGr/KeyBERT/blob/6ab9af1cfe74a126e709539a2467426d0881945c/keybert/_highlight.py#L94

this line should be `skip = skip - 2`

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

Open keybert/_highlight.py at line 94 and inspect the n-gram highlighting path around the reported index calculation. Verify the correction with an n_grams example and confirm that highlighting no longer produces the index error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.