Giter Club home page Giter Club logo

illust_comment_search's Introduction

ニコニコ超コメント生成コンテスト サンプルプログラム

画像 -> コメント検索の試し方

A. 依存パッケージのインストール

pip install -r requirements.txt

B. 必要なファイルをダウンロードする

ダウンロード用signitureはニコニコ超コメント生成コンテストの登録ページから別途申請して手に入れてください。

signature="XXXXX"
mkdir data
wget "https://nico-opendata.jp/comment-hackathon/nico_comment_feature_v1.hdf5$signiture" -O ./data/nico_comment_feature_v1.hdf5
wget "https://nico-opendata.jp/comment-hackathon/nico_comment_feature_v1_vocabulary.txt$signiture" -O ./data/nico_comment_feature_v1_vocabulary.txt
wget "https://nico-opendata.jp/comment-hackathon/nico_illust_tag_v2.hdf5$signiture" -O ./data/nico_illust_tag_v2.hdf5
wget "https://nico-opendata.jp/comment-hackathon/seiga_comment.tsv$signiture" -O ./data/seiga_comment.tsv

C. 学習しやすいコメントに絞って、ランダムにソートする

python prettify_comment.py --max_comment_count=100 --min_comment_length=4 --max_comment_length=30 data/seiga_comment.tsv > data/seiga_comment_random.tsv

D. ipythonを実行

ipython notebook search_comment_example.ipynb

類似画像検索の試し方

A, B, Cは上に同じ

D. ipythonを実行

ipython notebook search_comment_example.ipynb

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.