GithubHelp home page GithubHelp logo

storywriter / personality-insights-tools Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 9 KB

IBM Watson Personality Insights 向けに Twitter ログ(.csv)を整形する

License: Apache License 2.0

Python 100.00%

personality-insights-tools's Introduction

IBM Watson Personality Insights 向けに Twitter ログ(.csv)を整形する

Utility tool for IBM Watson Personality Insights

2017年8月14日 Yoshiki Hayama @storywriter

使いかた

前提: Python がインストールされていること。(Python 2.7.10 で動作確認)

  1. Twitter から、全ツイート履歴をダウンロードする。
  2. 全ツイート履歴を解凍したフォルダに tweets_csv_to_json.py を入れる。
  3. コマンドラインで、解凍したフォルダに移動し、 python tweets_csv_to_json.py と入力する。
  4. プログラムが tweets.csv を読み込んで整形し、 tweet_all.json というファイルを生成する。
  5. 生成された tweet_all.json が IBM Watson Personality Insights 向けの JSON ファイルです。cURL で Personality Insights に送ると、分析結果が得られます。

使いかた その2

cURL で IBM Watson Personality Insights から得られる csv データは、見出し行が英語なので、対訳を用意しました。

  • profile-header-ja.csv (見出し行の対訳)

参考

IBM Watson Personality Insights: https://www.ibm.com/watson/services/personality-insights/

備考

  • Twitter からダウンロードできる全ツイート履歴は、数年より前のデータでは、投稿時間が記録されていない。

personality-insights-tools's People

Contributors

storywriter avatar

Stargazers

 avatar

Watchers

James Cloos 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.