Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. sudo pip3 install spacy
  2.  
  3. sudo python3 -m spacy download en
  4.  
  5. Linking successful
  6. /home/rayabhik/.local/lib/python3.5/site-packages/en_core_web_sm -->
  7. /home/rayabhik/.local/lib/python3.5/site-packages/spacy/data/en
  8.  
  9. You can now load the model via spacy.load('en')
  10.  
  11. from spacy.en import English
  12.  
  13. ImportError: No module named 'spacy.en'
  14.  
  15. Python 3.5.2 (default, Sep 14 2017, 22:51:06)
  16. [GCC 5.4.0 20160609] on linux
  17. Type "help", "copyright", "credits" or "license" for more information.
  18. >>> import spacy
  19. >>> spacy.load('en')
  20. <spacy.lang.en.English object at 0x7ff414e1e0b8>
  21.  
  22. from spacy.lang.en import English
  23.  
  24. - from spacy.en import English
  25. + from spacy.lang.en import English
  26.  
  27. conda install -c conda-forge spacy
  28.  
  29. python -m spacy download en
  30.  
  31. import spacy
  32. spacy.load('en_core_web_sm')
  33. from spacy.lang.en import English
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement