Code Monkey home page Code Monkey logo

dteuscher1 / nlp-disaster-tweets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skylerg022/nlp-twitter-disaster

0.0 0.0 0.0 2.53 MB

Natural Language Processing project for the Kaggle competition: "Real or Not? NLP with Disaster Tweets". Currently 51st percentile (top 49%) in the competition.

Home Page: https://www.kaggle.com/c/nlp-getting-started

R 0.09% HTML 99.91%
nlp predictive-modeling text-classification text-analytics classification

nlp-disaster-tweets's Introduction

Twitter Disaster NLP Project

This repository includes exploratory analysis and predictive modeling for the Real or Not? NLP with Disaster Tweets Kaggle competition (https://www.kaggle.com/c/nlp-getting-started). This was the first project I've done using NLP and this competition was used as an opportunity to become familiar with some common NLP methods. The work for this project was done in May 2020.

The .Rmd file where the analysis was done is available, while an HTML document nlp_approaches.html has been created that includes the code and output that was done. A notebook was created on Kaggle for this competition as well and can be found here.

The goal of this competition is to determine whether or not a tweet is about a real disaster. There is a lot of flexibility to the human language that machines can't always determine, so the goal is to build a machine learning model that can determine some of the nuances about whether or not a tweet is about a real disaster. The dataset provided includes id for the tweet, the text of the tweet, any keywords or location associated with the tweet. The training set also includes an additional column, target, that indicates whether or not the tweet is about a real disaster. There are 7613 observations in the training set, while there are 3263 observations in the test set.

The best model that was fit to the data was a logistic regression model with an L1 penalty and the mean F-1 score was .79650, which is approximately the 51st percentile in the competition. Since it is the first experience using NLP methods and algorithms, it isn't a bad start, but there is definitely room for improvement. Some potential improvements include attempting to better tune the hyperparameters for the different models, as well as trying models that often do very well like gbm and xgboost. Additional research into NLP methods and techniques would also likely increase the predictive accuracy of models that would be fit.

If there are any questions or comments about the analysis and work done, feel free to email me at [email protected]

nlp-disaster-tweets's People

Contributors

skylerg022 avatar dteuscher1 avatar germckay avatar mrmorgan17 avatar shanehuang16 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.