Giter Club home page Giter Club logo

lyrics-visualize's Introduction

Lyrics-visualize

歌詞を可視化したワードクラウド画像を生成するプログラム

DEMO

demo

曲名:丸の内サディスティック 作詞:椎名林檎

Requirement

requirements.txt を参照してください.

Usage

Build

git clone <this repo>
cd <this repo>
pipenv install

Input

core/config.py で以下を設定する.

歌手名と曲名を設定する.

ARTIST: str = '椎名林檎'
SONG: str = '丸の内サディスティック'  # 全曲解析: '*'
IS_REMOVE_TITLE: bool = False

形態素解析に用いる辞書のパスを指定する. 辞書をインストールしていない場合は,コメントアウトを外して-Ochasenを指定する.

DICTIONARY_PATH: str = '/usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd'
# DICTIONARY_PATH: str = '-Ochasen'

ワードクラウド画像で用いるフォントのパスを指定する.

FONT_PATH: str = '/usr/share/fonts/truetype/takao-mincho/TakaoMincho.ttf'

Run

pipenvで作られた仮想環境へ入って実行する.

pipenv shell
pipenv run main

仮想環境から抜けるときは次を実行する.

deactivate
exit

References

https://www.uta-net.com/

Author

Ran350

lyrics-visualize's People

Contributors

ran350 avatar

Stargazers

 avatar  avatar  avatar  avatar

lyrics-visualize's Issues

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.