Movie Exam Project in Data Science Class
Ensure the following tools are installed on your system:
- Anaconda or Miniconda: Used for managing environments and dependencies.
- npm: Needed for client-side dependency management.
Use the following commands in your terminal:
conda create -n datascience_movie_exam python=3.10.11 -y
conda activate datascience_movie_exam
pip install -r requirements.txt
Use the following commands in your terminal:
conda create -n datascience_movie_exam python=3.10.11 -y
conda activate datascience_movie_exam
pip install -r requirementsmac.txt
📝 Note: After setting up the environment and installing the dependencies, run the following Python script to download the Google Sentence Encoder. Make sure you're at the root of the project in your terminal:
python .\download_Google_Sentence_Encoder.py
Follow these steps:
- Navigate to the
notebooks
folder. - Run the following notebooks to save the models to the correct folder (these are ignored on git). This step is required to run the server.
Movie Earnings Classifier.ipynb
Naive_bayes_sentiment_analysis.ipynb
Follow these steps:
- Navigate to
/server
. - Run the server using:
uvicorn main:app --reload
- Access the server at:
http://127.0.0.1:8000
- Access Swagger API Documentation at:
http://127.0.0.1:8000/docs
Follow these steps:
- Navigate to
/client
. - Install dependencies using:
npm install
- Run the client using:
npm start