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

Fixes handling of term freqs that are missing or zero #160

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

hlapp
Copy link
Member

@hlapp hlapp commented Feb 2, 2021

The current database and API returns subsumer terms for which there is no count for certain corpora. Erroneously, the KB API currently returns a zero count for those, when it should return no count (phenoscape/phenoscape-kb-services#382). This change should handle both cases, and removes those subsumers from the calculation.

Fixes #153.

The current database and API returns subsumer terms for which there is
no count for certain corpora. Erroneously, the KB API currently returns
a zero count for those, when it should return no count. This change
should handle both cases, and removes those subsumers from the calculation.

Fixes #153.
@hlapp
Copy link
Member Author

hlapp commented Feb 2, 2021

@johnbradley the failure in the release (R 4.x) check is due to phenoscape/phenoscape-kb-services#378. Due to random sub-sampling done in the test, whether the particular test fails or not depends on whether an affected term happens to be in the subsample.

@balhoff any idea on ETA for getting this fixed? This is highest priority right now.

Copy link
Contributor

@johnbradley johnbradley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hlapp hlapp merged commit 26d6eab into master Feb 2, 2021
@hlapp hlapp deleted the 153-fix-termfreq-handling branch February 2, 2021 20:33
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.

Semantic similarity tests fail
2 participants