From 4e1ca0d136c2df34fa6b19a93b4fa31e9379efc3 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Mon, 18 May 2020 14:40:32 +0200 Subject: [PATCH] updated tagger --- UD_any/tagger/machine.rm | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/UD_any/tagger/machine.rm b/UD_any/tagger/machine.rm index 8cb8286..9c21235 100644 --- a/UD_any/tagger/machine.rm +++ b/UD_any/tagger/machine.rm @@ -2,15 +2,21 @@ Name : Tagger Machine Classifier : tagger { Transitions : {tagger,data/tagger.ts} + LossMultiplier : {} Network type : Modular - Context : Buffer{-3 -2 -1 0 1 2} Stack{} Columns{FORM UPOS} GRU{1 3 0.1 0} In{128} Out{512} - Focused : Column{ID} NbElem{1} Buffer{-1 0} Stack{} GRU{1 3 0.1 1} In{128} Out{256} - Focused : Column{FORM} NbElem{10} Buffer{-1 0} Stack{} GRU{1 3 0.1 1} In{128} Out{256} - InputDropout : 0.3 - MLP : {2048 0.3} + Context : Buffer{-3 -2 -1 0 1 2} Stack{} Columns{FORM} LSTM{1 1 0 1} In{64} Out{64} + Context : Buffer{-3 -2 -1} Stack{} Columns{UPOS} LSTM{1 1 0 1} In{64} Out{64} + Focused : Column{ID} NbElem{1} Buffer{-1 0 1 2} Stack{} LSTM{1 1 0 1} In{64} Out{64} + Focused : Column{FORM} NbElem{13} Buffer{-1 0 1 2} Stack{} LSTM{1 1 0 1} In{64} Out{64} + Focused : Column{EOS} NbElem{1} Buffer{-1} Stack{} LSTM{1 1 0 1} In{64} Out{64} + InputDropout : 0.5 + MLP : {2048 0.3 2048 0.3} End - Optimizer : Adam {0.0005 0.9 0.999 0.00000001 0.00001 true} + Optimizer : Adam {0.0002 0.9 0.999 0.00000001 0.00001 true} } Predictions : UPOS -Strategy : sequential - tagger tagger 1 +Strategy +{ + Block : End{cannotMove} + tagger tagger * 1 +} -- GitLab