spacy Questions

2

I have import spacy nlp = spacy.load("en_core_web_lg") line = "Rio de Janeiro is the capital of.." doc = nlp(line) for tok in doc: printf(tok.lemma_) for ent in doc.ents: prin...
Expanse asked 6/8, 2020 at 11:59

4

Solved

I am trying to install a specific Spacy model "en_core_web_sm". I am unable to do this due to proxy server limitations I am having in my env that I have no control over. I am using the following c...
Leptophyllous asked 24/4, 2019 at 14:28

2

Solved

I am trying to find the vocabulary size of the large English model, i.e. en_core_web_lg, and I find three different sources of information: spaCy's docs: 685k keys, 685k unique vectors nlp.vocab....
Multicolored asked 28/12, 2019 at 23:27

2

Solved

I get the tokens for a string as doc = nlp(u"This is the first sentence. This is the second sentence.") for token in doc: print(token.i, token.text) with the output 0 This 1 is 2 the 3 first 4...
Benil asked 2/10, 2019 at 8:26

3

Solved

I want to find the subject from a sentence using Spacy. The code below is working fine and giving a dependency tree. import spacy from nltk import Tree en_nlp = spacy.load('en') doc = en_nlp("Th...
Urinate asked 5/9, 2016 at 2:54

3

Solved

I choose spacy to process kinds of text because of the performance of it's lemmatation compared with nltk. But When I process millions short text, it always consumed all of my memory(32G) and crash...
Hardcastle asked 11/1, 2018 at 3:28

1

Solved

Perhaps I've skipped over a part of the docs, but what I am trying to determine is a unique ID for each entity in the standard NER toolset. For example: import spacy from spacy import displacy imp...
Organogenesis asked 12/12, 2018 at 19:57

1

I was getting the following error while i was trying to read a list in spacy. TypeError: Argument 'string' has incorrect type (expected spacy.tokens.token.Token, got str) Here is the code below f= ...
Legislator asked 8/7, 2020 at 2:17

1

Solved

I am building a python package and I am using Spacy library and Spacy model en_core_web_md. It can't be installed using pip. You can install it like this python -m spacy download en_core_web_...
Omnipotent asked 4/7, 2020 at 12:2

3

I am currently using Windows OS. I have installed Anaconda for creating environments. I have successfully created another environment with python 2.7. I have also installed spacy on that environmen...
Scheme asked 7/10, 2018 at 11:25

2

Solved

I was triying to install the large English module "en_core_web_lg" for spaCy (a library for Natural Language Processing) For some reasons, the small and medium modules were successfully installed ...
Piperine asked 26/7, 2018 at 15:31

2

I have try to refer to spaCy official website https://spacy.io/api/annotation#dependency-parsing but I only got list of universal dependency relation which also on https://universaldependencies.org...
Tuinenga asked 16/6, 2020 at 1:14

2

I have to process hundreds of thousands of texts. I have found that the thing that is taking the longest in the following: nlp = English() ruler = EntityRuler(nlp) patterns = [...] ruler.add_patte...
Gilbart asked 28/5, 2020 at 19:3

2

Solved

I want spaCy to use the sentence segmentation boundaries as I provide instead of its own processing. For example: get_sentences("Bob meets Alice. @SentBoundary@ They play together.") # => ["B...
Cavatina asked 22/9, 2018 at 16:3

2

Solved

I have been using Spacy for noun chunks extraction using Doc.noun_chunks property provided by Spacy. How could I extract verb phrases from input text using Spacy library (of the form 'VERB ? ADV * ...
Individualism asked 17/12, 2017 at 14:46

2

I am using training spacy NER to extract skills information from resume.But error is Could not find a transition with the name 'U-SKILL' in the NER model TRAINING DATA: [(u"I have 2 years of ex...

1

I'm trying to split this document into paragraphs. Specifically, I would like to split the text whenever there is a line break (<br>) This is the code I'm using but is not producing the resu...
Favian asked 13/5, 2020 at 22:21

2

Solved

Is it possible to use spacy to translate this sentence into some other language, for e.g. french? import spacy nlp = spacy.load('en') doc = nlp(u'This is a sentence.') If spacy is not the ...
Florist asked 12/7, 2018 at 17:27

3

Can I use spacy in python to find NP with specific neighbors? I want Noun phrases from my text that has verb before and after it.
Alcazar asked 20/6, 2017 at 19:8

2

I try to do typo correction with spaCy, and for that I need to know if a word exists in the vocab or not. If not, the idea is to split the word in two until all segments do exist. As example, "ofth...
Leighannleighland asked 29/12, 2019 at 20:49

5

Solved

I have two files, file1.py which have ML model size of 1GB and file2.py which calls get_vec() method from file1 and receives vectors in return. ML model is being loaded everytime when file1 get_vec...
Ungracious asked 5/4, 2020 at 20:49

1

Solved

Using Spacy, I extract aspect-opinion pairs from a text, based on the grammar rules that I defined. Rules are based on POS tags and dependency tags, which is obtained by token.pos_ and token.dep_. ...

3

All the examples that I see for using spacy just read in a single text file (that is small in size). How does one load a corpus of text files into spacy? I can do this with textacy by pickling all...
Dennis asked 23/9, 2018 at 16:11

2

Solved

I'm trying to do data enhancement with a FAQ dataset. I change words, specifically nouns, by most similar words with Wordnet checking the similarity with Spacy. I use multiple for loop to go throug...
Calvados asked 30/4, 2019 at 12:35

1

Solved

When we train custom model, I do see we have dropout and n_iter parameters to tune, but which deep learning algorithm does Spacy Uses to train Custom Models? Also, when Adding new Entity type is it...
Guesswork asked 24/2, 2020 at 17:33

© 2022 - 2024 — McMap. All rights reserved.