medianeuroscience / emfdscore

Fast, flexible extraction of moral information from textual input data.
GNU General Public License v3.0
102 stars 28 forks source link

Error with mfd_tokenizer breaking sequence #24

Closed AFMessamore42 closed 5 months ago

AFMessamore42 commented 5 months ago

Hi there!

I just tried to replicate the tutorial, using the code and data provided, but it seems to be breaking as is. I am running on Google colab, but similar errors happen if I run in Anaconda-Navigator or from terminal.

I get the following error: "[E005] Pipeline component 'mfd_tokenizer' returned <class 'list'> instead of a Doc. If you're using a custom component, maybe you forgot to return the processed Doc?"

Perhaps an update in pandas or spacy has thrown off the package? Please let me know. My research team was very interested in using your method!

AFMessamore42 commented 5 months ago

Same issue as jvivar2383 mentioned. Need to revert spaCy to 3.4.0.