Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stanfordnlp/stanza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Manning <manning@cs.stanford.edu>2019-07-14 07:16:09 +0300
committerGitHub <noreply@github.com>2019-07-14 07:16:09 +0300
commit8050998fd46cd55d903f0a03bbcac9fcc5076060 (patch)
tree34d9a462e421b8e584b573f3770520a763ef2ef4 /README.md
parent8971e0251e480959a2e0d2880dda074c6b97154d (diff)
How to use with Jupyter
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4ba4febd..414ad38a 100644
--- a/README.md
+++ b/README.md
@@ -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()