Changes between Version 22 and Version 23 of Semantics

Show
Ignore:
Author:
johan (IP: 78.13.87.99)
Timestamp:
04/17/08 21:22:55 (2 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Semantics

    v22 v23  
    1 = Semantics
     1= Boxer Output
    22 
    33 * Syntax of Discourse Representation Structures ([wiki:DRSs]) 
    4  * Syntax of Segmented Discourse Representation Structures (SDRSs
    5  * Syntax of First-Order Logic (FOL
     4 * Syntax of Segmented Discourse Representation Structures ([wiki:SDRSs]
     5 * Syntax of First-Order Logic ([wiki:FOL]
    66 
    7 = Syntax of Discourse Representation Structures (DRSs) = 
    8  
    9 The Prolog syntax of DRSs is defined below in BNF. 
    10 There are basic and complex DRSs: 
    11  
    12 {{{ 
    13 <drs> ::= <basic-drs> | 
    14           <complex-drs>  
    15 }}} 
    16  
    17 A basic DRS comprises a set of discourse referents and 
    18 a set of DRS-conditions. Note that all discourse referents and DRS-conditions are prefixed by a 
    19 list of indices that refer to word positions.  
    20  
    21 {{{ 
    22 <basic-drs> ::= drs(<referents>,<conditions>) 
    23  
    24 <referents> ::= [] | 
    25                 [<indices>:<referent>{,<indices>:referent>}] 
    26  
    27 <conditions> ::= [] | 
    28                  [<indices>:<condition>{,<indices>:condition>}] 
    29  
    30 <indices> ::= [] | 
    31               [<number>{,<number>}] 
    32  
    33 <referent> ::= <prolog-atom> | 
    34                <prolog-variable> 
    35 }}} 
    36  
    37 Complex DRSs are constructed with the merge 
    38 (conjoining two DRSs), the sentence-merge (conjoining two DRSs denoting sentences)  
    39 or with alfa (representing anaphoric or presuppositional information).  
    40  
    41 {{{ 
    42 <complex-drs> ::= merge(<drs>,<drs>) | 
    43                   smerge(<drs>,<drs>) | 
    44                   alfa(<alfa-type>,<drs>,<drs>) 
    45 }}} 
    46  
    47 The alfa-type specifies the kind of anaphoric information: anaphoric pronoun, definite description, 
    48 proper name, reflexive pronoun, or deictic pronoun. 
    49  
    50 {{{ 
    51 <alfa-type> ::= pro | 
    52                 def | 
    53                 nam | 
    54                 ref | 
    55                 dei 
    56 }}} 
    57  
    58  
    59 There are basic and complex DRS-conditions: 
    60  
    61 {{{ 
    62 <condition> :: = <basic-condition> | 
    63                  <complex-condition> 
    64 }}} 
    65  
    66 The basic conditions are one-place properties (predicates), two-place properties (relations), 
    67 named entities, time-expression, cardinal expressions, or equality: 
    68  
    69 {{{ 
    70 <basic-condition> ::= pred(<referent>,<symbol>,<pos-type>,<sense>) | 
    71                       rel(<referent>,<referent>,<symbol>,<sense>) | 
    72                       named(<referent>,<symbol>,<ne-type>,<sense>) | 
    73                       timex(<referent>,<time-expression>) | 
    74                       card(<referent>,<number>,<cardinality-type> |                    
    75                       eq(<referent>,<referent>) 
    76 }}} 
    77  
    78 The part of speech type gives more information on the kind of predicate: noun, verb, or  
    79 adjective/adverb. Note that predicates with the same symbol but with different part of speech type are 
    80 considered to be different predicates. 
    81  
    82 {{{ 
    83 <pos-type> ::= n |  
    84                v | 
    85                a 
    86 }}} 
    87  
    88 The sense is denoted by a positive integer (for instance a WordNet sense) or by 0 if  
    89 the sense is unknown: 
    90  
    91  
    92 {{{ 
    93 <sense> ::= 0 | 1 | 2 | ... 
    94 }}} 
    95  
    96 Named entity types comprise organsiation, person, title, quoted, location, first name, surname, url, email, or just name when unknown: 
    97  
    98 {{{ 
    99 <ne-type> ::= org |  
    100               per |  
    101               ttl |   
    102               quo |  
    103               loc |  
    104               fst |  
    105               sur |  
    106               url | 
    107               ema | 
    108               nam 
    109 }}} 
    110  
    111 The cardinality type is equal, less or equal, or greater or equal. 
    112  
    113 {{{ 
    114 <card-type> ::= eq | 
    115                 le | 
    116                 ge  
    117 }}} 
    118  
    119 Time expressions follow more or less the syntax of TimeML. 
    120  
    121 {{{ 
    122 <time-expression> ::= date(<indices>:<pol>,<indices>:<year>,<indices>:<month>,<indices>:<day>) | 
    123                       time(<indices>:<hour>,<indices>:<minute>,<indices>:<second>) 
    124  
    125 <pol> ::= + | - 
    126  
    127 <year> ::= '0001' | '0002' | ... | '9999' 
    128  
    129 <month> ::= '01' | '02' | ... | '12' 
    130  
    131 <day> ::= '01' | '02' | ... | '07' 
    132  
    133 <hour> ::= '00' | '01' | ... | '23' 
    134  
    135 <minute> ::= '00' | '01' | ... | '59' 
    136  
    137 <second> ::= '00' | '01' | ... | '59' 
    138 }}} 
    139  
    140 The complex DRS-conditions express disjunction, implication, negation, a question, or  
    141 a propositional attitude: 
    142  
    143 {{{ 
    144 <complex-condition> ::= or(<drs>,<drs>) | 
    145                         imp(<drs>,<drs>) | 
    146                         not(<drs>) | 
    147                         whq(<answer-type>,<drs>,<referent>,<drs>) | 
    148                         prop(<refererent>,<drs>) 
    149 }}} 
    150  
    151  
    152 == Example == 
    153  
    154 As an example, consider the DRS for ''Every man loves Mia''. 
    155  
    156 {{{ 
    157 drs([[4]:Y], 
    158     [[4]:named(Y,mia,per,0), 
    159      [1]:imp(drs([[1]:X], 
    160                  [[2]:pred(X,man,n,1)]), 
    161              drs([[3]:E], 
    162                  [[3]:pred(E,love,v,0), 
    163                   [3]:rel(E,X,agent,0), 
    164                   [3]:rel(E,Y,patient,0)]))]) 
    165 }}} 
    166  
    167 == Fixed Symbols == 
    168  
    169 There is a set of fixed symbols used in basic DRS conditions. One-place predicates: 
    170  
    171  * topic,a,1 (elliptical noun phrases) 
    172  * thing,n,12 (used in NP quantifiers: 'something', etc.) 
    173  * person,n,1 (used in first-person pronouns, 'who'-questions) 
    174  * event,n,1 (introduced by main verbs) 
    175  * group,n,1 (used for plural descriptions) 
    176  * reason,n,2 (used in 'why'-questions) 
    177  * manner,n,2 (used in 'how'-questions) 
    178  * proposition,n,1 (arguments of propositional complement verbs) 
    179  * unit_of_time,n,1 (used in 'when'-questions) 
    180  * location,n,1 (used in 'there' insertion, 'where'-questions) 
    181  * quantity,n,1 (used in 'how many') 
    182  * amount,n,3 (used in 'how much') 
    183  * degree,n,1 
    184  * age,n,1 
    185  * neuter,a,0 (used in third-person pronouns: it, its) 
    186  * male,a,0 (used in third-person pronouns: he, his, him) 
    187  * female,a,0 (used in third-person pronouns: she, her) 
    188  * base,v,2 
    189  * bear,v,2 
    190  
    191 Two-place relations: 
    192  
    193  * rel,0 (general, underspecified type of relation) 
    194  * loc_rel,0 (locative relation) 
    195  * role,0 (underspecified role: agent,patient,theme) 
    196  * member,0 (used for plural descriptions) 
    197  * agent,0 (subject) 
    198  * theme,0 (indirect object) 
    199  * patient,0 (semantic object, subject of passive verbs)