Giter Club home page Giter Club logo

lab2_kafka's Introduction

The work was done by -Salma EZZINA and Chaima Elmessai-

First thing is to launch the zookeeper and the kafka servers:
i. .\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties
ii. .\bin\windows\kafka-server-start.bat .\config\server.properties

Second is to create the 5 topics: raw-tweets, en-tweets, fr-tweets, positive-tweets, negative-tweets
.\bin\windows\kafka-topics.bat --create --topic raw-tweets --bootstrap-server localhost:9092

Finally,
The folder contains 6 .py files which are in order:
1- ingest-tweets: to scrap tweets and send them to the topic 
'raw-tweets' via kafka producer
2- filter-tweets: to filter the latter twitter based on the language 
(frensh or english) and send them to the 2 topics en-tweets and fr-tweets
3-sentiment-tweets1: To filter tweets based on words used into positive and negative tweets
the first approach used in this file is an NLP approach using HuggingFace transformers
and some  nlp preprocessing for better results
4- sentiment-tweets2: which classifies tweets based on the key: possibly-sensitive
5- archive-data: To save data from the 5 topics locally to 5 .txt files
6- monitor-kafka: to display some info about the messages from the 5 topics

lab2_kafka's People

Watchers

 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.