jubatus / jubatus-installer

Install Script of Jubatus
18 stars 17 forks source link

Support debug mode #50

Closed rimms closed 8 years ago

rimms commented 8 years ago

build jubatus and jubatus_core using --enable-debug .

kachuti commented 8 years ago

はじめまして、加藤と申します。

jubatus についての勉強しています。

鹿児島県に来る中国人の観光客数の予測をしたいです。 そのためにweibo(中国版ツイッター)をjubatusに投入しなければなりません。

下記のような事を行いたいです。 1.月別観光客数の情報収集:WeiboのREST APIを使って過去の投稿を情報収集 2.特徴抽出:N-gramを使用した投稿の特徴抽出 
3.機械学習:取得したデータをjubaclassifierに学習 4.観光客数の予測

weibo では、App Key:294703483 App Secret:a2ef9de0a580edb7a26daf2804d27624 を取得しました。

先はjubatus example のTwitter Streaming Classification: Location Estimationのプログラムを変更し、jubatusでweiboが使えるようにしたいです。

下記のプログラムを変更しましたが、上手くいきません。

!/usr/bin/env python

-- coding: utf-8 --

import sys import json import re

try:

for Python 3

import http.client as httplib

except ImportError:

for Python 2

import httplib

from tweepy.streaming import StreamListener, Stream from tweepy.auth import OAuthHandler

from jubatus.classifier import client from jubatus.common import Datum

def oauth():

Fill in your keys here:

 app_key = '294703483' 
 app_secret= 'a2ef9de0a580edb7a26daf2804d27624' 
 REDIRECT_URL = 'http://www.weibo.com/5973036902/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1' 
 access_token = '2.00skPOWG0zpXw_e8253b9b7c9GKIdE' 
auth = OAuthHandler(app_key, app__secret)
auth.set_access_token
return auth

Jubatus Configuration

host = "127.0.0.1" port = 9199 instance_name = "" # required only when using distributed mode

いろいろ悩んだ末、自力での解決は不可能と判断しました。

宜しければ、原因&解決策を教えて頂けないでしょうか。 お手数ですが宜しくお願いいたします。

yukimori commented 8 years ago

issueと関連のない質問をコメントするのはご遠慮ください。

ご質問の内容はJubatusの使い方ではなく、weibo APIの使い方(APIを通した情報取得)になります。 weibo APIの使い方については、こちらでは情報を持っていませんので、 weiboに問い合わせるか、githubなどでweibo APIから情報を取得するコードなどを検索して参照してください。

yukimori commented 8 years ago

This issue should be closed in a few days, and create new issue about support debug option.

rimms commented 8 years ago

I moved this to #51