Coder Social home page Coder Social logo

sumanthp80 / alexa-news-sentiment-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saha-rajdeep/alexa-news-sentiment-analyzer

0.0 0.0 0.0 253 KB

This Alexa skill analyzes news and categorize it as positive, negative or neutral

Python 100.00%

alexa-news-sentiment-analyzer's Introduction

1. DynamoDB Table: Create a DynamoDB table named "news" with Partition key "sentiment" and check "Add sort key" and add timestamp. Please refer to the screenshot dynamotable_news.jpg for reference.

2. Register at newsapi.org for your own API Key: Once you get your key replace in IOTLambda.py lambda (under iotButton_Lambda folder).

3. Lambdas: There are two Lambdas - IOTLambda.py (under iotButton_Lambda folder) and AlexaLambda.py (under Alexa_Assets folder). Assign the arn of IOTLambda.py to IOT button and AlexaLambda.py to Alexa skill endpoint.

4. If you DON'T have an IOT button: Not to worry, we can simulate iot button. Create IOTLambda.py and then do the following:

A. Configure a test event named "singleclick" with below json:

{ "clickType": "SINGLE" }

This testevent will act as IOT button single click. If you run this test, it'd grab the news headlines, gather sentiment and insert into DynamoDB

B. Configure a test event named "doubleclick" with below json:

{ "clickType": "DOUBLE" }

This testevent will act as IOT button double click. If you run this test, it'd delete all the existing news from DynamoDB

5. High Level Design Diagrams: IOT button design diagram is kept at iot_button_design.png and Alexa design illustrated in alexa_design.png

Contact Author: If you like what you see and want to connect with me, send a linkedin invite to https://www.linkedin.com/in/rajdeep-saha-4ba24744/

alexa-news-sentiment-analyzer's People

Contributors

devops-team-member avatar saha-rajdeep avatar serenitydesire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.