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

allow nlg-eval --setup to work from anywhere. Fixes #78 #79

Merged
merged 12 commits into from
Jul 18, 2019

Conversation

temporaer
Copy link
Member

@temporaer temporaer commented Jul 11, 2019

nlg-eval --setup now takes the data download path as an [optional] argument.

During setup,

  • The code location is inferred from the package directory.
  • The data location is stored in a config file, so that it does not have
    to be provided again.

A common function (nlgeval.utils.get_data_dir()) provides
(rudimentarily checked) access to the data location via environment
variable or config file (in this order). Added some colorful hints
as to where data is stored to setup/CLI.

nlg-eval --setup now takes a path as an argument or "default".

During setup,

- The code location is inferred from the package directory.
- The data location is stored in a config file, so that it does not have
  to be provided again.

A common function (`nlgeval.utils.get_data_dir()`) provides
(rudimentarily checked) access to the data location via environment
variable or config file (in this order). Added some colorful hints
as to where data is stored to setup/CLI.
@temporaer temporaer requested a review from juharris July 11, 2019 10:38
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
bin/nlg-eval Outdated Show resolved Hide resolved
bin/nlg-eval Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
@juharris
Copy link
Contributor

I'll make another PR for the clarifications.

@juharris juharris merged commit 7aa86b8 into master Jul 18, 2019
@juharris juharris deleted the pip-install-anywhere branch July 18, 2019 20:21
@juharris
Copy link
Contributor

Oops I committed right to master by mistake. Sorry! I'll look into disabling that.
81702e5

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