Yasmet format

From Apertium
Revision as of 08:29, 18 December 2014 by Unhammer (talk | contribs) (stuff)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

http://www-i6.informatik.rwth-aachen.de/web/Software/YASMET.html

<spectre> 2
<spectre> 0 #  1:0 # 1:1
<spectre> 0 #  2:0 3:0 4:0 # 2:1 3:1 4:1
<spectre> 1 # 5:0 3:0 6:0 # 5:1 3:1 6:1
<spectre>  
<spectre> 2 = number of possible analyses of "this"
<spectre>  
<stan98> but there are 3? No?
<spectre> analysis_id # feature_id:analysis_id # feature_id:analysis_id
<spectre> there are three events
<spectre> but only two analyses: this<det><dem><sg> and this<prn><tn><mf><sg>
<spectre> this<det><dem><sg> = 0
<spectre> this<prn><tn><mf><sg> = 1

<spectre> 1:0 = (1, "pos", "<adj>"):this<det><dem><sg>
<spectre> 1:1 = (1, "pos", "<adj>"):this<prn><tn><mf><sg>
Output                | Input        | Features
--------------------------------------------------------------------------------------------------------
this<det><dem><sg>    |  this        | (1, "pos", "<adj>")
this<det><dem><sg>    |  this        | (1, "pos", "<n>") (-1, "pos", "<BOS>") (2, "pos", "<adv>")
this<prn><tn><mf><sg> |  this        | (1, "pos", "<vblex>") (-1, "pos", "<BOS>") (2, "pos", "<pr>")


corresponds to the following format supported by YASMET:

input.yasmet:

2

0 #  1:0 # 1:1

0 #  2:0 3:0 4:0 # 2:1 3:1 4:1

1 # 5:0 3:0 6:0 # 5:1 3:1 6:1

 

input.features:

1   (1, "pos", "<adj>")

2   (1, "pos", "<n>")

3   (-1, "pos", "<BOS>")

4   (2, "pos", "<adv>")

5   (1, "pos", "<vblex>")

6   (2, "pos", "<pr>")