Category : spacy

I am attempting to perform NLP on a xlsx file. data[‘Review Text’] = [r.lower() for r in data[‘Review Text’]] error message = AttributeError: ‘float’ object has no attribute ‘lower’ print(data[‘Review Text’].head()) output = 0 Absolutely wonderful – silky and sexy and comf… 1 Love this dress! it’s sooo pretty. i happene… 2 I had such ..

Read more

I am trying to predict entities using a custom trained NER model using spacy. I read https://github.com/explosion/spaCy/pull/8855 that confidence scores of each entity can be obtained using spancat. But I have a little confusion regarding to make that work. According to my understanding, we have to train a pipeline using spancat component. So while training, ..

Read more

I am working on a data format like this. data = [{"content":”’Hello I am Aniyya. I enjoy playing Football. I love eating grapes”’,"annotations":[{"id":1,"start":11,"end":17,"tag":"name"}, {"id":2,"start":59,"end":65,"tag":"fruit"}]}] and i did want a data format like this. The sentences which do not have any entities has to be removed. And update the start and end of other entities according ..

Read more

I am trying to build an Dataflow pipeline and it works fine without spacy. After I introduce spacy it start failing with the error below: return _create_pardo_operation( File "/usr/local/lib/python3.8/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1589, in _create_pardo_operation dofn_data = pickler.loads(serialized_fn) File "/usr/local/lib/python3.8/site-packages/apache_beam/internal/pickler.py", line 289, in loads return dill.loads(s) File "/usr/local/lib/python3.8/site-packages/dill/_dill.py", line 275, in loads return load(file, ignore, **kwds) File ..

Read more