Giter Club home page Giter Club logo

individual_project's Introduction

Project topic: Twitter bot

Description of the project:

Creating a bot in Python using the Twitter API and some machine learnig. I have set up two Twitter accounts where one represents a Twitter user (Input) and the other represents a bot answering the given question (Output). To get a response from the bot it is necessary to tag it with the "@" sign. The main.py file, when run, generates a response to the last Tweet in which the bot account was tagged.

More specifically user questions are categorized according to the keyword detected in them, preceded by the "#" sign:

  1. #hello
  2. #embedding
  3. #emotion_detection
  4. no keyword detected.

The operation of the program in each of the four cases will be as follows:

  1. Return a welcome message.
  2. Return 2D image showing words connected with the word in the question preceded by the "$" sign.
  3. Return the most probable emotion recognized in the question.
  4. Extend the text in the question so that the whole makes sense.

The answer to each question is generated as follows:

  1. A simple welcome message.
  2. There is a dataset containing word embedding data: words are assigned vectors of length 100. The program searches for the words closest to the specified word and reduces the space from 100 dimensions to 2 dimensions (using PCA method) so that the words can be shown in a 2D image.
  3. There is a dataset containing Tweets with a specific emotion attached. Tweets are processed into sequences using Tokenizer. The processed data goes to a neural network that learns to classify Tweets.
  4. A function from tensorflow API allows to extend the given text. A pretreated transformer model is used for this purpose.

individual_project's People

Contributors

bati22 avatar

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.