Quick links: top — add, add-ne — replace — delete — move — undo, redo — load, save — check — template activation — FAQ — QuickRef — Release Notes
top | ||
Pre-command state | Command | Comment |
---|---|---|
top <concept> | Add a new top level AMR with concept concept | |
empty AMR | top say | Add top level AMR with concept say |
(s / say) | top kill | Add another top level AMR with concept kill |
top <variable> | Move an existing sub-AMR to the top. | |
add, add-ne | ||
Pre-command state | Command | Comment |
<head-variable> <role> <arg> | Under head-variable, add an argument arg with role | |
<head-variable> <role> <ne-type> <name> | Under head-variable, add a named entity of type ne-type with role and name | |
(k / kill) | k :ARG0 man | |
(k / kill :ARG0 (m / man)) |
m :age 24 | |
(k / kill :ARG0 (m / man :age 24)) |
k :ARG1 person John F. Kennedy | Short-cut to add named entity resulting in complex sub-structure. |
(k / kill :ARG0 (m / man :age 24) |
p :name name John F. Kennedy or p :name John F. Kennedy |
Short-cut to add a name when its head-concept/type already exists. Both commands on the left do the same thing. |
(i / insist) | i :ARG0 concept.i | To express "I insist", prefix concept by concept. to identify it as a concept (as opposed to the variable i). |
(i / insist) | i :ARG0 !I | An alternative prefix is !. It also overwrites any rules on what a concept must look like (such as capitalization). |
replace Generally easier to use template-based method for changing things. | ||
Pre-command state | Command | Comment |
arg can be a variable, concept, or a string (incl. numbers) | ||
|
replace concept at k with murder | Replaces kill with murder |
replace string at m :age with 24 | Replaces 42 with 24 | |
replace role at k :ARG0 m with :agent | Replaces :ARG0 with :agent | |
replace concept | ||
replace role | ||
replace string (incl. numbers) | ||
replace (secondary) variable | ||
delete generally easier to use template-based method for deleting things | ||
Pre-command state | Command | Comment |
delete top level <variable> | ||
delete <head-variable> <role> <arg> | arg can be a variable, concept, or a string (incl. numbers) | |
delete amr | Delete entire AMR including its props. Alternatives: delete all, del all, del amr |
|
delete dummies | Delete any top-level dummy-element(s). Alternatives: delete dummy, dd |
|
(k / kill :ARG0 (m / man :age 24)) |
delete m :age 24 | Deletes :age 24 |
|
delete top level k | Deletes the entire AMR for (k / kill :ARG0 (m / man)). |
|
delete (sub-) AMR | |
move | ||
Pre-command state | Command | Comment |
move <variable> to <head-variable> [<role>] | Can move entire trees. | |
move <variable> to top | Move a tree to the top level. | |
(k / kill :ARG0 (m / man)) (s / say |
move k to s :ARG1 or s :ARG1 k- |
The killing becomes the :ARG1 (topic) of the saying. The alternative is based on the add-command s :ARG1 k plus the minus-sign (-) to specify that "k" should be moved to this place (removing it from its original position). |
top m | Move "m" to the top level. Same as move m to top | |
undo, redo | ||
Pre-command state | Command | Comment |
undo | Undo last operation. | |
u | Shortcut for undo. | |
redo | Redo last undo operation. |
Templates can be invoked in two ways:
Template Activation