Reddit bot that uses sentiment analysis

Overview

Reddit Bot Project 2: Neural Network Boogaloo

Reddit bot that uses sentiment analysis from NLTK.VADER

WIP_WIP_WIP_WIP_WIP_WIP

Link to test subreddit: https://www.reddit.com/r/RBotProject/comments/qbyogh/testing_neural_network_sentiment_analysis/

I learned a lot from this mini-project. Although there are many features to impliment, my goal was achieved.

NOTE: I realised that the 100% Neutral rated comments came out as overall negative, that is because I made an error with the polRating if-else statement.

Results as of latest update of code:

Bot in action:

BiA

|This is the name of the subreddit title post|

Testing Neural Network Sentiment Analysis

|Proceeds to reply to every comment with an analysis|


This subreddit sucks.

sentence was rated as 74.40% Negative

sentence was rated as 25.60% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


I love this subreddit

sentence was rated as 0.00% Negative

sentence was rated as 19.20% Neutral

sentence was rated as 80.80% Positive

overall sentence rating conducted by VADER: Positive


This SubReddiT is Stoopid

("stoopid" is not recognised in the VADER lexicon as a slang term for stupid/dumb)

sentence was rated as 0.00% Negative

sentence was rated as 100.00% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


Why is this sub so kwl?

("kwl" is not recognised in the VADER lexicon as a slang term for cool)

sentence was rated as 0.00% Negative

sentence was rated as 100.00% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


Hello

sentence was rated as 0.00% Negative

sentence was rated as 100.00% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


Sux

sentence was rated as 100.00% Negative

sentence was rated as 0.00% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


You are very good at your job- efficient. but you don't seem to really like being here.

sentence was rated as 19.30% Negative

sentence was rated as 33.30% Neutral

sentence was rated as 47.40% Positive

overall sentence rating conducted by VADER: Positive


Sorry, I wasn't listening. Can you say it again?

sentence was rated as 24.50% Negative

sentence was rated as 75.50% Neutral

sentence was rated as 0.00% Positive

overall sentence rating conducted by VADER: Negative


I hope your children are born naked and illiterate!

sentence was rated as 0.00% Negative

sentence was rated as 58.00% Neutral

sentence was rated as 42.00% Positive

overall sentence rating conducted by VADER: Neutral


Well done with this test!

sentence was rated as 0.00% Negative

sentence was rated as 48.80% Neutral

sentence was rated as 51.20% Positive

overall sentence rating conducted by VADER: Neutral


Proud of you

sentence was rated as 0.00% Negative

sentence was rated as 0.00% Neutral

sentence was rated as 100.00% Positive

overall sentence rating conducted by VADER: Neutral


Dogs write better codes than you.

sentence was rated as 0.00% Negative

sentence was rated as 50.80% Neutral

sentence was rated as 49.20% Positive

overall sentence rating conducted by VADER: Neutral


The coder is an idiot, I'm super smart.

sentence was rated as 27.70% Negative

sentence was rated as 16.80% Neutral

sentence was rated as 55.50% Positive

overall sentence rating conducted by VADER: Positive


You might also like...
Reddit bot for r/khiphop

khiphop-bot Description This project is a collection of scripts that better the state of the r/khiphop subreddit, which represents Korean Hip-Hop and

A small bot to interact with the reddit API. Get top viewers and update the sidebar widget.

LiveStream_Reddit_Bot Get top twitch and facebook stream viewers for a game and update the sidebar widget and old reddit sidebar to show your communit

A telegram bot that sends a meme a day, from reddit's top meme of the day

MemeBot A telegram bot that sends a meme a day, from reddit's top meme of the day You can use the bot either with an external scheduler (ex: pythonany

A reddit.com bot that will return reference links from official python documentation site for the standard library.

Python Docs Bot A reddit.com bot that will return documentation links for the library and language reference sections of the python docs website. The

A bot framework for Reddit to manage threads, wiki pages, widgets, menus and more.

Sub Manager Sub Manager is a bot framework for Reddit to automate a variety of tasks on one or more subreddits, and can be configured and run without

Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call.
Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call.

Discord_Meme_Bot đŸ€Ł Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call. Add the bot

Sentiment Analysis web app using Streamlit - American Airlines Tweets
Sentiment Analysis web app using Streamlit - American Airlines Tweets

Analyse des sentiments à partir des Tweets L'application est développée par Streamlit L'analyse sentimentale est effectuée sur l'ensemble de données d

Botto - A discord bot written in python that uses the hikari and lightbulb modules to make this bot

❓ About Botto Hi! This is botto, a discord bot written in python that uses the h

Tickergram is a Telegram bot to look up quotes, charts, general market sentiment and more.
Tickergram is a Telegram bot to look up quotes, charts, general market sentiment and more.

Tickergram is a Telegram bot to look up quotes, charts, general market sentiment and more.

Owner
TpK
TpK
A reddit bot that imitates the popular reddit bot "u/repostsleuthbot" to trick people into clicking on a rickroll

Reddit-Rickroll-Bot A reddit bot that imitates the popular reddit bot "u/repostsleuthbot" to trick people into clicking on a rickroll Made with The Py

null 0 Jul 16, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python Reddit API Wrapper Development 3k Dec 29, 2022
A Python bot that uses the Reddit API to send users inspiring messages.

AnonBot By Edric Antoine A Python bot that uses the Reddit API to send users inspiring messages. When a message includes 'What would Anon do?', the bo

null 1 Jan 5, 2022
Track live sentiment for stocks from Reddit and Twitter and identify growing stocks

Market Sentiment About This repository can mainly be used for two things. a. Tracking the live sentiment of stocks from Reddit and Twitter b. Tracking

Market Sentiment 345 Dec 17, 2022
Tsar-Bot - Crypto auto trade bot that use sentiment analysis from twitter

Tsar Bot - Crypto Sentiment Bot Tsar Bot is a Twitter Crypto Sentiment Bot that

Hilmi Azizi 26 Dec 15, 2022
Twitter bot that turns comment chains into ace attorney scenes. Inspired by and using https://github.com/micah5/ace-attorney-reddit-bot

Ace Attorney twitter Bot Twitter bot that turns comment chains into ace attorney scenes. Inspired by and using https://github.com/micah5/ace-attorney-

Luis Mayo Valbuena 542 Dec 17, 2022
Telegram bot to scrape images from the reddit universe

Telegram bot to scrape images from the reddit universe

XD22 3 Sep 30, 2022
Reddit comment bot emulating Telugu actor N. Bala Krishna.

Balayya-Bot Reddit comment bot emulating Telugu actor N. Bala Krishna. Project structure config.py contains Bot's higher level configuration. generate

Kari Lorince 2 Nov 5, 2021
Simple Reddit bot that replies to comments containing a certain word.

reddit-replier-bot Small comment reply bot based on PRAW. This script will scan the comments of a subreddit as they come in and look for a trigger wor

Kefendy 0 Jun 4, 2022