Skip to content

Tag: spacy

Identify subject in sentences using spacy in advanced cases

I’m trying to identify the subject in a sentence. I tried to use some of the code here: This returns the results: the det python nsubjpass can aux be auxpass used ROOT to aux find xcomp objects dobj I would think in this case the python would be the subject, in most cases that would be the _dep would be

ImportError cannot import name Deque with spacy

I’m trying to import spacy to use on VSCode, but I am getting an error: “Exception has occurred: ImportError cannot import name Deque.” I did pip install -U spacy in my virtual environment. Wondering how to solve the error so that I can use spacy? This import error goes away if I try other P…

Finding words within paragraph using Python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question Let say I have the following words, Test_wrds = [‘she’, &#8216…

How to find named entity relationship

I was doing named entity relationship from the text of a book. I have done the Recognition using “spaCy” using its module “en_core_web_sm” as: I only wanted to find the PERSONS from it. Now I wish to find the relationship between different persons (How one person is related to another …

Spacy Installation error in python, with pip command

Thanks for looking into this, I was trying to install spacy with python 3.8 ( I tried it with 3.7.9 interpreter too ) But apparently It has been giving me following errors. Command used pip install spacy can you please suggest me possible fixes ? Answer There may be a problem with your pip cache and/or your p…