diff options
author | Peng Qi <qipeng@users.noreply.github.com> | 2019-01-23 02:48:13 +0300 |
---|---|---|
committer | Peng Qi <qipeng@users.noreply.github.com> | 2019-01-23 02:48:13 +0300 |
commit | 481852555cbcba24e57d959bd650bf7c80b111b5 (patch) | |
tree | 2d0d884e8a28e26498d82225b58babf8ba456edc /demo | |
parent | 6916265583e60ccd79130b9f634a9ddb50aa1de2 (diff) |
Modernizing and reusing build_default_config; Path fix in demo pipeline construction
Diffstat (limited to 'demo')
-rw-r--r-- | demo/pipeline_demo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/pipeline_demo.py b/demo/pipeline_demo.py index 10521e5b..e1b4d973 100644 --- a/demo/pipeline_demo.py +++ b/demo/pipeline_demo.py @@ -21,7 +21,7 @@ if __name__ == '__main__': # set up a pipeline print('---') print('Building pipeline...') - pipeline = stanfordnlp.Pipeline() # defaults to building the en_ewt pipeline + pipeline = stanfordnlp.Pipeline(models_dir=args.models_dir) # defaults to building the en_ewt pipeline # process the document doc = pipeline('Barack Obama was born in Hawaii. He was elected president in 2008.') # access nlp annotations |