The goal of this project is to analyze the conversations of my team to ensure they are happy 😃
Main goal: Analyze the conversations coming from a chat like slack
-
(L1🧐) Writing an API in bottle just to store chat messages in
mySQL -
(L2🥳) Extracting sentiment from chat messages and perform a report over a whole conversation
-
(L4🤭) Recommending friends to a user based on the contents from chat documents using a recommender system with
NLPanalysis -
(L3😎) Creating an image of the API with
Docker
- Gives you the chance to say hello to your own self, very useful if you are just testing the API works
- Returns every user in DB, UserId and their names
- Returns every message a user has sent, given an UserId
- Returns the user name and how many messages has ever sent, given an UserId
- Returns a list of all the messages in a chat, given an ChatId
- Create a user and save into DB
- Returns the UserId
Params: UserName
- Create a conversation in the DB, to load messages
- Returns the ChatId
- Add a message to an existing conversation into DB
- Returns the MessageId
Params: Text, ChatId and UserId
- Returns a JSON array with the results of analyzing all messages from a User, given a UserId
{'neg': 0.1, 'neu': 0.776, 'pos': 0.125, 'compound': 0.501} used nltk for this task
- Returns a JSON array with the results of analyzing all messages from a Chat, given a ChatId
{'neg': 0.209, 'neu': 0.69, 'pos': 0.101, 'compound': -0.834} used nltk for this task
- Given a UserName, it recommends you a friend based on similarities with other Chat's users
Used Sklearn for this task
-
[https://towardsdatascience.com/basic-binary-sentiment-analysis-using-nltk-c94ba17ae386]
-
[https://runnable.com/docker/python/dockerize-your-python-application]
-
[https://devcenter.heroku.com/articles/container-registry-and-runtime]
-
[https://devcenter.heroku.com/categories/deploying-with-docker]
-
MySQL ClearDB [https://devcenter.heroku.com/articles/cleardb]