=== Question Generation
-
Clone https://github.com/facebookresearch/XLM to the project.
-
Follow
QuestionGeneration/data_preparation.pyto prepare the training data. In the directory,train_source_example_inputs.txtgives samples in the source side, i.e., the narrative-style texts;train_target_what_questions.txtandtrain_target_when_questions.txtshow samples in the target side, i.e., the query-style texts. -
Train back-translation model to learn the mapping.
generated_questions.txtgives the examples of the generated questions.
=== Question Answering
- Follow
util.pyandmodel_train_progressly.pyto preprocess the datasets and train the final model.