example configuration for language model.
Created by: lcy-seso
-
In this example, we would like to show how to train:
-
Besides, we would like to show how to generate sequence from:
- a N-gram language
- a rnn language model
-
In the generation process, please consider the following two situations:
- generate a sequence by using paddle.infer API, in which you need to implement one-way search or beam search (beam search is more complicated, I suggest to implement one-way search first.)
- generate a sequence by using recurrent_layer_group
-
Please consider to use the following data for training and add these datasets into
paddle.dataset
package. -
Please pull your codes and docs into the language_model directory.