Coder Social home page Coder Social logo

smm-project's Introduction

SMM-project

Social Media Mining:

Requirements for executing:- - Python 3.0 - Executable in Jupyter notebook

Python Packages: - pandas - urllib.request - json - pprint - everygrams from NLTK - word_tokenzie from NLTK - stopwords from NLTK.corpus - defaultdict from collections - joblib from sklearn.externals - numpy - preprocessing from sklearn

Models input files: - /Model/sentiment_model3.0.sav - /Model/tfidf_vectorizer3.0.sav

Tweets input files: - /Raw_data/full_LA_Oct-Dec2017.csv - /Raw_data/pointOfInterests.csv

Steps to follow: Location Entity Extraction:

  1. Edit setup.py file. Change the location name of nltk folder as per your nltk installation. nltkFolderName="C:/Users/Bhagyashree/AppData/Roaming/nltk_data/corpora/conll2002/"
  2. Run "python setup.py" file from LocationEntityExtraction folder.
  3. "/LocationEntityExtraction/processedDataset/pointOfInterests.csv" - points of interests file will be created.
  4. Copy /LocationEntityExtraction/processedDataset/pointOfInterests.csv to /TwitterDataTourism-sentimentnalysiswith1.6M/Raw_data/pointOfIntersts.csv

Get top tourist spots:

  1. Go to this folder "TwitterDataTourism-sentimentnalysiswith1.6M"
  2. Open this "GetTopTourstSpots.ipynb" notebook -ย  GetTopTourstSpots.ipynb : This file describes the process of executing the GetTopTouristSpots.ipynb
  3. Run all code inside it.
  4. The final result will be saved to "/TwitterDataTourism-sentimentnalysiswith1.6M/Processed_data/FinalReport.csv" after the succesfull execution of the script.

To get characteristics of city:

  1. Go to "/CharacteristicsOfCity/"
  2. Run "python Characteristics.py"
  3. Output is created in same folder "characteristics.csv"

To get popular hashtags:

  1. Go to folder "/Hashtag-extraction/"
  2. Run python notebook "ProminentHashtags.ipynb"
  3. Output is in "/Hashtag-extraction/ProcessedDataSet/hashtag_NY.csv". Note: Current hashtag extraction is for New York dataset.

smm-project's People

Contributors

suunni avatar bmkool41 avatar

Stargazers

Bowen Jing avatar  avatar

Watchers

Vidya Patil 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.