20080426.1000speakers:4

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    20080426.1000speakers:4 - Presentation Transcript

    1. このプレゼンは,話者の短絡的な思いつきと 既存技術の平凡な組合せを淡々と語る物です. 過度な期待はしないでください. 話者の緊張だけは過度ですが...><
    2. ニコニコ動画の「笑い」 を可視化してみる
    3. 本日のアジェンダ
      • 自己紹介
      • 本題
          • きっかけ
          • 作ってみた
          • 中身
      • まとめ
    4. 自己紹介
    5. 自己紹介 / about
      • 岩田 享
          • 自称 Web エンヂニヤ@名古屋
          • Perl ( CPAN 利用経験浅)
          • JavaScript (最近は jQuery ばかり)
          • メガネラボ LLP (あさって登記完了予定)
          • DeLLa.JS with id:samurai20000
      「こちら側」
    6. 自己紹介 / about
      • issm
          • not ISSM
          • id:issm とか @issm とか
          • もう「いわた」でいいや><
      「あちら側」
    7. 自己紹介 / こんなことやってます http://blog.iwa-ya.net/ 岩家ぶろぐ
    8. 自己紹介 / こんなことやってます http://twitomonitor.iss.ms/ twitomonitor [ ついともにた ]
    9. 自己紹介 / こんなことやってます http://iss.ms/crafts/dqwindowmanager/ DQWindowManager (まだまだ途中)
    10. 自己紹介 / こんなことやってます http://www.imasaramario2.com/ 今さら攻略 スーパーマリオブラザーズ 2 (放置中><)
    11. よろしくお願いします☆
    12. では本題
    13. ニコニコ動画を見てて思った
    14. ニコニコ動画を見てて思った
    15. ニコニコ動画を見てて思った
      • 「 w 」 == 「笑い」の表現(まぁこれは以前から)
      • 「 w 」が多い -> 釣られてニコニコ
      • ※ 主観
    16. 「 w 」を数えてみるか...
    17. 作ってみた
    18. 作ってみた
    19. 「にこぐらふ」 http:// www .nicograph.jp/
    20. 「にこぐらふ」
      • 横軸:動画再生時間
      • 縦軸:一定時間ごとの「 w 」の指標
    21. 「にこぐらふ」
      • 横軸:動画再生時間
      • 縦軸:一定時間ごとの「 w 」の指標
      -> 動画の「笑い」の状況を俯瞰 ※ 最新 500 コメント ※ あくまで「 w 」
    22. デモを少々...
    23.  
    24. 中身
    25. 中身
    26. 中身
    27. 中身 / コメント取得
    28. 中身 / コメント取得
      • yusukebe さん, dankogai さんを参考
          • http://yusukebe.com/tech/archives/20070803/124356.html
          • http://blog.livedoor.jp/dankogai/archives/50885358.html
          • http://blog.livedoor.jp/dankogai/archives/50900305.html
      コメントXMLの取得
    29. 中身 / コメント取得 コメント XML の取得 <?xml version=”1.0” encoding=”utf-8”?> <packet> <thread ... /> <chat ...>...</chat> <chat ...>...</chat> ... </packet>
      • chat 要素 == コメント
    30. 中身 / 「 w 」について計算
    31. 中身 / 「 w 」について計算
      • chat 要素における欲しい情報
          • 内容:そのまま内容文字列
          • 投稿時間: vpos 属性 [1/100 秒 ]
      コメント XML の解析 - XML::LibXML foreach( $xml->getElementsByTagName('chat') ) { my $comment = $_->textContent; my $vpos = $_->getAttribute('vpos'); ... # 「 w 」をカウントする ... }
    32. 中身 / 「 w 」について計算
      • s///g の戻り値を利用
      コメント中の「 w 」のカウント my $ct_w = ( $comment =~ s/(w)/$1/g ) || 0;
      • $vpos とか $ct_w とか -> グラフ生成可能なデータ型に加工
    33. 中身 / グラフ生成
    34. 中身 / グラフ生成
      • 折れ線グラフ
      グラフの生成 - GD::Graph::lines my $graph = GD::Graph::lines->new( ... ); my $data = [ [ $x1, $x2, $x3, ... ], # 横軸の値の集合 [ $y1, $y2, $y3, ... ], # 縦軸の値の集合 ]; my $img_graph = $graph->plot( $data ); # $img_graph を出力する ※ ただし, $x1 < $x2 < $x3 < ...
    35. 中身 / グラフ生成
      • 折れ線グラフ
      グラフの生成 - GD::Graph::lines my $graph = GD::Graph::lines->new( ... ); my $data = [ [ $x1, $x2, $x3, ... ], # 横軸の値の集合 [ $y1, $y2, $y3, ... ], # 縦軸の値の集合 ]; my $img_graph = $graph->plot( $data ); # $img_graph を出力する ※ ただし, $x1 < $x2 < $x3 < ...
    36. はい☆できました
    37. まとめ
    38. まとめ
      • 「 w 」を数えてみようと思った
      • 「にこぐらふ」を作ってみた
      • 目新しいテクニックは特になし><
      • 動画の「笑い」を見渡せた...かも
      • いろいろ改良したい
          • グラフの定期的自動生成
          • 対象文字の変更
              • 「ノ」で挙手をカウント...とか
          • and many more...
    39. おもしろい動画は ぜひグラフに☆
    40. ご静聴ありがとうございました
    41.  

    + issmissm, 2 years ago

    custom

    1603 views, 0 favs, 0 embeds more stats

    ニコニコ動画の「笑い」を可視化して more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1603
      • 1603 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories