Coder Social home page Coder Social logo

bert2gpt2_for_machinetranslation's Introduction

BERT2GPT2

描述

  • 基于huggingface的Transformers库实现。在编码器端与解码器端分别借助BERT和GPT2预训练成果,以期待模型能够更好的热启动,在使用小规模平行语料进行机器翻译训练任务中能够提供帮助。同时借助GPT2的单向语言模型能力,使生成句子更加顺畅。

支持

  • huggingface/models中支持的BERT模型和GPT2模型作为源语言,目标语言的编码器解码器。

使用

  1. 准备训练文件和验证文件,每行为一对平行语料,默认以“\t”分隔。
  2. 参考run_example.sh设置训练文件路径、模型保存路径、训练参数等。

bert2gpt2_for_machinetranslation's People

Contributors

rjk-git avatar

Stargazers

wanma avatar Han Li avatar  avatar Trace Miracle avatar wulb avatar Delvin Ce Zhang avatar Christian avatar  avatar Guang Yang avatar 复旦吴亦凡 avatar  avatar Twinkle Refrain avatar AndrewLee avatar

Watchers

James Cloos avatar  avatar

bert2gpt2_for_machinetranslation's Issues

是否有训练资料?

请问作者是否还留有训练的资料?比如数据量、模型大小选择、训练结果、评分等?
非常感谢!

some suggestions

Thank you very much for your translation project. I'm very benefited and have leaned more about it. Could you change it into a suitable one for various components?such as bert2bert2,gpt2gpt2,gpt2bert and so on. I believe it will be a great work of art

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.