Git Product home page Git Product logo

tf-punctuator's Introduction

Usage

Prepare data

1. Put train.txt, test.txt, valid.txt, vocab, punct_vocab together. (e.g.:../data/punc_data_all)
2. python convert_text_to_TFRecord.py --data_dir=../data/punc_data_all

Train

python train_lstm.py -h
# New usage
CUDA_VISIBLE_DEVICES=2 time nohup python train_lstm.py --train_data=../data/zh/head300W/data/ --vocab_size=100002 --embedding_size=256 --hidden_size=1024 --proj_size=256 --hidden_layers=3 --num_class=5 --batch_size=128 --epochs=7 --start_decay_epoch=4 --lr=0.0005 --save_folder=../exp/zh/temp/model --log=log/temp &
CUDA_VISIBLE_DEVICES=7 nohup time python train_blstm.py --model=3wproj1 --data_path=../data/punc_data_all/data/ --save_path=../exp/vocab3W-h300W-proj1/model --log=log/vocab3W-h300W-proj1 &

Eval

CUDA_VISIBLE_DEVICES=7 nohup time python eval.py --model=3wproj1 --data_path=../data/punc_data_all/data/ --save_path=../exp/vocab3W-h300W-proj1/model --log=log/vocab3W-h300W-proj1-eval &

Others

See script directory for useful scripts and tips.

Note

  • tensorflow version is 1.1

tf-punctuator's People

Contributors

kaituoxu avatar

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.