Skip to main content

No project description provided

Project description

Review Assignment Due Date

NLP2

The objective of this project is to develop an automated emotion detection pipeline and cloud application for Banijay Benelux. The application should be able to process video/audio input and classify the emotions of each sentence spoken in the video/audio. The system should be able to handle multiple users and provide secure access to the data and models.

Requirements

  • python version 3.9
  • nodejs
  • npm
  • ffmpeg

Static Type Checking

You can run mypy src/ for type checking.

Setup

1. Download / clone the repository

Download the pre-trained model and place it into /src/models/trained_models/ https://drive.google.com/file/d/1RdrM3tzFRCKPSp2rklbKOjZg8IhLCgev/view?usp=sharing

2. Install dependencies

pip install poetry

poetry install

pip install openai-whisper

python -m spacy download en_core_web_lg

Usage

The package is optimized for linux system. You are expected to run the API and front end using pm2.

Menu

python src/main.py --interactive

Front end

Options 1:

./front.sh

Option 2

cd ./src/front/NLP2-frontend/

npm install

npm run dev

API

Option 1:

./api.sh

Option 2:

python ./src/apientry.py

Docker

Linux:

./redeploy.sh

Windows: Use Docker Desktop or similar to build.

Project Structure/

    ├── data/
    │   ├── raw/
    │   ├── processed/
    │   └── external/
    ├── docs/
    ├── models/
    ├── notebooks/
    ├── src/
    │   ├── __init__.py
    │   ├── data/
    │   │   ├── __init__.py
    │   │   └── s2p.py
    │   ├── evaluation/
    │   │   ├── __init__.py
    │   │   └── metrics.py
    │   │   └── visualizations.py
    │   ├── features/
    │   │   ├── __init__.py
    │   │   └── feature_extraction.py
    │   ├── models/
    │   │   ├── __init__.py
    │   │   └── data_setup.py
    │   │   └── model_loading.py
    │   │   └── predict_model.py
    │   │   └── train_model.py
    │   └── utils/
    │       ├── __init__.py
    │       └── helpers.py
    │       └── common.py
    ├── tests/
    ├── .gitignore
    ├── LICENSE
    ├── README.md
    └── pyproject.toml

Dependencies

python = ">=3.9,<3.10"
pandas = "^2.2.2"
spacy = "^3.7.4"
tensorflow = "2.10.0"
tensorflow-io-gcs-filesystem = "0.31.0"
scikit-learn = "^1.4.2"
nltk = "^3.8.1"
seaborn = "^0.13.2"
matplotlib = "^3.8.4"
transformers = "4.37.2"
more-itertools = "^10.2.0"
toolz = "^0.12.1"
textblob = "^0.18.0.post0"
azureml-core = "^1.56.0"
azureml-defaults = "^1.56.0.post1"
azureml-sdk = "^1.56.0"
inquirer = "^3.2.4"
tiktoken = "0.7.0"
numba = "0.59.1"
llvmlite = "0.42.0"
networkx = "3.2.1"
sympy = "1.12.1"
accelerate = "^0.31.0"
keras = "2.10.0"
protobuf = ">=3.9.2,<3.20"
tensorboard = ">=2.10,<2.16"
tensorflow-estimator = "2.10.0"
mlflow = "^2.14.1"
azureml = "^0.2.7"
fastapi = "^0.111.0"
deep_translator = "^1.11.4"
uvicorn = "^0.30.1"
pandas-stubs = "^2.2.2.240807"
pre-commit = "^3.8.0"
pytest = "^8.3.2"
pytest-cov = "^5.0.0"
mypy = "^1.11.1"
sphinx = "^7"
flake8 = "^7.1.1"
httpx = "^0.27.0"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robinson_nlp2_y2d-1.0.2.tar.gz (177.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robinson_nlp2_y2d-1.0.2-py3-none-any.whl (180.2 kB view details)

Uploaded Python 3

File details

Details for the file robinson_nlp2_y2d-1.0.2.tar.gz.

File metadata

  • Download URL: robinson_nlp2_y2d-1.0.2.tar.gz
  • Upload date:
  • Size: 177.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for robinson_nlp2_y2d-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3357944d0c8067c07efec314a5b105d2fc5dbf11239bd8c36469c0aeb8c1967d
MD5 70687782a8b4d991259b363d1e274826
BLAKE2b-256 02da05c74e1ad346c06f37acd462a390d565120df202c62f3ec75bd81c6b1fc5

See more details on using hashes here.

File details

Details for the file robinson_nlp2_y2d-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: robinson_nlp2_y2d-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 180.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for robinson_nlp2_y2d-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7d649f696bd6b3aeaacee4382d7e384510153611520c547ea4f32037754039a1
MD5 d5d9e0a6889f2c53f26c36b8d6b5cd0e
BLAKE2b-256 6c84a6144120101c83b76b31503c3515357a642953b27446b83e2c739d48753f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page