GithubHelp home page GithubHelp logo

d-e-h-i-o / german-qg Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 33 KB

German Question Generation with machine learning models

License: MIT License

Python 100.00%
question-generation t5 machine-learning transformer

german-qg's Introduction

German Question Generation

This projects explores Question Generation in German. We train several Transformer-based machine learning models from the T5 architecture. We open source two models on the Huggingface model hub.

Question generation task

The task is to generate a question from a textual input where the answer is highlighted with a <hl> token and prepended with generate question: .

Example:

Input

generate question: Der Monk Sour Drink ist ein somit eine aromatische Überraschung, 
die sowohl <hl>im Sommer wie auch zu Silvester<hl> funktioniert."

Expected Question

Zu welchen Gelegenheiten passt der Monk Sour gut?

Models

We open source two trained models: german-qg-t5-quad and german-qg-t5-drink600.

german-qg-t5-quad

Based on valhalla/t5-base-qg-hl, which is trained on the SQuAD dataset to generate English questions. We further fine-tuned it on the GermanQUAD dataset, which contains 13’722 question and answer pairs.

It achieves a BLEU-4 score of 11.30 on the GermanQuAD test set (n=2204).

We also fine-tuned the original t5-base model, which only achieved a BLEU-4 score of 10.12.

german-qg-t5-drink600

Based on german-qg-t5-quad, but further fine-tuned on a dataset of 603 German question/answer pairs that we annotated on drink receipts from Mixology ("drink600"). We have not yet open sourced the dataset, since we do not own copyright on the source material.

It achieves a BLEU-4 score of 29.80 on the drink600 test set (n=120) and 11.30 on the GermanQUAD test set. Thus, fine-tuning on drink600 did not affect performance on GermanQuAD.

In comparison, german-qg-t5-quad achieves a BLEU-4 score of 10.76 on the drink600 test set.

Credits

Both idea and code are partly inspired by this repository by Suraj Patil and from Hugging Face. The GermanQUAD dataset was created by deepset, as well as the annotation tool that we used.

german-qg's People

Contributors

d-e-h-i-o avatar

Stargazers

 avatar  avatar Tilo Michel avatar

Watchers

 avatar

Forkers

gueneumann

german-qg's Issues

Question regarding the use of T5 with the german language

Hey, I found your models at hugging face and was wondering why you used the fine-tuned T5 model to fine-tune it again on the question generation task.
I read the T5 paper and the C4 dataset to pre-train T5 only contains English language as well as the SQuAD dataset which is used for the question generation fine-tuning.
I think it would have made more sense to fine-tune a mT5 model since it already "learned" some german.

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.