Giter Club home page Giter Club logo

tensorflow-bert-seq2seq-dream-decoder's Introduction

tensorflow-seq2seq-dream-decoder

tensorflow + seq2seq 周公解梦。通过 tensorflow seq2seq 实现一个梦境解析模型,说出你的梦境(dream),模型自动解析decode你梦境的征兆,用科学的视角对待玄学。 ^_^

依赖

  • python >= 3.6
  • tensorflow 1.14.0

数据样例

{
    "dream": "梦到买自行车",
    "decode": "正在对某件事情做出决定,可能会带来不好的后果。"
}
{
    "dream": "梦到买筐子",
    "decode": "预示着近期生活上可能会有大的开销。"
}

**33000+**条样例记录详情

运行

训练

  $ python3 model.py --task=train \
    --epoch=100 \
    --size_layer=256 \
    --vocab_file=data/vocab.txt \
    --num_layers=2 \
    --learning_rate=0.001 \
    --batch_size=16 \
    --checkpoint_dir=result

预测

$ python3 model.py --task=predict \
    --epoch=100 \
    --size_layer=256 \
    --vocab_file=data/vocab.txt \
    --num_layers=2 \
    --learning_rate=0.001 \
    --batch_size=16 \
    --checkpoint_dir=result

TODO

  • add bert

Just For Fun!!

tensorflow-bert-seq2seq-dream-decoder's People

Contributors

saiwaiyanyu avatar

Watchers

James Cloos 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.