Skip to content

Tag: spacy

What does this “.children” attribute do?

I’m trying to understand a Key-Bigram extractor’s working and I cannot understand what does the following block of code do. Here is the source code. Everything else is workin fine and I understood well, however I can not understand what child for child in possible_words.children does. Answer token…

how to save space training

I have written an intent classification program. This is first trained with training data and then tested with test data. The training process takes a few seconds. What is the best way to save such a training, so that it does not have to be trained again with every call? Is it enough to save train_X and train…

spacy Entity Ruler pattern isn’t working for ent_type

I am trying to get the entity ruler patterns to use a combination of lemma & ent_type to generate a tag for the phrase “landed (or land) in Baltimore(location)”. It seems to be working with the Matcher, but not the entity ruler I created. I set the override ents to True, so not really sure why…

Cant load spacy en_core_web_trf

As the self guide says, I’ve installed it with (conda environment) I have spacy-transformers already installed. But when I simply do: It shows me this error: More info about the error: Answer Are you sure you did install spacy-transformers? After installing spacy? I am using pip: pip install spacy-trans…

Problem to covert data from CoNLL format to spacy format

How can I covert data from CoNLL format to spacy format? I’ve executed current code following similar Q&A on stackoverflow: How to convert from CoNLL format to spacy format. CoNLL spacyformat However, I cannot fix the error. Code Error Message I’ve read the document, spacy convert, but have no…