summaryrefslogtreecommitdiff
path: root/training/conf/model/lit_transformer.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'training/conf/model/lit_transformer.yaml')
-rw-r--r--training/conf/model/lit_transformer.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/training/conf/model/lit_transformer.yaml b/training/conf/model/lit_transformer.yaml
index 4e04b85..5341d8e 100644
--- a/training/conf/model/lit_transformer.yaml
+++ b/training/conf/model/lit_transformer.yaml
@@ -1,4 +1,10 @@
+defaults:
+ - mapping: word_piece
+
_target_: text_recognizer.models.transformer.TransformerLitModel
interval: null
monitor: val/loss
-ignore_tokens: ["<s>", "<e>", "<p>"]
+ignore_tokens: [ <s>, <e>, <p> ]
+start_token: <s>
+end_token: <e>
+pad_token: <p>