Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function to detect repeated entities #33

Merged
merged 12 commits into from
Dec 18, 2024
Merged

Conversation

eriknovak
Copy link
Owner

This PR adds the detect_repeats input parameter to the extractors, which forces the extractor to go through the input text and find any missed entities. This is done in the following way:

  1. Uses the extractor to identify the entities within the text based on the provided labels
  2. Search for any repetition of the identified entities within the input text that were missed
  3. Return all found entities

The functionality is also tested in new unit tests.

@eriknovak eriknovak added the enhancement New feature or request label Dec 18, 2024
@eriknovak eriknovak merged commit 206c27d into eriknovak:main Dec 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants