Changes between Initial Version and Version 1 of Action


Ignore:
Timestamp:
Mar 16, 2009, 1:44:06 AM (15 years ago)
Author:
Miloš Jakubíček
Comment:

actions description

Legend:

Unmodified
Added
Removed
Modified
  • Action

    v1 v1  
     1= Action =
     2
     3An action (or action list) follows the template specification in the rule.[[BR]]
     4An action is basically a function taking arbitrary number of arguments named accordingly to the token indices, starting with 0.
     5
     6Currently, there are following actions implemented:
     7
     8 * {{{MARK}}}[[BR]]
     9   This action is used for marking a token segment. It is used in two cases:
     10   * Adding a phrasal element: in this case, the last argument must be the name of the new phrase.[[BR]]
     11     Example: {{{MARK 0 2 4 <coord>}}} -- marks a coordination on tokens with indices 0, 2 and 4.
     12   * Marking a single element: in this case, this element is then assigned a dependency using the {{{DEP}}} action (see below).
     13 
     14 * {{{AGREE}}}[[BR]]
     15   This action is used for testing grammatical agreement. It takes 3 arguments, the first two are the token indices, the third describes the morphological tags to be tested - {{{g}}} for the gender, {{{n}}} for the number and {{{c}}} for the case.[[BR]]
     16   Example: {{{AGREE 0 2 gnc}}} -- tests a case-number-gender agreement on tokens with indices 0 and 2.
     17
     18 * {{{DEP}}}[[BR]]
     19   This action marks a dependency on a result of the {{{MARK}}} action. It takes a single argument describing the token index to depend on.
     20
     21 * {{{PROB}}}[[BR]]
     22   This action assigns a probability ranking to the rule. It takes a single argument -- the probability.
     23
     24 * {{{HEAD}}}[[BR]]
     25   This action marks the head of a phrasal element created by the {{{MARK}}} action. It takes a single argument -- the token index to be marked as the head.
     26
     27 * {{{IMPORTANT}}}[[BR]]
     28   This action marks an arbitrary number of token indices (which are taken as arguments) as "important" which can be used for further ranking.