RPM1984 / RedditSentimentAnalyzer

Reddit sentiment analysis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RedditSentimentAnalyzer

Build Status Codecov NuGet Pre Release NuGet

What is this?

A dead-simple library to help analyze the sentiment of a particular term on Reddit.

Installation

How to use

  1. Signup for a Azure Cognitive Services account. You can get 5,000 free transactions/month for free. Note down your API key and region for your account.
  2. Create a new instance of SentimentAnalyzer:
var analyzer = new SentimentAnalyzer(logger, 
                                     "your-cognitive-services-key", // replace with your key
                                     AzureRegions.WestUs); // replace with assigned region
  1. Call GetSentimentAsync, passing through a subreddit and search term. For example:
var results = await analyzer.GetSentimentAsync("cryptocurrency", "bitcoin");

About

Reddit sentiment analysis.

License:MIT License


Languages

Language:C# 100.0%