Giter Club home page Giter Club logo

travelclassify's Introduction

TravelClassify

An NLP engine developed for THack Dublin as part of a travel recommendation/inspiration application (not yet released). It suggests a user's top 5 travel activities by classifying her social media posts based on 50+ travel activities.

Workflow

Travel classificaton workflow

We've manually compiled a list of 50+ known and lesser known travel activities. We created keywords and hashtags which are indicative of these activities and extracted 15k+ tweets for each activity. We trained a Naive Bayes classifier on these tweets using Mallet (MAchine Learning for LanguagE Toolkit). In our application, we require the user to log in using his social media accounts. We are then able to extract his social media posts, classify them, and suggest the top 5 activities that best fit the user's profile based on the aggregated scores.

Next steps

Activities to places

We are then able to suggest places to the user that suit a user's favourite activities by using the following API features:

Similarly, we could leverage the Semantic Web or compile our own activities / cities database from unstructured data.

Expanding the activities can involve manual curation, crowd-sourcing, as well as automation (semantic similarity, word vectors).

Evaluation

Due to time constraints and API restrictions, we were only able to extract 350k tweets for 30 activities. The classifier trained on these tweets has an accuracy of 85% that could be considerably improved given more training data.

You can find the confusion matrix for the extracted 30 activities here. For some activities, e.g. Canyoning, Jet skiing, Orienteering, etc. we extracted too few tweets due to API constraints.

travelclassify's People

Contributors

sebastianruder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.