Commit 82067dbd authored by Bruno Guillaume's avatar Bruno Guillaume
Browse files

Update AMR snippets

parent 22fbf5ec
......@@ -4,6 +4,6 @@
% * One node "A" linked to "N" by the relation "ARG1"
pattern {
N [label = "go-on-15"];
N [concept = "go-on-15"];
N -[ARG1]-> A;
}
......@@ -5,7 +5,7 @@
% See next snippet for a better solution
pattern {
N [label = "go-on-15"];
N [concept = "go-on-15"];
}
without {
N -[ARG1]-> A;
......
% See previous snippet for an explanation of the pattern.
pattern {
N [label = "go-on-15"];
N [concept = "go-on-15"];
}
without {
N -[ARG1]-> A;
......
% In AMR structures, all nodes have a feature named "label".
% For nodes that refer to concepts the value of the "label" feature has a numeral suffix "-xx" (ex: "go-on-15")
% Note that most concept nodes refers to PropBank frame.
% These nodes are drawn has rectangle and can be clicked to show the correponding frame.
% In Grew AMR structures, all nodes have a feature named "concept".
% For nodes refering to a PropBank frame the value of the "concept" feature has a numeral suffix "-xx" (ex: "go-on-15")
pattern { N [label = "go-on-15"]; }
pattern { N [concept = "go-on-15"]; }
% In AMR structures, all nodes have a feature named "label".
% For nodes which are not concepts, the "label" feature is a constant (ex: "year")
% In Grew AMR structures, all nodes have a feature named "concept".
% For constant nodes, we still used the "concept" feature name (ex: "year")
pattern { N [label = "year"]; }
pattern { N [concept = "year"]; }
% If you want to know more about pattern syntax, please refer to the Tuorial available on UD structures.
% For instance, it is possible to seach for a label following a regular.
% If you want to know more about pattern syntax, please refer to the Tutorial available on UD structures.
% For instance, it is possible to seach for a concept following a regular.
% This pattern searches for all concepts starting with the prefix "take-"
pattern { N []; N.label = re"take-.*"; }
pattern { N []; N.concept = re"take-.*"; }
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