Skip to content

Conversation

@leskovecg
Copy link
Collaborator

Issue

Fixes #1120

Description of changes

Added a new column "Match Count" to the Corpus Viewer widget that shows the number of regex matches per document when a filter is applied.

  • Counts are computed using the same regular expression used in filtering.
  • The counts are displayed dynamically and updated after filtering.
  • Column is also added as a meta attribute when outputting the annotated corpus.
  • A unit test is included to verify that match counts per document are calculated and stored correctly.
Includes
  • Code changes
  • Tests
  • Documentation

@leskovecg leskovecg force-pushed the fix-match-count-in-corpus-viewer branch from deba23a to 6e0a0e1 Compare July 14, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Corpus Viewer: add column with match count

1 participant