Skip to content
Snippets Groups Projects
Commit 3e1ff307 authored by Franck Dary's avatar Franck Dary
Browse files

added script to save machine descriptions

parent 9071eb15
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ Classifier : tokemorpho ...@@ -3,7 +3,7 @@ Classifier : tokemorpho
{ {
Transitions : {data/tokenizer.ts data/tagger.ts data/morpho_parts.ts} Transitions : {data/tokenizer.ts data/tagger.ts data/morpho_parts.ts}
Network type : LSTM Network type : LSTM
Unknown value threshold : -1 Unknown value threshold : 1
Buffer context : {-3 -2 -1} Buffer context : {-3 -2 -1}
Stack context : {} Stack context : {}
Columns : {FORM UPOS} Columns : {FORM UPOS}
...@@ -13,15 +13,24 @@ Classifier : tokemorpho ...@@ -13,15 +13,24 @@ Classifier : tokemorpho
Max nb elements : {1 10 10} Max nb elements : {1 10 10}
Raw input left window : 5 Raw input left window : 5
Raw input right window : 5 Raw input right window : 5
Embeddings size : 256 Embeddings size : 64
MLP : {8192 0.3} MLP : {2048 0.3}
Context LSTM size : 1024 Context LSTM size : 1024
Focused LSTM size : 256 Focused LSTM size : 256
Rawinput LSTM size : 32 Rawinput LSTM size : 16
Split trans LSTM size : 256 Split trans LSTM size : 128
Num layers : 2 Num layers : 3
BiLSTM : true BiLSTM : true
LSTM dropout : 0.3 LSTM dropout : 0.1
Total input dropout : 0.3
Embeddings dropout : 0.3
Dropout 2d : false
Tree embedding columns : {}
Tree embedding buffer : {}
Tree embedding stack : {}
Tree embedding nb : {}
Tree embedding size : 0
Optimizer : Adam {0.0005 0.9 0.999 0.00000001 0.00001 true}
} }
Splitwords : data/splitwords.ts Splitwords : data/splitwords.ts
Predictions : ID FORM UPOS FEATS EOS Predictions : ID FORM UPOS FEATS EOS
......
#! /usr/bin/python3
import sys
import os
import glob
import shutil
def printUsageAndExit() :
print("USAGE : %s bin dest"%sys.argv[0], file=sys.stderr)
exit(1)
if __name__ == "__main__" :
if len(sys.argv) != 3 :
printUsageAndExit()
for filename in glob.iglob(sys.argv[1]+"/**", recursive=True) :
if os.path.splitext(filename)[1] == ".rm" :
shutil.copy(filename, sys.argv[2]+"/"+filename.split('/')[-2]+".rm")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment