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

Fix issue with mutated config #755

Merged
merged 1 commit into from
Feb 13, 2019
Merged

Fix issue with mutated config #755

merged 1 commit into from
Feb 13, 2019

Conversation

adrienball
Copy link
Contributor

Description:
The CRFSlotFillerConfig passed to the CRFSlotFiller when initializing it, is mutated during the training. Thus, it must be deep-copied beforehand to prevent side effects.

Checklist:

  • My PR is ready for code review
  • I have added some tests, if applicable, and run the whole test suite, including linting tests
  • I have updated the documentation, if applicable

@adrienball adrienball requested a review from ClemDoum February 13, 2019 14:39
@codecov-io
Copy link

Codecov Report

Merging #755 into develop will decrease coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           develop    #755      +/-   ##
==========================================
- Coverage    88.13%   88.1%   -0.04%     
==========================================
  Files           74      74              
  Lines         4494    4496       +2     
  Branches       863     863              
==========================================
  Hits          3961    3961              
- Misses         397     398       +1     
- Partials       136     137       +1

@adrienball adrienball merged commit e9b2b28 into develop Feb 13, 2019
@adrienball adrienball deleted the fix/mutated-config branch February 13, 2019 14:58
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