First wiki page

master
Coet 7 years ago
commit
42a10ceda5
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      How-to-train-a-model?.md

+ 8
- 0
How-to-train-a-model?.md

@@ -0,0 +1,8 @@
1. Define a model, which is initialized with `args`.
[example](https://github.com/fastnlp/fastNLP/blob/743a6d75474fa393bc849c0392317c2c6bd868e4/fastNLP/models/sequence_modeling.py#L12)

2. Set model parameters in the config file. The parameters you set will be packed as `args` and used in model initialization.
[example](https://github.com/fastnlp/fastNLP/blob/743a6d75474fa393bc849c0392317c2c6bd868e4/reproduction/chinese_word_seg/cws.cfg#L1)

3. Write a script to use Trainer.
[example](https://github.com/fastnlp/fastNLP/blob/743a6d75474fa393bc849c0392317c2c6bd868e4/reproduction/chinese_word_seg/cws_train.py#L51)

Loading…
Cancel
Save