som-shahlab / trove

Weakly supervised medical named entity classification
Apache License 2.0
70 stars 21 forks source link

from spacy.pipeline import SentenceSegmenter #6

Open Yocodeyo opened 3 years ago

Yocodeyo commented 3 years ago

Hi, thank you for the interesting piece of work!

When I tried to preprocess my data, I encountered this error: ImportError: cannot import name 'SentenceSegmenter' from 'spacy.pipeline' when running parse.py. I checked for spacy documentation and it doesn't have the SentenceSegmenter feature. May I get your advice on how to solve this issue?

Thank you so much!

jason-fries commented 3 years ago

Thanks for your interest @Yocodeyo ! What version of spaCy are you using? The current version of the preprocessing tools only support spaCy version 2.3.x so using 3.x could be the culprit.

aryopg commented 2 years ago

Hi @jason-fries, I believe that the requirements.txt specifies spacy==3.0.5. Maybe we can change that according to the version you mentioned?