diff --git a/UD_any/tagparser_incr/machine.rm b/UD_any/tagparser_incr/machine.rm new file mode 100644 index 0000000000000000000000000000000000000000..df06a7c21007216ff4e509baa46d8d975023d2eb --- /dev/null +++ b/UD_any/tagparser_incr/machine.rm @@ -0,0 +1,30 @@ +Name : Tagger, Feats , Parser and Segmenter incremental Machine +Classifier : tagparser +{ + Transitions : {tagger,data/tagger.ts morpho,data/morpho_parts.ts parser,data/parser.ts segmenter,data/segmenter.ts} + Network type : Modular + StateName : States{tagger morpho parser segmenter} Out{128} + Context : Buffer{-3 -2 -1 0 1 2} Stack{} Columns{FORM UPOS} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{ID} NbElem{1} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{FORM} NbElem{10} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{FEATS} NbElem{10} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{EOS} NbElem{1} Buffer{-1} Stack{} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{DEPREL} NbElem{1} Buffer{} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} + DepthLayerTree : Columns{DEPREL} Buffer{} Stack{2 1 0} LayerSizes{3} GRU{1 1 0.0 1} In{64} Out{128} + InputDropout : 0.3 + MLP : {2048 0.3} + End + Optimizer : Adam {0.0002 0.9 0.999 0.00000001 0.00001 true} +} +Predictions : UPOS FEATS HEAD DEPREL EOS +Strategy +{ + Block : End{cannotMove} + tagger morpho * 0 + morpho parser NOTHING 0 + morpho morpho * 0 + parser segmenter SHIFT 0 + parser segmenter RIGHT 0 + parser parser * 0 + segmenter tagger * 1 +} diff --git a/UD_any/tagparser_seq/machine.rm b/UD_any/tagparser_seq/machine.rm index 9efe1927d6b2986f5ef41e7da50e55c64c8803d1..efd6fef7b51de6323ebbd53cb20bb249ac07d3a1 100644 --- a/UD_any/tagparser_seq/machine.rm +++ b/UD_any/tagparser_seq/machine.rm @@ -8,7 +8,7 @@ Classifier : tagparser Focused : Column{ID} NbElem{1} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} Focused : Column{FORM} NbElem{10} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} Focused : Column{FEATS} NbElem{10} Buffer{-1 0 1 2} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} - Focused : Column{EOS} NbElem{1} Buffer{-1} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} + Focused : Column{EOS} NbElem{1} Buffer{-1} Stack{} GRU{1 1 0 1} In{64} Out{128} Focused : Column{DEPREL} NbElem{1} Buffer{} Stack{2 1 0} GRU{1 1 0 1} In{64} Out{128} DepthLayerTree : Columns{DEPREL} Buffer{} Stack{2 1 0} LayerSizes{3} GRU{1 1 0.0 1} In{64} Out{128} InputDropout : 0.3