Coder Social home page Coder Social logo

leliuchn-githuber / machinetranslation-transformer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jayeew/machinetranslation-transformer

0.0 0.0 0.0 7.44 MB

中文->英文的机器翻译,完全基于kreas-transformer。模型已上传,可直接跑。

Python 84.09% Jupyter Notebook 15.91%

machinetranslation-transformer's Introduction

中文到英文的机器翻译

此模型完全基于keras-transformer,只是把别人的封装拿来简单实践一下
此外,可以和我另一个基于LSTM的机器翻译项目MachineTranslation-LSTM对比学习,二者原始数据一致

环境配置

程序 版本
python 3.68
tensorflow 1.13.1
Keras 2.2.4
windows10
jupyter

实际效果

(注:中文正常输入无需空格)

输入中文 输出英文
我喜欢你! I like you !
你喜欢我吗? Do you like me ?
滚蛋! 听不懂呢。

(注:数据量较小可能遇到词典中没有的词,我简单的采用安全回复“听不懂呢。”来应对)

运行

方式一:完整过程

  • 数据预处理
    get_data
  • 模型训练与预测
    train&translate

方式二:加载现有模型

  • 运行train&translate
  • 加载model/W-- 40-0.0563-.h5

machinetranslation-transformer's People

Contributors

jayeew 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.