Skip to content
Advertisement

Tag: spacy

SpaCy can’t find table(s) lexeme_norm for language ‘en’ in spacy-lookups-data

I am trying to train a text categorization pipe in SpaCy: However, every time I call nlp.begin_training(), I get the error Running python3 -m spacy validate returns Furthermore, I have tried installing spacy-lookups-data without success. How can I resolve this error? Answer It isn’t allowed to call nlp.begin_training() on pretrained models. If you want to train a new model, just

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 Python libraries. For ex, “import nltk”

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’, ‘her’,’women’] that I would like to see whether any one

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 person, like “is a father of”, “is a brother of”

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 pip version: Try

Extract sentence embeddings features with Pandas and spaCy

I’m currently learning spaCy, and I have an exercise on word and sentence embeddings. Sentences are stored in a pandas DataFrame columns, and, we’re requested to train a classifier based on the vector of these sentences. I have a dataframe that looks like this: Next, I apply an NLP function to these sentences: Now, if I understand correctly, each item

Advertisement