diff options
author | Patrick Simianer <p@simianer.de> | 2016-07-05 11:01:46 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-07-05 11:01:46 +0200 |
commit | 2b1d7f881c19c4d4b5afae194e02d3300c7675d0 (patch) | |
tree | 5a06ee7de98640a39244b57bb369697176b44ebf /test/cdec-hg-to-json | |
parent | 69949dda35c3ea21d8e926e5f0a596a0a0f61c6a (diff) |
mv
Diffstat (limited to 'test/cdec-hg-to-json')
-rw-r--r-- | test/cdec-hg-to-json/cdec.ini | 5 | ||||
-rw-r--r-- | test/cdec-hg-to-json/grammar.gz | bin | 0 -> 1399915 bytes | |||
-rw-r--r-- | test/cdec-hg-to-json/hg.json.gz | bin | 0 -> 318029 bytes | |||
-rw-r--r-- | test/cdec-hg-to-json/hg.meta | 7 | ||||
-rw-r--r-- | test/cdec-hg-to-json/in | 1 | ||||
-rw-r--r-- | test/cdec-hg-to-json/toy.cdec.ini | 2 | ||||
-rw-r--r-- | test/cdec-hg-to-json/toy.grammar | 12 | ||||
-rw-r--r-- | test/cdec-hg-to-json/toy.in | 1 | ||||
-rw-r--r-- | test/cdec-hg-to-json/toy.weights | 3 | ||||
-rw-r--r-- | test/cdec-hg-to-json/weights | 17 |
10 files changed, 48 insertions, 0 deletions
diff --git a/test/cdec-hg-to-json/cdec.ini b/test/cdec-hg-to-json/cdec.ini new file mode 100644 index 0000000..1ad25b5 --- /dev/null +++ b/test/cdec-hg-to-json/cdec.ini @@ -0,0 +1,5 @@ +formalism=scfg +grammar=test/hg2json/grammar.gz +add_pass_through_rules=true +feature_function=WordPenalty +intersection_strategy=full diff --git a/test/cdec-hg-to-json/grammar.gz b/test/cdec-hg-to-json/grammar.gz Binary files differnew file mode 100644 index 0000000..78dda98 --- /dev/null +++ b/test/cdec-hg-to-json/grammar.gz diff --git a/test/cdec-hg-to-json/hg.json.gz b/test/cdec-hg-to-json/hg.json.gz Binary files differnew file mode 100644 index 0000000..ed178c6 --- /dev/null +++ b/test/cdec-hg-to-json/hg.json.gz diff --git a/test/cdec-hg-to-json/hg.meta b/test/cdec-hg-to-json/hg.meta new file mode 100644 index 0000000..d33a54c --- /dev/null +++ b/test/cdec-hg-to-json/hg.meta @@ -0,0 +1,7 @@ +input: + 'in dem verzweifelten versuch , an der macht festzuhalten , hat pervez musharraf den rahmen der pakistanischen verfassung verlassen und den notstand ausgerufen .' +viterbi translation: + 'which labor market desperate transformed into attempting gathered by failed to show any the non - is making festzuhalten gathered by pervez musharraf meant to its borders with within than the non - have pakistan 's intelligence relied constitutional for security as a its borders with declared a state of emergency - range missiles .' +# nodes = 220 +# edges = 16640 +viterbi score = 228.95 diff --git a/test/cdec-hg-to-json/in b/test/cdec-hg-to-json/in new file mode 100644 index 0000000..7dc411d --- /dev/null +++ b/test/cdec-hg-to-json/in @@ -0,0 +1 @@ +in dem verzweifelten versuch , an der macht festzuhalten , hat pervez musharraf den rahmen der pakistanischen verfassung verlassen und den notstand ausgerufen . diff --git a/test/cdec-hg-to-json/toy.cdec.ini b/test/cdec-hg-to-json/toy.cdec.ini new file mode 100644 index 0000000..d4a2896 --- /dev/null +++ b/test/cdec-hg-to-json/toy.cdec.ini @@ -0,0 +1,2 @@ +formalism=scfg +grammar=test/hg2json/toy.grammar diff --git a/test/cdec-hg-to-json/toy.grammar b/test/cdec-hg-to-json/toy.grammar new file mode 100644 index 0000000..382c94f --- /dev/null +++ b/test/cdec-hg-to-json/toy.grammar @@ -0,0 +1,12 @@ +[S] ||| [NP,1] [VP,2] ||| [1] [2] ||| logp=0 +[NP] ||| ich ||| i ||| logp=-0.5 use_i=1.0 +[NP] ||| ein [NN,1] ||| a [1] ||| logp=0 use_a=1.0 +[NN] ||| [JJ,1] haus ||| [1] house ||| logp=0 use_house=1 +[NN] ||| [JJ,1] haus ||| [1] shell ||| logp=0 use_shell=1 +[JJ] ||| kleines ||| small ||| logp=0 use_small=1.0 +[JJ] ||| kleines ||| little ||| logp=0 use_little=1.0 +[JJ] ||| grosses ||| big ||| logp=0 +[JJ] ||| grosses ||| large ||| logp=0 +[VP] ||| [V,1] [NP,2] ||| [1] [2] ||| logp=0 +[V] ||| sah ||| saw ||| logp=-0.25 use_saw=1.0 +[V] ||| fand ||| found ||| logp=0 diff --git a/test/cdec-hg-to-json/toy.in b/test/cdec-hg-to-json/toy.in new file mode 100644 index 0000000..e6df927 --- /dev/null +++ b/test/cdec-hg-to-json/toy.in @@ -0,0 +1 @@ +ich sah ein kleines haus diff --git a/test/cdec-hg-to-json/toy.weights b/test/cdec-hg-to-json/toy.weights new file mode 100644 index 0000000..70075b7 --- /dev/null +++ b/test/cdec-hg-to-json/toy.weights @@ -0,0 +1,3 @@ +logp 2 +use_house 0 +use_shell 1 diff --git a/test/cdec-hg-to-json/weights b/test/cdec-hg-to-json/weights new file mode 100644 index 0000000..7f96f1d --- /dev/null +++ b/test/cdec-hg-to-json/weights @@ -0,0 +1,17 @@ +PhraseModel_0 1.0 +PhraseModel_1 1.0 +PhraseModel_2 1.0 +PhraseModel_3 1.0 +PhraseModel_4 1.0 +PhraseModel_5 1.0 +PhraseModel_6 1.0 +PassThrough -1.0 +PassThrough_1 -1.0 +PassThrough_2 -1.0 +PassThrough_3 -1.0 +PassThrough_4 -1.0 +PassThrough_5 -1.0 +PassThrough_6 -1.0 +Glue 0.1 +LanguageModel 10.0 +LanguageModel_OOV -10 |