diff options
author | Christopher Manning <manning@cs.stanford.edu> | 2019-07-14 07:16:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-14 07:16:09 +0300 |
commit | 8050998fd46cd55d903f0a03bbcac9fcc5076060 (patch) | |
tree | 34d9a462e421b8e584b573f3770520a763ef2ef4 /README.md | |
parent | 8971e0251e480959a2e0d2880dda074c6b97154d (diff) |
How to use with Jupyter
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -66,6 +66,8 @@ To run your first StanfordNLP pipeline, simply following these steps in your Pyt ```python >>> import stanfordnlp >>> stanfordnlp.download('en') # This downloads the English models for the neural pipeline +# IMPORTANT: The above line prompts you before downloading, which doesn't work well in a Jupyter notebook. To avoid a prompt use: +# stanfordnlp.download('en', force=True) >>> nlp = stanfordnlp.Pipeline() # This sets up a default neural pipeline in English >>> doc = nlp("Barack Obama was born in Hawaii. He was elected president in 2008.") >>> doc.sentences[0].print_dependencies() |