Changes between Version 2 and Version 3 of sk/synt


Ignore:
Timestamp:
Jun 19, 2013, 9:47:11 PM (11 years ago)
Author:
xmedved1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sk/synt

    v2 v3  
    1919
    2020G1 combining constructs (generates variants of given terminals and non-terminals):
    21  order()[[BR]]
    22  rhs()[[BR]]
    23  first()[[BR]]
     21 order()[[BR]]
     22 rhs()[[BR]]
     23 first()[[BR]]
    2424'''Example'''
    2525{{{
     
    3535A significant portion of the grammar is made up by verb group rules, that contains frequent repetitive constructions in given verb group.
    3636
    37 '''Example''':
     37'''Example:'''
    3838
    3939{{{
     
    5050}}}
    5151
     52Here, the group verbP denotes two sets of non-terminals with the corresponding actions that are substituted for the expression group(verbP) on the RHS of the clause non-terminal.
     53
     54''flag(any string)'': refer to veerb group members in rules
     55''verb_rule_schema'':
     56 • defines the port of verb group that form a verbal object in successive logical analysis[[BR]]
     57 • appears in group and rule right hand side
     58''%marge_actions={verb_rule_schema}'': gather and merge arguments of actions from verb_rule_schema into one resulting actiont
     59
     60rule levels: express the occurrence of grammatical phenomena. The higher the level, the less frequent the appropriate grammaticalphenomena is.
     61
     62'''Example:'''
     63
     64{{{
     653: np -> adj_group
     66   propagate_case_number_gender($1)
     67}}}
     68
     69Rule is of level 3. When we turn the grammar level to at least 3, we allow adjective groups to form a separate intersegment.
     70
     71''head()'' and ''depends()'': allow to express the dependency links between rule items. For example depends(A,B,C) means that B and C depends on A.
     72
     73
     74== Second grammar form ==
     75As we have mentioned earlier, several pre-defined grammatical tests and procedures are used in the description of context actions associated with each grammatical rule of the system.
     76
     77The pruning actions include:
     78 • grammatical case test for particular words and noun groups
     79 • agreement test of case in prepositional construction
     80 • agreement test of number and gender for relative pronouns
     81 • agreement test of case, number and gender for noun groups
     82 • type checking of logical constructions
     83
     84'''Example:'''
     85
     86{{{
     87np -> adj_group np
     88      rule_schema($@, "lwtx(awtx(#1) and awtx(#2))")
     89      rule_schema($@, "lwtx([[awt(#1),#2],x])")
     90}}}
     91
     92The rule schema action presents a prescription for building a logical construction out of the sub-constructions from the right hand side.
     93''propagate_all'' and ''agree_*_and_propagate'': compute and propagate all relevant grammatical information from the selected non-terminals on the right hand side to the one on the left hand side of the rule.
     94
     95
     96== The Expanded Grammar Form (G3) ==
     97
     98Transform G2 form with the contextual actions into the rules.
     99
     100[[Image(http://www.fi.muni.cz/~xmedved1/synt.jpg)]]