Changes between Version 1 and Version 2 of sk/synt


Ignore:
Timestamp:
Jun 19, 2013, 7:34:33 PM (11 years ago)
Author:
xmedved1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sk/synt

    v1 v2  
    1515'''The G1 meta-grammar form'''[[BR]]
    1616The meta-grammar consists of global order constraints that provide succession of given terminals. Meta-grammar contains special flags that impose partial restrictions to given non-terminals and terminals on the right side of the rule.
    17 In grammar rules are used different arrow marks (->, -->, ==>, ===>), that specify rule type. The meaning of arrow form is: "the thicker and longer the arrow the more actions are able to be done in rule translation". The '->' arrow de-notates an ordinary context free grammar transcription and '===>' inserts possible integer_segment between right hand side constituents, checks the correct order of enclitics and supplies several forms of rule to make the verb phrase into a full sentence. 
    18  
     17In grammar rules are used different arrow marks (->, -->, ==>, ===>), that specify rule type. The meaning of arrow form is: "the thicker and longer the arrow the more actions are able to be done in rule translation". The '->' arrow de-notates an ordinary context free grammar transcription and '===>' inserts possible integer_segment between right hand side constituents, checks the correct order of enclitics and supplies several forms of rule to make the verb phrase into a full sentence.[[BR]]
     18[[BR]]
    1919
     20G1 combining constructs (generates variants of given terminals and non-terminals):
     21 order()[[BR]]
     22 rhs()[[BR]]
     23 first()[[BR]]
     24'''Example'''
     25{{{
     26I will ask:  clause ===> order(VBU,R,VRI)
     27}}}
     28
     29''order()'': generates all possible permutations of its components
     30
     31''first()'' and ''rhs()'': are employed to implant content of all the right hand side of specified non-terminal to the rule. The ''rhs(N)'' inserts all possible rewritings of non-terminal N. The resulting terms are then subject to standard constraints, enclitic checking and inter-segmentation. The ''first(N)'' secure that N is firmly tried to the beginning.
     32
     33Grammar contains several generative constructs starting with %list_* expression. This constructs defining rule templates, which automatically produce new rules for a list of the given non-terminals.
     34
     35A significant portion of the grammar is made up by verb group rules, that contains frequent repetitive constructions in given verb group.
     36
     37'''Example''':
     38
     39{{{
     40%group verbP={
     41  V:     verb_rule_schema($@,"(#1)")
     42         groupflag($1,"head"),
     43  VR R:  verb_rule_schema($@,"(#1 #2)")
     44         groupflag($1,"head"),
     45}
     46/* ctu/ptam se - I am reading/I am asking */
     47  clause ====> order(group(verbP), vi_list)
     48  verb_rule_schema($@,"#2")
     49  depends(getgroupflag($1,"head"), $2)
     50}}}
     51