Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Repository of OpenClassrooms' AI Engineer path, project #7 : sentiment analysis of tweets to help an airline company detect bad buzz.

License

Notifications You must be signed in to change notification settings

fleuryc/OC_AI-Engineer_P7_Detect-bad-buzz-with-deep-learning

Python application CodeQL Codacy Badge Codacy Badge


Air Paradis : Detect bad buzz with deep learning

Repository of OpenClassrooms' AI Engineer path, project #7

Goal : use Azure ML and NLP techniques (Gensim, Bert, Keras, ...), to perform sentiment analysis and prediction on tweets.

You can see the results here :

Installation

Prerequisites

Virtual environment

# python -m venv env
# > or just :
make venv
source env/bin/activate

Dependencies

# pip install kaggle jupyterlab ipykernel ipywidgets widgetsnbextension graphviz python-dotenv requests matplotlib seaborn plotly numpy
# > or :
# pip install -r requirements.txt
# > or just :
make install

Usage

Run Notebook

jupyter-lab notebooks/main.ipynb

Quality Assurance

# make isort
# make format
# make lint
# make bandit
# make mypy
# make test
# > or just :
make qa

Troubleshooting

  • Fix Plotly issues with JupyterLab

cf. Plotly troubleshooting

jupyter labextension install jupyterlab-plotly
  • If using Jupyter Notebook instead of JupyterLab, uncomment the following lines in the notebook
import plotly.io as pio
pio.renderers.default='notebook'

Sponsor this project

 

Languages