Giter VIP home page Giter VIP logo

ynym-bns-readable-code's Introduction

---使用方法---
1. リポジトリのクローンを行う
$ git clone https://github.com/ynym-bns/ynym-bns-readable-code

2. プログラムを実行する
python main.py

2.1 1単語のみ出力する
# 単語ID=1の単語のみ出力
python main.py 1
※ 存在しない単語IDを指定した場合は、何も出力されない

2.2 ユーザー名を紐づける (-u オプション)
# ユーザー名=太郎さんとする
python main.py -u 太郎

2.3 データファイルを指定して読み込む (-f オプション)
# ファイル名=dictionary-data.txtとする
python main.py -f dictionary-data.txt -u 太郎
※ ファイル名には必ずユーザー名を紐づける必要がある

2.4 複数のデータファイルを読み込む (-u オプションと -f オプションを繰り返し使う)
# 太郎さんの辞書 taro.txt と次郎さんの辞書 jiro.txt を読み込む
python main.py -f taro.txt -u 太郎 -f jiro.txt -u 次郎
※ -f taro.txt -u 太郎 -u 次郎 -f jiro.txt のような順番でも読み込める。
 ただし -f taro.txt -u 次郎 -u 太郎 -f jiro.txt のように、ファイルとユーザーの順番を入れ替えて指定
 すると、辞書とユーザー名が正確に紐づかない。

2.5 1ユーザーの辞書のみ出力する (--uid オプション)
# ユーザーID=2の単語のみ出力
python main.py -f taro.txt -u 太郎 -f jiro.txt -u 次郎 --uid 2
※ ユーザーIDは -u オプションの指定された順番で決まり、上記の例では次郎さんの辞書が出力される。

---データファイル(dictionary-data.txt)について---
・保存されている単語は 上手、一時、市場
・それぞれの単語について、単語そのものと読み仮名が保存されている。
 これらの情報は半角スペースで区切られている。

ynym-bns-readable-code's People

Contributors

kaorunishikawa avatar ynym-bns 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.