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

Added flag for running *only* one 1 or more languages #56

Merged
merged 2 commits into from
Jan 28, 2019
Merged

Conversation

JRMeyer
Copy link
Contributor

@JRMeyer JRMeyer commented Jan 24, 2019

No description provided.

@simnotes
Copy link
Collaborator

Actually no reviewer, but LGTM 👍

Copy link
Contributor

@kdavis-mozilla kdavis-mozilla left a comment

Choose a reason for hiding this comment

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

You should add documentation of this option to the README, as if it's hidden it's not going to help much.

else:
locales = corpora_data.locale.unique()

for locale in locales:
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check that self.args.langs is a subset of corpora_data.locale.unique() and print an error message if it's not and also stop the program.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kdavis-mozilla -- requested changes made to README and catch if entered languages are actually subset of possible languages...

also learned that Python has a x.issubset(y) function:)

Copy link
Contributor

@kdavis-mozilla kdavis-mozilla left a comment

Choose a reason for hiding this comment

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

LGTM

@kdavis-mozilla kdavis-mozilla merged commit f92fe7b into master Jan 28, 2019
@JRMeyer JRMeyer deleted the josh branch January 31, 2019 16:59
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