Skip to content

ENV updates required for BERTopic analysis #46

Description

@mepearson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions