Coder Social home page Coder Social logo

seq2seq_japanese's Introduction

About

日本語のseq2seq発話モデル作成プログラム

main.py

python main.py -d '../data/trainData/top1-100k_center/' --o 'top1-100k_center' --p 'params.ini'
  • コマンドライン引数
    -d : 学習データのpickleのパス(prepare_trainingDataで作成)
    --o : モデルを保存するディレクトリ名(オプション). 未使用でモデルを保存しない
    --p : パラメータ設定ファイルのパス(オプション). 未使用でデフォルトパラメータを使用. oを指定する場合必ず指定

params.ini

パラメータを記述する設定ファイル

Branch "word2vec"

学習済みのword2vecモデルをロードして単語embeddingに用いる.
word2vecモデルは, prepare_trainingData(Branch "regression")で作成する,
語彙辞書に対応した[VOCAB_NUM×ベクトルサイズ]のndarrayをpickle化したものを読み込む.

使用法

tensorflow-modules/下の2つのファイルを以下のように移動させる

seq2seq.py

/home/user/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py

core_rnn_cell.py

/home/rfukuda/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn_cell.py

seq2seq_japanese's People

Contributors

fury00812 avatar

Stargazers

Joshua Herman avatar kilisima avatar Tanahashi avatar  avatar

Watchers

Tanahashi avatar

seq2seq_japanese'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.