Skip to content

Commit

Permalink
Add transformer example
Browse files Browse the repository at this point in the history
  • Loading branch information
tma15 committed Nov 29, 2020
1 parent f3aecda commit 0c375a1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions example/livedoor_corpus/settings/transformer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
preprocess:
data:
train: train.csv
dev: dev.csv
test: test.csv

bin_dir: models/transformer-model

tokenizer:
type: auto
args:
from_pretrained: cl-tohoku/bert-base-japanese

classifier:
- type: sequence
- type: transformer
args:
from_pretrained: cl-tohoku/bert-base-japanese
optimizer: adamw
lr: 3e-5
max_epochs: 3
weight_decay: 0.01

0 comments on commit 0c375a1

Please sign in to comment.