Code Monkey home page Code Monkey logo

sagemaker-data-transformation's Introduction

Using AI to process stream data from Apache Kafka topic

This repository contains code for two demos showcasing how to use AI Models and Amazon SageMaker to analyse data flowing from Apache Kafka topic. The data is processed using AI model and send into a separate topic.

Demo 1: social media posts

Messages are processed one by one and we use two models to get sentiment analysis and offensiveness score. Origin of data is Mastodon, you can load Mastodon data by following the steps described in this article - https://go.aiven.io/tbdt-mastodon-kafka-js.

Demo 2: Amazon reviews

Each review is processed using two AI models - one to get sentiment analysis and another to classify the review. Data is taken from Amazon Fine Food Reviews dataset - https://www.kaggle.com/datasets/snap/amazon-fine-food-reviews.

Setting up Apache Kafka

You can get free trial of Aiven for Apache Kafka to run your cluster in the cloud. Here is a link to get extra credits - https://go.aiven.io/tbdt-sagemaker-signup.

Visualisation

You can visualise the results with OpenSearch Dashboards. You'll find an example of Kafka-OpenSearch connector in the file opensearch-connector.json. You can find more details on how to establish the connection in this article - https://go.aiven.io/tbdt-mastodon-kafka-opensearch

sagemaker-data-transformation's People

Contributors

anelook avatar

Watchers

Sebastien Blanc avatar Tibs (Tony Ibbs) avatar

Forkers

kukrev

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.