Skip to content

fix: rename misleading empty TF-IDF counter variable#610

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/issue-593-rename-empty-tfidf-var
Open

fix: rename misleading empty TF-IDF counter variable#610
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/issue-593-rename-empty-tfidf-var

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Rename number_of_non_empty_tfidfs to number_of_empty_tfidfs in create_tfidf_ann_index()
  • The variable counts aliases whose TF-IDF vectors are empty (empty_tfidfs_boolean_flags == False), so the old name was misleading

Fixes #593

Test plan

  • Verified the log message still reports the correct count of empty aliases
  • No behavior change beyond the variable rename

Made with Cursor

The variable counted empty TF-IDF vectors but was named
number_of_non_empty_tfidfs. Rename to number_of_empty_tfidfs.

Fixes allenai#593

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

fix: misleading variable name in create_tfidf_ann_index — number_of_non_empty_tfidfs counts empty vectors

1 participant