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

[ENH] NYTimes - add language to corpus #926

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

PrimozGodec
Copy link
Collaborator

@PrimozGodec PrimozGodec commented Jan 11, 2023

Derived from #874

Description of changes

Set language to the corpus. For NY Times, it is always English.

In the current implementation, Corpus variables are created when NYT is initialized, so they are shared between multiple corpora. The problem appears when different values are added to DiscreteVariable by different calls, so values accumulate. This PR changes that variables are defined in each call separately.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov-commenter
Copy link

codecov-commenter commented Mar 24, 2023

Codecov Report

Merging #926 (6495309) into master (8f92a58) will decrease coverage by 0.28%.
The diff coverage is 100.00%.

❗ Current head 6495309 differs from pull request most recent head f70dee8. Consider uploading reports for the commit f70dee8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #926      +/-   ##
==========================================
- Coverage   77.81%   77.53%   -0.28%     
==========================================
  Files          87       86       -1     
  Lines       12321    12261      -60     
  Branches     1620     1608      -12     
==========================================
- Hits         9587     9507      -80     
- Misses       2434     2455      +21     
+ Partials      300      299       -1     

@PrimozGodec PrimozGodec force-pushed the lagdetect-nyt branch 2 times, most recently from 76f8e6c to f70dee8 Compare March 24, 2023 09:34
@PrimozGodec PrimozGodec marked this pull request as ready for review March 24, 2023 09:34
@PrimozGodec PrimozGodec changed the title NYTimes - add language to corpus [ENH] NYTimes - add language to corpus Mar 31, 2023
@VesnaT VesnaT merged commit 07b0cbf into biolab:master Apr 7, 2023
@PrimozGodec PrimozGodec deleted the lagdetect-nyt branch April 11, 2023 07:38
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.

3 participants