spacy Questions

2

I am trying to use SpaCy for entity context recognition in the world of ontologies. I'm a novice at using SpaCy and just playing around for starters. I am using the ENVO Ontology as my 'patterns' l...
Frulla asked 8/4, 2021 at 22:0

3

Solved

My notebook was working fine till 7 days back, which was the last time I touched it. Now I am getting this error. --------------------------------------------------------------------------- ModuleN...
Valentinevalentino asked 15/6, 2021 at 13:48

2

I'm following an example from Chapter #2 in the book: Natural Language Processing with Python and spaCy by Yuli Vasiliev 2020 The example is suppose to produce the lemmatization output: ['I', 'am'...
Meadowlark asked 25/2, 2021 at 0:2

12

Solved

I'm trying to install spacy by running pip install spacy for python version 3.6.1 but continuously i'm getting errors like below,how to get rid of this issue? previously i was having cl.exe not fou...
Selfwinding asked 12/4, 2017 at 13:24

2

Good day SO, I am trying to post-process hyphenated words that are tokenized into separate tokens when they were supposedly a single token. For example: Example: Sentence: "up-scaled" Tokens: ['...
Thrice asked 25/9, 2019 at 20:16

3

Solved

Is there anyway by SpaCy to replace entity detected by SpaCy NER with its label? For example: I am eating an apple while playing with my Apple Macbook. I have trained NER model with SpaCy to detec...
Untruthful asked 5/11, 2019 at 13:31

4

Solved

When trying lemmatize in Spanish a csv with more than 60,000 words, SpaCy does not correctly write certain words, I understand that the model is not 100% accurate. However, I have not found any oth...
Peachy asked 4/3, 2020 at 21:30

2

Solved

This is the classic training format. TRAIN_DATA = [ ("Who is Shaka Khan?", {"entities": [(7, 17, "PERSON")]}), ("I like London and Berlin.", {"entities": [(7, 13, "LOC"), (18, 24, "LOC")]}), ] ...
Saar asked 5/12, 2019 at 17:9

4

I have a Flask app, served by Nginx and Gunicorn with 3 workers. My Flask app is a API microservice designed for doing NLP stuff and I am using the spaCy library for it. My problem is that they a...
Certainly asked 18/4, 2017 at 8:29

1

Solved

I am trying to use BERT to get sentence embeddings. Here is how I am doing it: import spacy nlp = spacy.load("en_core_web_trf") nlp("The quick brown fox jumps over the lazy dog"...
Sama asked 14/6, 2021 at 20:42

2

Solved

After reading the docs and doing the tutorial I figured I'd make a small demo. Turns out my model does not want to train. Here's the code import spacy import random import json TRAINING_DATA = [ ...
Rutharuthann asked 23/5, 2019 at 19:14

3

Solved

I have an app that uses the Spacy model "en_core_web_sm". I have tested the app on my local machine and it works fine. However when I deploy it to Heroku, it gives me this error: "Can't find mode...
Outsize asked 9/5, 2020 at 19:15

2

Solved

I am new to spacy and to nlp overall. To understand how spacy works I would like to create a function which takes a sentence and returns a dictionary,tuple or list with the noun and the words descr...
Studdingsail asked 3/6, 2021 at 12:3

8

I am not able to load the English model in jupyter notebook with below code- !pip install spacy import spacy spacy.load('en') Error message: OSError Traceback (most recent call last) in () ----&g...
Zooplankton asked 24/12, 2018 at 9:36

2

Solved

I need all the words from Spacy vocab. Suppose, I initialize my spacy model as nlp = spacy.load('en') How do I get the text of words from nlp.vocab?
Dovetail asked 2/2, 2019 at 17:18

4

I'm trying to install SpaCy on Windows 7 using Conda and getting the following error: conda install -c conda-forge spacy tqdm-4.19.4-py 100% |###############################| Time: 0:00:00 804.27...
Lame asked 22/10, 2017 at 8:27

2

Solved

What I would like to do I would like to transform verbs from present tense to past tense with using NLP library like below. As she leaves the kitchen, his voice follows her. #output As she left th...
Electrothermics asked 17/7, 2020 at 1:2

1

Solved

I am trying to import biluo_tags_from_offsets from spacy.gold but cannot do it. Getting ModuleNotFoundError. --------------------------------------------------------------------------- ModuleNotFou...
Nerves asked 21/4, 2021 at 15:29

2

Solved

Every time I run the following code I found on Kaggle, I get ValueError. This is because of new version v3 of SpaCy: import scispacy import spacy import en_core_sci_lg from spacy_langdetect import ...
Urdar asked 2/3, 2021 at 4:48

5

Solved

How can I extract noun phrases from text using spacy? I am not referring to part of speech tags. In the documentation I cannot find anything about noun phrases or regular parse trees.
Peristome asked 22/10, 2015 at 20:12

1

Solved

I am following the instruction (https://github.com/huggingface/transfer-learning-conv-ai) to install conv-ai from huggingface, but I got stuck on the docker build step: docker build -t convai . I a...
Gallic asked 12/3, 2021 at 15:21

3

Solved

I'm trying to create a corpus of words by a text. I use spacy. So there is my code: import spacy nlp = spacy.load('fr_core_news_md') f = open("text.txt") doc = nlp(''.join(ch for ch in f.read() if...
Shrub asked 27/7, 2019 at 11:21

1

Solved

What this message is about? How do I remove this warning message? import scispacy import spacy import en_core_sci_lg from spacy_langdetect import LanguageDetector from spacy.language import Languag...
Grapnel asked 3/3, 2021 at 6:2

2

I am following instruction on https://spacy.io/usage/visualizers and tried to visualise the dependency parse with the following code on both Jupyter Notebook and Spyder: import spacy from spacy im...
Grosz asked 10/4, 2018 at 9:43

2

Solved

I would like to use spacy's POS tagging, NER, and dependency parsing without using word tokenization. Indeed, my input is a list of tokens representing a sentence, and I would like to respect the u...
Grigson asked 9/1, 2018 at 13:43

© 2022 - 2024 — McMap. All rights reserved.