D-rule

From UNL Wiki
(Difference between revisions)
Jump to: navigation, search
Martins (Talk | contribs)
(New page: == D-rules == D-rules are always composed of two fields, which are separated by "=". They are always ended by a ";". <DEFINIENDUM> = <DEFINIENS>; Where:<br /> *<DEFINIENDUM>, the term to ...)
Newer edit →

Revision as of 17:22, 26 March 2010

D-rules

D-rules are always composed of two fields, which are separated by "=". They are always ended by a ";".

<DEFINIENDUM> = <DEFINIENS>;

Where:

  • <DEFINIENDUM>, the term to be defined, may be:
    • an attribute or a value of an attribute, of UNL (@pl, @male, @future) or of NL (POS, NOU, GEN, MCL, etc);
    • a node, to be represented as a "string" (between parentheses) or as a [lemma] (between square brackets);
    • a relation, either syntactic or semantic (such as "agt", "obj", "VS", "XP"), with the corresponding constituents; or
    • a sequence of attributes, nodes and relations.
  • <DEFINIENS>, the definition, may be:
    • an attribute or a value of an attribute, of UNL (@pl, @male, @future) or of NL (POS, NOU, GEN, MCL, etc);
    • a node, to be represented as a "string" (between parentheses) or as a [lemma] (between square brackets);
    • a relation, either syntactic or semantic (such as "agt", "obj", "VS", "XP"), with the corresponding constituents;
    • a sequence of attributes, nodes and relations; or
    • a numeric value indicating the degree of certainty, ranging from 0 (=impossible) to 255 (=necessary).

Syntax

Rules are always composed of two fields: a condition and an action, which are separated by ":=". Rules must always be ended by a ";".

CONDITION := ACTION;

The CONDITION and the ACTION fields may be expressed as follows:

  • by a constant, between "quotes"; (such as "I", "am", "s", "into account");
  • by a lemma, between [brackets]; (such as [be], [have]);
  • by a feature, extracted from the UNDL Foundation tagset; (such as BLK, PLR, MTW, VA).

The CONDITION and the ACTION fields may be either simple or complex. Complex actions and conditions must be separated by ",":

SINGLE CONDITION := SINGLE ACTION;
CONDITION#1,CONDITION#2, ..., CONDITION#n := SINGLE ACTION;
CONDITION := ACTION#1, ACTION#2, ..., ACTION#n;
CONDITION#1,CONDITION#2, ..., CONDITION#n := ACTION#1, ACTION#2, ..., ACTION#n;

Special symbols and notation apply in each case. For further information, see Ph-rules, A-rules or S-rules.

Software