In-For-Disaster-Analytics / LLMRepository-Docker

0 stars 1 forks source link

ENV updates required for BERTopic analysis #46

Open mepearson opened 8 months ago

mepearson commented 8 months ago

Issue 1 Need to download the Spacy english model on env creation.

Problem Currently running aspect_model1 = PartOfSpeech("en_core_web_sm")

produces the following error: OSError: [E050] Can't find model 'en_core_web_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

Solution add function to the run.sh file to run the following: python -m spacy download en_core_web_sm

Issue 2 Missing package for .visualize_topics()

Problem Currently running newsgroups_default_model.visualize_topics()

produces the following error: ValueError: Mime type rendering requires nbformat>=4.2.0 but it is not installed

Solution Add nbformat to requirements