8000 Allow loading model from HOME path by dc3ea9f · Pull Request #2215 · allenai/allennlp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Allow loading model from HOME path #2215

Merged
merged 3 commits into from
Dec 27, 2018
Merged

Allow loading model from HOME path #2215

merged 3 commits into from
Dec 27, 2018

Conversation

dc3ea9f
Copy link
@dc3ea9f dc3ea9f commented Dec 19, 2018

Modify allennlp/common/file_utils.py to enable loading model
like this:

from allennlp.predictors import Predictor
predictor = Predictor.from_path("~/<model_file>")

It doesn't affect the origin process of loading model.

MohanZhou and others added 3 commits December 19, 2018 10:11
Modify `allennlp/common/file_utils.py` to enable loading model
like this:

    from allennlp.predictors import Predictor
    predictor = Predictor.from_path("~/<model_file>")

It doesn't affect the origin process of loading model.
Copy link
Contributor
@nelson-liu nelson-liu left a comment

Choose a reason for hiding this comment

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

Thanks!

@nelson-liu nelson-liu merged commit e53b4f4 into allenai:master Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0