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

NER: parse args from .args file or JSON #4110

Merged
merged 2 commits into from May 2, 2020
Merged

NER: parse args from .args file or JSON #4110

merged 2 commits into from May 2, 2020

Conversation

stefan-it
Copy link
Collaborator

Hi,

thanks to @julien-c , args parsing from .args or json-based configuration files were introduced in #3934 into the internal argparser class.

This PR adds support for it in the run_ner.py script.

It also extends the NER documentation and shows how to use a json-based configuration with run_ner.py.

```

It must be saved with a `.json` extension and can be used by running `python3 run_ner.py config.json`.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could also document the run_ner.args solution (it's the one I use personally) but it's maybe confusing to document both?

@julien-c julien-c merged commit 1e616c0 into huggingface:master May 2, 2020
tianleiwu pushed a commit to tianleiwu/transformers that referenced this pull request May 8, 2020
* ner: parse args from .args file or JSON

* examples: mention json-based configuration file support for run_ner script
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.

None yet

2 participants