Giter Site home page Giter Site logo

machine_trans's Introduction

machine_trans

使用seq2seq模型进行机器翻译 把英语翻译成汉语(可通过替换训练语料用作其他使用seq2seq模型的功能)。 运行方式:

      第一步:python data_utils.py 处理语料。
      
      第二步:python train.py  训练模型
      
      第三步:python inference.py 对训练好的模型进行推理验证

测试结果如图:

Image text

补充:seq2seq.ini 为模型的配置文件。

machine_trans's People

Contributors

wdwcn avatar

Stargazers

MoYan avatar Yang Xuenan avatar  avatar

Watchers

 avatar

machine_trans's Issues

question

print(output_text.encode('utf-8').decode(sys.stdout.encoding))
我觉得这一行代码是不是有问题,我运行没有翻译出的结果
图片

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.