spacy Questions

5

I have data which is already labelled in SpaCy format. For example: ("Who is Shaka Khan?", {"entities": [(7, 17, "PERSON")]}), ("I like London and Berlin.", {"entities": [(7, 13, "LOC"), (18, 24, ...
Mime asked 14/1, 2020 at 9:35

3

I need to get a confidence score on the predictions done by Spacy NER. CSV file Text,Amount & Nature,Percent of Class "T. Rowe Price Associates, Inc.","28,223,360 (1)",8.7% (1) 100 E. Pratt St...
Twopence asked 8/1, 2019 at 6:2

4

Solved

I'm trying to use the following spacy module in colab: https://spacy.io/universe/project/neuralcoref I install the following packages: !pip install spacy import spacy !pip show spacy !git cl...
Nabonidus asked 17/4, 2020 at 10:56

3

Solved

I have a sentence that has already been tokenized into words. I want to get the part of speech tag for each word in the sentence. When I check the documentation in SpaCy I realized it starts with t...
Tamarind asked 3/12, 2018 at 13:17

1

Given a set of strings like: "John Doe" "Doe John" "Albert Green" "Greenshpan David" ... I would like to run a NER model that will recognize the first name...
Lordship asked 13/3, 2022 at 21:43

2

Solved

I'm working on my first Python project and have reasonably large dataset (10's of thousands of rows). I need to do some nlp (clustering, classification) on 5 text columns (multiple sentences of tex...
Declination asked 27/10, 2017 at 18:12

3

Currently I'm using the following code to lemmatize and calculate TF-IDF values for some text data using spaCy: lemma = [] for doc in nlp.pipe(df['col'].astype('unicode').values, batch_size=9844,...
Shammer asked 6/11, 2017 at 19:27

3

Solved

The following link shows how to add custom entity rule where the entities span more than one token. The code to do that is below: import spacy from spacy.pipeline import EntityRuler nlp = spacy.loa...
Myo asked 9/6, 2021 at 15:9

1

Solved

I am new to NER and Spacy. Trying to figure out what, if any, text cleaning needs to be done. Seems like some examples I've found trim the leading and trailing whitespace and then muck with the sta...
Adamant asked 28/12, 2021 at 3:15

2

Solved

I wrote a lemma tokenizer using spaCy for scikit-learn based on their example, it works OK standalone: import spacy from sklearn.feature_extraction.text import TfidfVectorizer class LemmaTokenize...
Bibbs asked 19/7, 2017 at 16:38

14

Solved

even though I downloaded the model it cannot load it [jalal@goku entity-sentiment-analysis]$ which python /scratch/sjn/anaconda/bin/python [jalal@goku entity-sentiment-analysis]$ sudo python -m sp...
Apartheid asked 22/4, 2018 at 8:33

2

Solved

Is there a method to extract all possible named entity types from a model in spaCy? You can manually figure it out by running on sample text, but I imagine there is a more programmatic way to do th...
Gaza asked 1/12, 2021 at 13:33

1

I am trying to train a basic text classification model using spaCy. I have a list of texts and I want to build a model which will classify either text as outcome1 or outcome2. Let's say my data loo...
Malmo asked 23/7, 2021 at 13:40

5

Solved

I am using spaCy as part of a topic modelling solution and I have a situation where I need to map a derived word vector to the "closest" or "most similar" word in a vocabulary of word vectors. I s...
Despite asked 15/2, 2019 at 21:43

5

I've been trying to practise what I've learned from this tutorial:(https://realpython.com/sentiment-analysis-python/) using PyCharm. And this line: textcat.add_label("pos") generated a w...
Disabuse asked 24/3, 2021 at 23:2

12

Solved

When running: import spacy nlp = spacy.load('en') the following is printed: Warning: no model found for 'en' Only loading the 'en' tokenizer. /site-packages/spacy/data is empty with the ex...
Unchancy asked 17/4, 2017 at 20:56

3

I have installed spacy and downloaded en_core_web_sm with: pip install spacy python -m spacy download en_core_web_sm Also tried pip3 install https://github.com/explosion/spacy-models/releases/downl...
Rhinal asked 4/8, 2020 at 9:36

1

Solved

I'm here to ask you guys if it is possible to use an existing trained huggingface-transformers model with spacy. My first naive attempt was to load it via spacy.load('bert-base-uncased'), it didn't...

5

Solved

I've got similar product data in both the products_a array and products_b array: products_a = [{color: "White", size: "2' 3\""}, {color: "Blue", size: "5' 8\...
Predecease asked 3/10, 2021 at 4:39

3

I'm using PythonKit with XCode to call spaCy API from swift code. Installed PythonKit from Home-brew, imported it in my project and it built well; however, at runtime I got the error: Python libra...
Counterpart asked 5/2, 2020 at 16:32

3

Solved

I have trained my own word2vec model in gensim and I am trying to load that model in spacy. First, I need to save it in my disk and then try to load an init-model in spacy but unable to figure out ...
Gorgerin asked 22/5, 2018 at 11:32

2

Solved

I'm trying to use the spacy_langdetect package and the only example code I can find is (https://spacy.io/universe/project/spacy-langdetect): import spacy from spacy_langdetect import LanguageDetect...
Prochora asked 19/3, 2021 at 17:17

1

Solved

I am new to SpaCy and NLP. I am using SpaCy v 3.1 and Python 3.9.7 64-bit. My objective: to use a pre-trained SpaCy model (en_core_web_sm) and add a set of custom labels to the existing NER labels ...
Mauricemauricio asked 14/9, 2021 at 16:2

1

I am trying to build a non-English spell checker that relies on classification of sentences by spaCy, which allows my algorithm to then use the POS tags and the grammatical dependencies of the indi...
Batruk asked 9/12, 2020 at 14:20

2

spacy.load('en_core_web_sm') from pyresparser import ResumeParser data = ResumeParser('Resume.pdf').get_extracted_data() OSError: [E053] Could not read config.cfg from C:\Users\Kumaran\anaconda3\...
Trifocals asked 11/2, 2021 at 6:39

© 2022 - 2024 — McMap. All rights reserved.