similarity is broken with ipython 6.3
See original GitHub issueHow to reproduce the behaviour
nlp('food').similarity('banana')
Traceback (most recent call last):
File "/Users/hadilsabbagh/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-6-cbaa3a8ed4b6>", line 1, in <module>
nlp('food').similarity('banana')
File "doc.pyx", line 316, in spacy.tokens.doc.Doc.similarity
AttributeError: 'str' object has no attribute 'vector_norm'
nlp('food').similarity(nlp('banana'))
Out[7]: -2.3323391143971321e-21
Your Environment
- Operating System: Mac OS X 10.13.4
- Python Version Used: 3.6, IPython 6.3.1
- spaCy Version Used: 2.0.11
- Environment Information: Used by Jupyter, PyCharm Python Console and debugger
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
What to do when things go wrong - The Jupyter Notebook
Try running jupyter-notebook (with a hyphen). This should normally be the same as jupyter notebook (with a space), but if there's any difference,...
Read more >What is the difference between `jupyter notebook` and `jupyter ...
Jupyter Notebook ( notebook module) contains both: the server for notebooks (the backend of the web application that hosts the notebook ...
Read more >Jupyter Notebook Documentation - Read the Docs
The normal workflow in a notebook is, then, quite similar to a standard IPython session, with the difference that you.
Read more >How to Effortlessly Optimize Your Jupyter Notebook | by Anne ...
There are a ton of simple ways to make your Jupyter Notebooks better, faster, stronger, sexier, and so much more fun to work...
Read more >News - IPython
IPython 6.3 was released on April 2, 2018. ... For 4.0, we will split up components into several packages. The parts which work...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ines I checked and I had numpy 1.14.0. I ran
conda update --all
and now it seems to be working. For reference, here is the packages that were updated:This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.