Giter Club home page Giter Club logo

onomatopeanalizer's Introduction

-Onomatope Analizer-

オノマトペを含むスニペットをアメブロから収集するPythonプログラム。
収集整理後、OnoSearch.pyにてオノマトペと関連語のスニペット内共起頻度を閲覧できる。

-必要なモノ-
Python2
PythonMeCab

※実装時の環境はMac OSX(Mervericks)です。尚、ターミナルを用いて動作させます。

-Onomatope Analizerの使い方-

1. /onolist/以下に収集するオノマトペのリストを作成しおいておく。この時のファイル名が収集sunippetsファイルをrootに生成されるフォルダ名になる。

2.main.pyのonoclasslistに/onolist/以下のファイル名(.txtを除く)を記述してから実行する。

3.rootに生成されたスニペットテキストを含むフォルダを/snippets/以下に移動する。

4.SentenceExtractor.pyを実行し、/snippets/スニペットテキストからオノマトペを含む文章のみを抽出、/sentences/以下に保存。

5.rootのStopwords.txt内にストップワードにしたい語句を書いておく。

6.TFExporter.pyを実行し、/outputs/以下のファイルに含まれるオノマトペと共起単語の頻度を算出する。出力ファイルはcsv形式で/outputs/以下に保存。

7.OnoSearch.py実行時のコマンドライン引数に検索したい語句を1語つけて実行。該当するオノマトペと共起頻度が表示される。

onomatopeanalizer's People

Watchers

 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.