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

Major Cleanup #1 #252

Merged
merged 19 commits into from
Mar 2, 2022
Merged

Major Cleanup #1 #252

merged 19 commits into from
Mar 2, 2022

Conversation

Mehrad0711
Copy link
Member

@Mehrad0711 Mehrad0711 commented Feb 28, 2022

A cleanup for genienlp has been long overdue!

We've collected quite some technical debt which we need to address. We have created a project dashboard to keep track of issues we want to address. I've moved the cards this PR addresses to "In progress".

The goal of this series of cleanups is to simplify the code, make it more readable, easier to modify, and more inviting for outside collaborators.

There are no functional changes (besides dropping almond_multilingual tasks and associated code) - tests are still passing.

We're dropping support for old generic datasets and associated metrics which were inherited from decaNLP code.
Those implementations are obsolete and should be replaced with what is now accessible through datasets library. Please see issue. If you want support for a new dataset, feel free to submit a PR for it.

Copy link
Member

@s-jse s-jse left a comment

Choose a reason for hiding this comment

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

Thanks, overall is a good cleanup, but you should make a few changes before merging it. Please see the individual comments.
Also, have you tested this code with old non-multilingual models? What about the genie-k8s scripts? Especially since you have removed training/prediction arguments.

genienlp/metrics.py Show resolved Hide resolved
genienlp/metrics.py Outdated Show resolved Hide resolved
genienlp/models/base.py Show resolved Hide resolved
genienlp/models/base.py Show resolved Hide resolved
genienlp/predict.py Show resolved Hide resolved
@stanford-oval stanford-oval deleted a comment from lgtm-com bot Mar 1, 2022
@stanford-oval stanford-oval deleted a comment from lgtm-com bot Mar 2, 2022
genienlp/train.py Outdated Show resolved Hide resolved
genienlp/train.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Mar 2, 2022

This pull request fixes 3 alerts when merging 91c3031 into a5089ae - view on LGTM.com

fixed alerts:

  • 2 for Except block handles 'BaseException'
  • 1 for Wrong name for an argument in a call

@Mehrad0711 Mehrad0711 merged commit fb35bef into master Mar 2, 2022
@Mehrad0711 Mehrad0711 deleted the wip/mehrad/cleanups branch March 3, 2022 20:24
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.

2 participants