Commit 6fc6a27c authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

update tests

parent efaabee2
# global.columns = ID FORM LEMMA UPOS XPOS FEATS HEAD DEPREL DEPS MISC
1 W1 _ _ _ _ _ _ _ _
2 W2 _ _ _ _ _ _ _ _
3 W3 _ _ _ _ 1 x:y _ _
# global.columns = ID FORM LEMMA UPOS XPOS FEATS HEAD DEPREL DEPS MISC
1 W1 _ _ _ _ _ _ _ _
2 W2 _ _ _ _ 1 x _ _
3 W3 _ _ _ _ _ _ _ _
# global.columns = ID FORM LEMMA UPOS XPOS FEATS HEAD DEPREL DEPS MISC
1 W1 _ _ _ _ _ _ _ _
2 W2 _ _ _ _ _ _ _ _
3 W3 _ _ _ _ 1 x:y _ _
{
"nodes": { "0": "W1", "1": "W2", "2": "W3" },
"edges": [ { "src": "0", "label": { "1": "x", "2": "y" }, "tar": "2" } ],
"order": [ "0", "1", "2" ]
}
{
"nodes": {
"1": "W1",
"2": "W2",
"3": "W3"
},
"edges": [ { "src": "1", "label": "x", "tar": "2" } ],
"order": [ "1", "2", "3"]
}
......@@ -5,4 +5,4 @@ sys.path.append(os.getcwd() + '/../..')
from utils import *
print ("--------------- manipulate_modified_edge ---------------")
success('grew_dev transform -grs code.grs -config sud -quiet -i 01_input.conll', '01_expected.conll')
success('grew_dev transform -grs code.grs -config sud -quiet -i input.json -json', 'expected.json')
MESSAGE : More than 10000 rewriting steps: check for loops or increase max_rules value. Last rules are: […r1, r1, r1, r1, r1, r1, r1, r1, r1, r1]
MESSAGE : More than 10000 rewriting steps: check for loops or increase max_rules value. Last rules are: […r1, r1, r1, r1, r1, r1, r1, r1, r1, r1]
MESSAGE : [file: code.grs, line: 3] ADD_EDGE: the edge 'Y' already exists
{
"nodes": { "1": "B", "0": "A" },
"nodes": { "0": "A", "1": "B" },
"edges": [
{ "src": "0", "label": "Y", "tar": "1" },
{ "src": "0", "label": "X", "tar": "1" }
......
{
"nodes": { "1": "B", "0": "AA" },
"nodes": { "0": "AA", "1": "B" },
"edges": [
{ "src": "0", "label": "Y", "tar": "1" },
{ "src": "0", "label": "X", "tar": "1" }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment