Created
October 7, 2019 15:45
-
-
Save joeyism/3c8f6ee975b02873943877d88966d644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from allennlp.models.archival import load_archive | |
from allennlp.predictors.predictor import Predictor | |
SERIALIZATION_DIR = './model' | |
archive = load_archive(SERIALIZATION_DIR) | |
predictor = Predictor.from_archive(archive, 'model') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment