python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Unpacking a tuple within a list using spaCy's char_span
I have a dict that looks like this:
TRAIN_DATA = {'here is some text': [('1', '4', 'entity_label')], 'here is more text': [('2', '7', 'entity_label_2')], 'and even more text': [('1', '4', 'entity_labe...
Salted
Votes: 0
Answers: 0
NameError: name 'ner' is not defined
I am new to spacy. I am trying to update NER using spacy using below code
nlp = spacy.blank('en')
def train_model(train_data):
if 'ner' not in nlp.pipe_names:
nlp.add_pipe('ner', last=True)
f...
Rishabh Vimal
Votes: 0
Answers: 0
How do I validate a spacy model at a nonstandard location?
I'd like to check whether spaCy is compatible with the model that I installed to a nonstandard location. For example:
import spacy, os
nlp = spacy.load("../data/p1/p2/en_core_web_lg-3.2.0")
...
Ben
Votes: 0
Answers: 1