Enju XML Format

Table of Contents

  1. Introduction
  2. Nouns
  3. Determiners
  4. Verbs
  5. Auxiliaries
  6. Prepositions and Particles
  7. Adjectives
  8. Adverbs
  9. Copulas
  10. Relative Clauses
  11. Connectives
  12. Interrogatives
  13. Constructions of Interest
  14. Punctuations
  15. Unsorted Entries
  16. Converting the XML Style Output to the Bracketing Style Output

1. Introduction

This document is a guidebook for interpreting XML output produced by the Enju parser. Enju is based on the HPSG theory and it computes feature structure-based analyses for sentences. Hence, directly interpreting the Enju's internal structures requires in-depth knowledge about the theory of HPSG. Since this is undesirable for end-users, Enju outputs a summary of its analysis in an XML format, which is intended for further processing in NLP applications without using any knowledge about HPSG.

Since the aim of this document is to explain Enju's output without any background knowledge of its framework, we will take an example-based way for explanation. That is, we show example output for each construction, and describe how each syntactic/semantic relation is indicated in the output.

Because Enju computes HPSG-based structures, it outputs both phrase structures and predicate-argument structures. Phrase structures look very similar to parse trees in CFG-style representations, while predicate-argument structures do not necessarily form trees. Hence, in the XML format, phrase structure trees are expressed with nesting relations of XML tags, while predicate argument structures are represented with XML attributes that point to ID numbers assigned to XML tags. XML output also includes attributes that convey additional information such as tense and aspect. For further details of the XML tags and attributes, see "Enju Output Specifications."

In this document, we represent Enju's output in a brackting format, which is similar to the Penn Treebank representation, because the native XML format is difficult for humans to read. To increase the human readability, we extract the essence of the XML format for each construction, where XML attributes unnecessary for explanation are omitted. The formal procedure for converting the XML format into the bracketing format is described in Chapter 16.

In what follows, we show how the actual XML output looks like and how we represent it in a simplified way.

XML Format

<cons id="c1" cat="S" head="c3" sem_head="c3">
 
<!--this is the mother of the costituents represetned by c2 and c3 -->
        
<cons id="c2" cat="NP">
          <!--this is the non-head daughter of the costituent represetned by c1 -->
          
<!--this is the sister of the costituent represetned by c3 -->
          <tok>
            He
          </tok>
        </cons>
        
<cons id="c3" cat="VP">
          <!--this is the head daughter of the costituent represetned by c1 -->
          
<!--this is the sister of the costituent represetned by c2 -->
          <tok pred="verb_arg1" arg1="c2">
            <!-- assign role to semantic argument c2 -->
            runs
          </tok>
        </cons>
</cons>

Phrase Structure Tree in Bracketing Style Output Format

(S[id=c1, head=c3, sem_head=c3]  
   (NP[id=c2] He ) 
   (VP[id=c3] runs[pred=verb_arg1, arg1=c2] )
)

Syntax

Semantics

2. Nouns

Chapter Index

Proper Nouns

Example Sentence

John walks

Output

(S  
    (NP (NX John[pred=noun_arg0] ) )
    (VP walks ) )

Syntax

Semantics

Pronouns

Example Sentence

He walks

Output

(S  
    (NP[id=c1] He[pred=noun_arg0] )
    (VP walks ) )

Syntax

Semantics

Common Nouns

Singular Common Nouns

See Determiners:Articles, Demonstratives and Quantifiers.

Plural Common Nouns/Mass Nouns

Example Sentence

Birds fly

Output

 (S  
     (NP[id=c39] (NX Birds[pred=noun_arg0] ) )
     (VP fly ) )

Syntax

Semantics

Noun-noun Compounds

Example Sentence

Space shuttles explode

Output

 
(S   (NP
         (NX 
             (NP Space[pred=noun_arg1, arg1=c30015] )
             (NX[id=c30015] (NX shuttles ) )
     (VP explode ) )

Syntax

Semantics

Nouns That Take Sentential Complements

Example Sentence

The fact that John loves Mary is true.

Output

(S  
    (NP
        (DP The )
        (NX 
            (NX fact[pred=noun_arg2, arg2=c30454] )
            (CP[id=c30454] 
                (CX[id=c30455] that[pred=comp_arg1, arg1=c30456, head=c30455, sem_head=c30456] )
                (S[id=c30456]
                              (NP (NX John ) )
                              (VP 
                                  (VX loves )
                                  (NP (NX Mary ) ) ) ) ) ) )
    (VP 
        (VX is )
        (ADJP true ) ) )

Syntax

Semantics

Temporal Nouns

Example Sentence

John dies this afternoon

Output

(S  
   (NP (NX John ) )
   (VP 
       (VP[id=c49888] dies )
       (NP 
           (DP this )
           (NX afternoon[pred=noun_arg1, arg1=c49888] ) ) ) )

Syntax

Semantics

Gerunds

Verbal Gerunds

Example Sentence

Abandoning children increased

Output

(S  
    (NP[id=c2790]
        (NX
              (NX Abandoning[pred=verb_arg12, arg1=unk, arg2=c2793] )
              (NP[id=c2793] (NX children ) ) ) )
    (VP increased ) )

Syntax

Semantics

Nominal Gerunds

See Determiners:Possessives:Gerunds with a Possessive Subjects.

Apposition

Example Sentence

John (my brother) left.

Output

(S 
     (NP[id=c245]
                  (NP[id=c246] (NX John ) )
                  (PN
                      (PN
                          (PN ([pred=lparen_arg123, arg1=c246, arg2=c250, arg3=c255] )
                          (NP[id=c250] 
                                   (DP my )
                                   (NX brother ) ) ) 
                      (PN[id=c255] ) ) ) )
     (VP 
         
         (VP[id=c255] left[pred=verb_arg1, arg1=c245] ) ) ) 

Syntax

Semantics

3. Determiners

Chapter Index

Articles, Demonstratives and Quantifiers

Example Sentence

A man walks

Output

(S  
    (NP 
        (DP A[pred=det_arg1, arg1=c1547] )
        (NX[id=c1547] man ) )
    (VP  walks ) )

Syntax

Semantics

Possessives

Possessive Adjectives

Same as Articles, Demonstratives and Quantifiers

Possessive Apostrophes

Example Sentence

Mary's husband hates John

Output

(S  
    (NP 
        (DP 
            (NP[id=c33502] (NX Mary ) ) 
            (DX 's[pred=poss_arg12, arg1=c33505, arg2=c33502] ) )
        (NX[id=c33505] husband ) )
    (VP 
        (VX hates )
        (NP (NX John ) ) ) )

Syntax

Semantics

Gerunds with Possessive Subjects

Example Sentence

Your walking me pleases me

Output

(S  (NP 
        (DP[id=c2] Your )
        (NX
            (NX walking[pred=verb_arg12, arg1=c2] )
            (NP me )
    (VP 
        (VX pleases )
        (NP me ) )

Syntax

Semantics

4. Verbs

Chapter Index

Intransitive Verbs

Example Sentence

John walks

Output

(S  
    (NP[id=c1] (NX John ) )
    (VP walks[pred=verb_arg1, arg1=c1, tense=present] ) )

Syntax

  • The intransitive verb ''walks'' is assigned the POS label VP.
  • The intransitive verb is sister to its subject argument, the NP ''John''. Together they form the sentence ''John walks'', which is assigned the POS label S.
  • The main verb is marked for present tense.
  • Semantics

    Transitive Verbs

    Example Sentence

    John loves Mary

    Output

     (S  
         (NP[id=c1] (NX John ) )
         (VP 
             (VX loves[pred=verb_arg12, arg1=c1, arg2=c5] )
             (NP[id=c5] (NX Mary) ) ) )
    

    Syntax

    Semantics

    Ditransitive Verbs

    Unshifted Ditransitive Constructions

    Example Sentence

    John gives a flower to Mary

    Output

     (S  (NP (NX John ) )
         (VP 
             (VX 
                 (VX gives[pred=verb_arg123, arg3=c1582, arg2=c1585] )
                 (NP[id=c1582] (DP a )
                               (NX flower ) )
             (PP[id=c1585] 
                           (PX to[pred=dtv_arg2, arg2=c1587] )
                           (NP (NX[id=c1587] Mary ) ) ) ) ) )
    
    

    Syntax

    Semantics

    Dative-shifted Ditransitive Constructions

    Example Sentence

    John gives Mary a flower.

    Output

     (S  (NP (NX John ) )
         (VP 
             (VX 
                 (VX gives[pred=verb_arg123, arg2=c74, arg3=c76] )
                 (NP[id=c74] (NX Mary ) ) )
             (NP[id=c76] 
                         (DP a)
                         (NX flower ) ) ) )
    

    Syntax

    Semantics

    Verbs That Take Sentential Complements

    Example Sentence

    John discovers that Mary marries Bill

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VX discovers[pred=verb_arg12, arg2=c2814] )
             (CP[id=c2814] 
               (CX that[pred=comp_arg1,arg1=c2816] )
               (S[id=c2816]  
                 (NP (NX Mary ) )
                     (VP 
                       (VX marries )
                       (NP (NX Bill) ) ) )
    
    

    Syntax

    Semantics

    Verbs That Take Sentential Subjects

    Example Sentence

    That Mary leaves Bill encourages John

    Output

    (S  
       (CP[id=c5] 
                  (CX That[pred=comp_arg1,arg1=c7] )
                  (S[id=c7]  
                            (NP (NX Mary ) )
                            (VP 
                                (VX leaves )
                                (NP (NX Bill) ) ) ) )
       (VP 
           (VX motivatees[pred=verb_arg12, arg1=c5] )
           (NP (NX John ) ) ) ) 
    
    

    Syntax

    Semantics

    Small Clauses

    V NP NP

    Example Sentence

    Mary considers John a fool

    Output

     
    (S  
         (NP (NX Mary ) )
         (VP 
             (VX
                 (VX considers[pred=verb_arg123, arg2=c9833, arg3=c9835] )
                 (NP[id=c9833] (NX John ) ) )
             (NP[id=9835] 
                 (NP (DP a )
                     (NX fool ) ) ) )
    
    

    Syntax

    Semantics

    V NP ADJP

    Example Sentence

    Mary considers John foolish

    Output

     
    (S  
         (NP (NX Mary ) )
         (VP 
             (VX
                 (VX  considers[pred=verb_arg123, arg2=c9833, arg3=c9835] )
                 (NP[id=c9833] (NX John ) ) )
             (ADJP[id=c9835] foolish[pred=adj_arg1, arg1=c9833] ) ) )
    

    Syntax

    Semantics

    V NP VP

    Example Sentence

    John sees Mary steal his money

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VX
                 (VX sees[pred=verb_arg123, arg2=c9833, arg3=c9835] )
                 (NP[id=c9833] (NX Mary ) ) )
             (VP[id=c9835]
                 (VX steal[pred=verb_arg12, arg1=c9833] )
                 (NP (DP his )
                     (NX money ) ) ) )
    
    

    Syntax

    Semantics

    Verbs That Take Infinitival Complements

    Subject Control Verbs

    Example Sentence

    John tries to approach Mary

    Output

     (S  
        (NP[id=c1] (NX John) )
        (VP
            (VX tries[pred=verb_arg12, arg1=c1, arg2=c5] )
            (CP[id=c5] 
                       (CX to[pred=comp_arg1, arg1=c7] )
                       (VP[id=c7] 
                                  (VX approach[pred=verb_arg12, arg1=c1] )
                                  (NP(NX Mary ) ) ) ) ) )
    

    Syntax

    Semantics

    Object Control Verbs

    Example Sentence

    Mary persuades John to become an entrepreneur.
    

    Output

     (S  
         (NP[id=c32016] (NX Mary ) )
         (VP 
              (VX 
                  (VX persuades[pred=verb_arg123, arg1=c32016, arg2=c32021, arg3=c32023] )
                  (NP[id=c32021] (NX John ) ) )
              (CP[id=c32023] 
                  (CX to[pred=comp_arg1, arg1=c32025] )
                  (VP[id=c32025] 
                      (VX[id=c32027] become[pred=verb_arg12, arg1=c32021] )
                      (NP (DP an )
                          (NX entrepreneur ) ) ) ) ) )
    

    Syntax

    Semantics

    Participle Constructions

    Example Sentence

    Having stolen John's money, Mary left John.
    

    Output

     (S  
         (VP
             (VX Having[pred=verb_mod_arg12, mod=c32202, arg1=c32205, arg2=c32194] )
             (VP[id=c32194] 
                            (VX stolen )
                            (NP 
                                (DP 
                                    (NP John )
                                    (DX 's ) )
                                (NX money ) ) ) )
         (S[id=c32202]
                       (PN , )
                       (S
                          (NP[id=c32205] (NX Mary ) )
                          (VP 
                              (VX left )
                              (NP (NX John ) ) ) ) )
    

    Syntax

    Semantics

    5. Auxiliaries

    Chapter Index

    Modals

    Example Sentence

    John can walk

    Output

     (S  (NP[id=c121] (NX John) )
         (VP  
             (VX can[aux=modal, pred=aux_arg12, arg1=c121, arg2=c125] )
             (VP[id=c125] walk[pred=verb_arg1, arg1=c121] ) )  
    

    Syntax

    Semantics

    Aspectual Verbs

    Progressives

    Example Sentence

    John is sleeping.

    Output

     (S  (NP (NX John ) )
         (VP 
             (VX is[aux=be] )
             (VP sleeping[tense=present, aspect=progressive] ) )  
    

    Syntax

    Perfectives

    Example Sentence

    John has slept

    Output

     (S  (NP (NX John ) )
         (VP 
             (VX has[aux=have] )
             (VP slept[tense=present, aspect=perfect] ) )  
    

    Syntax

    Perfect Progressives

    Example Sentence

    John has been sleeping

    Output

    (S  
       (NP (NX John ) )
       (VP 
           (VX has[aux=have] )
           (VP 
               (VX been[aux=been] )
               (VP sleeping[tense=present, aspect=perfect-progressive] ) )  
    

    Syntax

    Passive Auxiliaries

    Example Sentence

    John is poisoned

    Output

     (S  (NP[id=c7260] (NX John ) )
         (VP 
             (VX is[aux=be] )
             (VP poisoned[voice=passive, arg1=unk, arg2=c7260] ) )  
    

    Syntax

    Semantics

    Dummies

    Example Sentence

    John did not sleep

    Output

     (S  (NP[id=c7290] (NX John))
         (VP 
             (VX 
                 (VX did[aux=do, arg1=c7290, arg2=c7296] )
                 (ADVP not[pred=adj_arg1, arg1=c7296] )
             (VP[id=c7296] sleep[arg1=7290] ) )  
    

    Syntax

    Semantics

    6. Prepositions and Particles

    Chapter Index

    Prepositions

    Prepositions that Take NP Complements

    Example Sentence

    He talks to Mary

    Output

     (S  (NP[id=c26] He )
         (VP 
             (VP[id=c28] talks[pred=verb_arg1, arg1=c26] )
             (PP 
                 (PX to[pred=prep_arg12, arg1=c28, arg2=c31] ) 
                 (NP[id=c31] (NX Mary ) ) ) ) ) 
    

    Syntax

    Semantics

    Particles

    Example Sentence

    John makes up the story

    Output

     (S (NP[id=10] (NX John ) )
        (VP 
            (VX 
                (VX[id=c14] makes[pred=verb_arg12,arg1=c10,arg2=c16] )
                (PRT up[pred=adj_arg1,arg1=c14] ) )
            (NP[id=c16] 
                        (DP the )
                        (NX story ) ) ) )
    

    Syntax

    Semantics

    7. Adjectives

    Chapter Index

    Attributive Adjectives

    Example Sentence

    Mary loves a white man

    Output

     (S  
         (NP (NX Mary ) )
         (VP 
             (VX loves
             (NP
                 (DP a[pred=det_arg11,arg1=c6683] )
                 (NX[id=c6683]
                     (ADJP white[pred=adj_arg1, arg1=c6685] )
                     (NX[id=c6685] man ) ) ) ) ) )
    

    Syntax

    Semantics

    Predicative Adjectives

    See Copulas: Predicative Sentences: Adjectival Predicates.

    Comparatives and Superlatives

    Comparatives

    Example Sentence

    John is older than Mary

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VX is )
             (ADJP  
                   (ADJP[id=c7680] older )
                   (PP
                       (PX than[pred=prep_arg12, arg1=c7680, arg2=c7683] )
                       (NP[id=c7683] (NX Mary ) ) ) ) ) )
    

    Syntax

    Semantics

    Superlatives

    Example Sentence

    John is the richest man

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VX is )
             (NP   
                 (DP the )
                 (NX
                     (ADJP richest[pred=adj_arg1, arg1=c8018] )
                     (NX[id=c8018] man ) ) ) ) )
    

    Syntax

    Semantics

    Adjectives with Extraposed Sentential Complements

    Example Sentence

    It is obvious that John is a fool

    Output

     (S  
         (NP It[pred=it_arg1, arg1=c8018] )
         (VP 
             (VX
                 (VX is )
                 (ADJP obvious[pred=adj_arg1, arg1=c8018] )
             (CP[id=c8018]
                 (CX that )
                 (S
                    (NP John )
                    (VP
                        (VX is )
                        (NP 
                            (DP a )
                            (NX fool ) ) ) ) ) ) ) )
    

    Syntax

    Semantics

    Adjectives That Take Infinitival Complements

    Example Sentence

    John is able to walk

    Output

     (S  
         (NP[id=c46339] (NX John ) )
         (VP 
             (VX is )
             (ADJP   
                 (ADJX able[pred=adj_arg12, arg1=c46339, arg2=c46344] )
                 (CP[id=c46344]
                                (CX to )
                                (VP walk[arg1=c46339] ) ) ) ) )
    

    Syntax

    Semantics

    8. Adverbs

    Chapter Index

    Adverbs That Postmodify Verbs

    Example Sentence

    John loves Mary deeply

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VP[id=c7750] 
                 (VX loves )
                 (NP (NX Mary ) ) )  
             (ADVP deeply[pred=adj_arg1, arg1=c7750] ) ) )
    

    Syntax

    Semantics

    Adverbs That Premodify Verbs

    Example Sentence

    Mary rarely sees John

    Output

     (S  
         (NP (NX Mary ) )
         (VP 
             (ADVP rarely[pred=adj_arg1, arg1=c8093] )
             (VP[id=c8093] 
                 (VX sees )
                 (NP (NX John ) ) ) ) )  
    

    Syntax

    Semantics

    Adverbs That Premodify Adjectives

    Example Sentence

    Mary marries a very rich man

    Output

     (S  
         (NP (NX Mary ) )
         (VP 
             (VX marries )
             (NP
                 (DP a )
                 (NX
                     (ADJP 
                           (ADVP very[pred=adj_arg1, arg1=c8677] )
                           (ADJP[id=c8677] rich )
                     (NX man ) ) ) ) ) )
    
    

    Syntax

    Semantics

    Sentence-initial Adverbs

    Example Sentence

    Unfortunately, John marries Mary

    Output

     (S (ADVP Unfortunately[pred=adj_arg1, arg1=c8764] )
        (S[id=c8764] 
           (PN ,)
           (S 
              (NP (NX John ) )
              (VP 
                  (VX marries )
                  (NP (NX Mary ) ) ) ) ) ) 
    
    
    

    Syntax

    Semantics

    9. Copulas

    Chapter Index

    Predicative Sentences

    Adjectival Predicates

    Example Sentence

    John is strange.

    Output

     (S 
        (NP[id=c1] (NX John) )
        (VP 
            (VX is[pred=verb_arg12,arg1=c1,arg2=c5] )
            (ADJP[id=c5] strange[pred=adj_arg1,arg1=c1] ) ) )
    

    Syntax

    Semantics

    Prepositional Predicates

    Example Sentence

    John is in China.

    Output

     (S 
        (NP (NX[id=c1] John ) )
        (VP 
            (VX is[pred=verb_arg12,arg1=c1,arg2=c5] )
            (PP[id=c5] 
                       (PX in[pred=prep_arg12,arg1=c1,arg2=c7] )
                       (NP[id=c7] (NX China ) ) ) ) )
    

    Syntax

    Semantics

    Clausal Predicates

    Example Sentence

    The plan is that you write the report

    Output

    (S  
       (NP 
           (DP The )
           (NX plan ) )
       (VP 
           (VX is[pred=verb_arg12, arg2=c2814] )
           (CP[id=c2814] 
                         (CX that[pred=comp_arg1,arg1=c2816] )
                         (S[id=c2816]  
                                      (NP you )
                                      (VP 
                                          (VX write )
                                          (NP 
                                              (DP the )
                                              (NX report ) ) ) ) ) ) )
    
    

    Syntax

    Semantics

    Identity Copular Sentences

    Example Sentence

    Jesus is Christ.

    Simplified output

     (S  
         (NP[id=c8] (NX Jesus ) )
         (VP 
              (VX is[pred=verb_arg12, arg1=c8, arg2=c12] )
              (NP[id=c12] (NX Christ ) ) ) )
    

    Syntax

    Semantics

    Expletive-there Construction

    Example Sentence

    There is a man dying.

    Output

    (S 
       (NP There )
       (VP 
           (VX is )
           (NP 
               (DP a )
               (NX
                   (NX[id=c44] man )
                   (VP dying[pred=verb_arg1, arg1=c44] ) ) ) ) )
    
    

    Syntax

    Semantics

    10. Relative Clauses

    Chapter Index

    Nonsubject Wh-relatives

    Example Sentence

    John is the man who Mary loves

    Output

    (S 
       (NP (NX John ) )
       (VP 
           (VX is )
           (NP 
               (DP the )
               (NX 
                   (NX[id=c37] man )
                   (S-REL 
                      (NP-REL who[pred=relative_arg1, arg1=c37] )
                      (S-TRACE 
                               (NP[id=c41] (NX Mary ) )
                               (VP-TRACE loves[pred=verb_arg12, arg1=c41, arg2=c37] ) ) ) ) ) ) )
    

    Syntax

    Semantics

    That-less Relatives

    Example Sentence

    John is the man Mary loves.

    Output

    (S 
       (NP (NX John ) )
       (VP 
           (VX is )
           (NP 
               (DP the )
               (NX 
                   (NX man )
                   (S-REL (S-TRACE 
                                   (NP (NX Mary ) )
                                   (VP-TRACE loves ) ) ) ) ) ) )
    

    Syntax

    Subject Wh-relatives

    Example Sentence

    John is the man who loves Mary.

    Output

    (S 
       (NP (NX John ) )
       (VP 
           (VX is )
           (NP 
               (DP the)
               (NX[id=c8] 
                          (NX man )
                          (S-REL 
                                 (NP-REL who )
                                 (VP 
                                     (VX loves[pred=verb_arg12,arg1=c8] )
                                     (NP (NX Mary ) )
    

    Syntax

    Semantics

    Free Relatives

    Example Sentence

    I see what I eat.

    Output

    (S 
       (NP I ) 
       (VP 
           (VX see[pred=verb_arg12, arg2=c2491] )
           (NP[id=c2489] (S-FREL
                            (NP-FREL[id=c2491] what )
                            (S-TRACE
                              (NP[id=c2493] I)
                              (VP-TRACE eat[pred=verb_arg12, arg1=c2493, arg2=c2491] ) ) ) ) ) )
    
    

    Syntax

    Semantics

    Infinitival Relative Clauses

    Example Sentence

    The book to be read is lost

    Output

    (S 
       (NP 
           (DP The )
           (NX
               (NX[id=c46155] book )
               (CP 
                   (CX to ) 
                   (VP
                       (VX be )
                       (VP read[pred=verb_arg12, arg1=unk, arg2=c46155] ) ) ) ) )
       (VP 
           (VX is )
           (VP lost ) ) )
    
    

    Syntax

    Semantics

    Reduced Relative Clauses

    Example Sentence

    Children killed in the street are orphans

    Output

    (S 
       (NP[id=c92] 
           (NX
               (NX[id=c94] children )
               (VP 
                   (VP killed[pred=verb_arg12, arg2=c94] )
                   (PP 
                       (PX in )
                       (NP 
                           (DP the )
                           (NX street ) ) ) ) ) )
       (VP 
           (VX are[pred=verb_arg12, arg1=c92] )
           (NP (NX orphans ) ) ) )
    
    

    Syntax

    Semantics

    Subject Extraction

    Example Sentence

    I wonder who you think loves her.

    Output

    (S 
       (NP I ) 
       (VP 
           (VX wonder )
           (NP (S-FREL
                  (NP-FREL[id=c46256] who )
                  (S-TRACE 
                           (NP you )
                           (VP-TRACE 
                                     (VX-TRACE think[pred=verb_arg12, arg1=c46258, arg2=c46261] )
                                     (VP[id=c46261] 
                                                    (VX loves[pred~verb_arg12, arg1=c46256] )
                                                    (NP her )
    
    

    Syntax

    Semantics

    Cleft Sentences

    It-clefts

    Example Sentence

    It is Mary that John loves.

    Simplified output

     (S 
        (NP[id=c9798] It )
        (VP 
            (VX is[pred=verb_arg12, arg1=c9798, arg2=c9801] )
            (NP 
                (NX 
                    (NX Mary )
                    (S-REL 
                           (NP-REL that[pred=relative_arg1, arg1=c9803] )
                           (S-TRACE 
                                    (NP[id=c9807] (NX John ) )
                                    (VP-TRACE loves[pred=verb_arg12, arg1=c9803, arg2=c9807 ) ) ) ) ) ) ) )
    

    Syntax

    Semantics

    Pseudoclefts

    Example Sentence

    What Mary loves is money.

    Simplified output

     (S 
        (NP (S-FREL
               (NP-FREL[id=c3] What )
               (S-TRACE 
                        (NP (NX Mary ) )
                        (VP-TRACE loves[pred=verb_arg12,arg2=c3] ) ) ) ) )
        (VP 
           (VX is[pred=verb_arg12, arg1=c3 )
           (NP (NX money ) ) ) )
    

    Syntax

    Semantics

    11. Connectives

    Chapter Index

    Coordinating Conjunctions

    The Case of Two Conjuncts

    Example Sentence

    John loves Mary and Mary loves John.

    Output

    (S-COOD 
            (S[id=c3026] 
                         (NP (NX John ) )
                         (VP 
                             (VX loves )
                             (NP (NX Mary ) ) ) )
            (COOD 
                  (CONJP and[pred=coord_ard12, arg1=c3026, arg2=c3035] )
                  (S[id=c3035] 
                               (NP (NX Mary ) )
                               (VP (VX loves )
                                   (NP (NX John ) ) ) ) ) )
    

    Syntax

    Semantics

    The Case of Three Conjuncts

    Example Sentence

    They walk, I run and you crawl.

    Output

    (S-COOD 
            (S[id=4255] 
                        (NP They )
                        (VP walk ) )
            (COOD 
                  (CONJP , [pred=coord_ard12, arg1=c4255, arg2=c4260] )
                  (S-COOD[id=4260] 
                                   (S[id=4261] 
                                               (NP I)
                                               (VP run ) )
                                   (COOD 
                                         (CONJP and )
                                         (S
                                            (NP you)
                                            (VP crawl ) ) ) ) ) )
    

    Syntax

    Semantics

    Subordinating Conjunctions

    The Case of Sentence Initial Subordinate Clause

    Example Sentence

    When John has money, Mary loves him

    Output

    (S 
       (SCP 
            (SCX When[pred=conj_arg12, arg1=c4824, arg2=c4817] )
            (S[id=c4817] 
                         (NP (NX John ) )
                         (VP 
                             (VX has )
                             (NP (NX money ) ) ) ) )
       
       (S[id=c4824] 
                    (PN , )
                    (S[id=c4826]
                       (NP (NX Mary ) )
                       (VP 
                           (VX loves )
                           (NP him ) ) ) ) )
    

    Syntax

    Semantics

    The Case of Sentence Final Subordinate Clause

    Example Sentence

    John loved Mary when she was young

    Output

    (S 
       (NP (NX John ) )
       (VP (VP[id=c4977] 
                         (VX loved )
                         (NP (NX Mary) ) ) ) )
           (SCP 
                (SCX when[pred=conj_arg12, arg1=c4977, arg2=c4983] )
                (S[id=c4983] 
                             (NP she )
                             (VP 
                                 (VX was )
                                 (NP (NX young ) ) ) ) )
    

    Syntax

    Semantics

    12. Interrogatives

    Chapter Index

    Yes/No Questions

    Example Sentence

    Will John marry Mary

    Output

    (S-Q
         (VX 
             (VX will )
             (NP (NX John ) ) )
         (VP 
             (VX marry )
             (NP (NX Mary ) ) ) )
     
    
    

    Syntax

    Questioning Subject Positions

    Example Sentence

    Who loves Mary

    Output

    (S-WH
         (NP-WH Who[id=c13880] )
         (VP 
             (VX loves[pred=verb_arg12, arg1=c13880] )
             (NP (NX Mary ) ) ) )
    

    Syntax

    Semantics

    Questioning Object Positions

    Example Sentence

    Who does Mary love?

    Output

    (S-INV-Q-WH
         (NP-WH Who[id=c10593] )
         (S-INV-Q-TRACE
                    (VX 
                        (VX does )
                        (NP (NX Mary ) ) )
                    (VP-TRACE love[pred=verb_arg12, arg2=c10593] ) ) ) )
    

    Syntax

    Semantics

    Questioning Other Positions

    Example Sentence

    When will John marry Mary

    Suggested Output

    (S-INV-Q-WH
         (ADJP-WH When[pred=adj_arg1, arg1=c10593] )
         (S-Q[id=c10593]
                    (VX 
                        (VX will )
                        (NP (NX John ) ) )
                    (VP 
                        (VX marry )
                        (NP (NX Mary ) ) )
     
      ) ) ) )
    

    Syntax

    Semantics

    13. Constructions of Interest

    Chapter Index

    Topicalization

    Example Sentence

    Mary, John loves.

    Output

    (S 
         (NP[id=c10593] (NX Mary )
         (S-TRACE
             (PN , )
             (S-TRACE
                      (NP (NX John ) )
                      (VP-TRACE loves[pred=verb_arg12, arg2=c10593] ) ) ) ) ) 
    

    Syntax

    Semantics

    Imperatives

    Example Sentence

    Pass me the salt.

    Output

    (S-IMP 
           (VX 
               (VX 
                   (VX pass[pred=verb_arg123, arg1=unk, arg2=c44832, arg3=c44833] )
                   (NP[id=c44832] me ) )
               (NP[id=c44833] 
                              (DP the )
                              (NX salt ) ) ) )
    
    

    Syntax

    Semantics

    Inversion

    Example Sentence

    Hardly does anyone like John.

    Suggested Output

    (S-INV 
       (ADV Hardly[pred=adj_arg1, arg1=c14487] )
       (S-INV[id=c14487]
                         (VX 
                             (VX does )
                             (NP (NX anyone ) ) )
                         (VP (VX love )
                             (NP (NX John ) ) ) ) ) 
    
    

    Syntax

    Semantics

    Quotation

    Example Sentence

    ''I love you,''John says

    Output

    (S 
       (S[id=c231] 
                   (PN '' )
                   (S
                      (NP I ) 
                      (VP 
                          (VP 
                              (VP
                                  (VX love )
                                  (NP (NX you ) ) )
                              (PN , ) )
                     (PN '' ) ) 
       (S-TRACE 
                (NP[id=c244] (NX John ) )
                (VP-TRACE says[pred=verb_arg12, arg1=c244, arg2=c231] ) ) )
    

    Syntax

    Semantics

    Titles

    Example Sentence

    Mary's ''My Love Story'' is published

    Suggested Output

    (S
       (NP
           (DP 
               (NP (NX Mary ) )
               (DP 's ) )
           (NX 
               (NP ''My )
               (NX 
                   (NP Love )
                   (NX Story'' ) ) ) ) 
       (VP 
           (VX is )
           (VP published ) ) )
    

    Syntax

    Tough Construction

    Example Sentence

    Mary is easy to please.

    Output

    (S
       (NP[id=c112] (NX Mary ) )
       (VP
           (VX is )
           (ADJP 
                 (ADJX easy[pred=adj_arg12, arg1=c112, arg2=c118] )
                 (CP-TRACE[id=c118] 
                           (CX to )
                           (VP-TRACE please[pred=verb_arg12, arg1=unk, arg2=c112 ) ) ) ) ) ) 
    

    Syntax

    Semantics

    Pied-piping

    Example Sentence

    Which car does she like?

    Output

    (S-Q 
         (NP[id=c43585] 
                        (DP Which[pred=det_arg1, arg1=c43587] )
                        (NX[id=c43587] car ) )
         (S-Q-TRACE 
                    (VX 
                        (VX does )
                        (NP he )
                    (VP-TRACE like[pred=verb_arg12, arg2=c43585] ) ) ) )
    

    Syntax

    Semantics

    14. Punctuations

    Chapter Index

    Sentence Final Punctuations

    Example Sentence

    John loves Mary.

    Output

     (S  
         (NP (NX John ) )
         (VP 
             (VX loves )
             (NP (NX Mary ) ) ) )
    

    Syntax

    Mid-sentence Punctuations

    Unpaired Mid-sentence Punctuations

    See Connectives:Subordinating Conjunctions.

    Paired Mid-sentence Punctuations

    See Nouns:Apposition.

    15. Unsorted Entries

    Chapter Index

    Time

    Time Adverbials without Prepositions

    Example Sentence

    Now John loves Mary.

    Output

    (S
       (ADVP Now[pred=adj_arg1, arg1=c367] ) 
       (S[id=c367]  
                   (NP (NX John ) )
                   (VP 
                       (VX loves )
                       (NP (NX Mary) ) ) ) )
    

    Syntax

    Semantics

    Time Adverbials with Prepositions

    Example Sentence

    John dumps Mary in June.

    Output

     (S  
         (NP[id=c1] (NX John ) )
         (VP  
             (VP[id=c357] 
                          (VX dumps )
                          (NP (NX Mary) ) ) 
             (PP
                (PX in[pred=prep_arg12, arg1=c357, arg2=c363] )
                (NP[id=c363] (NX June ) ) ) ) )
    

    Syntax

    Semantics

    Numbers

    Prenominal Numerals

    Example Sentence

    Toyota gains 2 percents

    Output

    (S 
         (NP (NX Toyota ) )
         (VP 
             (VX gains )
             (NP (NX 
                     (ADJP 2[pred=adj_arg1, arg1=c1519] )
                     (NX[id=c1519] percents ) ) ) ) ) 
    

    Syntax

    Semantics

    Numerals Not Followed by a Head Noun

    Example Sentence

    One is enough

    Output

    (S 
         (NP (NX One ) )
         (VP 
             (VX is )
             (ADVP enough ) ) )
    

    Syntax

    Symbols

    Example Sentence

    Toyota gains 2 %.

    Output

    (S 
         (NP (NX Toyota ) )
         (VP 
             (VX gains )
             (NP (NX 
                     (ADJP 2 )
                     (NX % ) ) ) ) 
    

    Syntax

    16. Converting the XML Style Output to the Bracketing Style Output

    Manual Conversion

    Example Sentence

    John loves Mary and Mary loves John.

    XML Output

    <sentence id="s0" parse_status="success">
      
    <cons id="c0" cat="S" xcat="COOD" head="c1" sem_head="c1" schema="coord_left">
        
    <cons id="c1" cat="S" xcat="" head="c4" sem_head="c4" schema="subj_head">
          
    <cons id="c2" cat="NP" xcat="" head="c3" sem_head="c3" schema="empty_spec_head">
            
    <cons id="c3" cat="NX" xcat="" head="t0" sem_head="t0">
              
    <tok id="t0" cat="N" pos="NNP" base="john" lexentry="[D&lt;N.3sg&gt;]_lxm" pred="noun_arg0">
                John
              
    </tok>
            
    </cons>
          
    </cons> 
          
    <cons id="c4" cat="VP" xcat="" head="c5" sem_head="c5" schema="head_comp">
            
    <cons id="c5" cat="VX" xcat="" head="t1" sem_head="t1">
              
    <tok id="t1" cat="V" pos="VBZ" base="love" tense="present" aspect="none" voice="active" aux="minus" lexentry="[NP.nom&lt;V.bse&gt;NP.acc]_lxm-singular3rd_verb_rule" pred="verb_arg12" arg1="c2" arg2="c6">
                loves
              
    </tok>
            
    </cons> 
            
    <cons id="c6" cat="NP" xcat="" head="c7" sem_head="c7" schema="empty_spec_head">
              
    <cons id="c7" cat="NX" xcat="" head="t2" sem_head="t2">
                
    <tok id="t2" cat="N" pos="NNP" base="mary" lexentry="[D&lt;N.3sg&gt;]_lxm" pred="noun_arg0">
                  Mary
                
    </tok>
              
    </cons>
            
    </cons>
          
    </cons>
        
    </cons> 
        
    <cons id="c8" cat="COOD" xcat="" head="c9" sem_head="c9" schema="coord_right">
          
    <cons id="c9" cat="CONJP" xcat="" head="t3" sem_head="t3">
            
    <tok id="t3" cat="CONJ" pos="CC" base="and" lexentry="[V.decl&lt;CONJP&gt;V.decl]" pred="coord_arg12" arg1="c1" arg2="c10">
              and
            
    </tok>
          
    </cons> 
          
    <cons id="c10" cat="S" xcat="" head="c13" sem_head="c13" schema="subj_head">
            
    <cons id="c11" cat="NP" xcat="" head="c12" sem_head="c12" schema="empty_spec_head">
              
    <cons id="c12" cat="NX" xcat="" head="t4" sem_head="t4">
                
    <tok id="t4" cat="N" pos="NNP" base="mary" lexentry="[D&lt;N.3sg&gt;]_lxm" pred="noun_arg0">
                  Mary
                
    </tok>
              
    </cons>
            
    </cons> 
            
    <cons id="c13" cat="VP" xcat="" head="c14" sem_head="c14" schema="head_comp">
              
    <cons id="c14" cat="VX" xcat="" head="t5" sem_head="t5">
                
    <tok id="t5" cat="V" pos="VBZ" base="love" tense="present" aspect="none" voice="active" aux="minus" lexentry="[NP.nom&lt;V.bse&gt;NP.acc]_lxm-singular3rd_verb_rule" pred="verb_arg12" arg1="c11" arg2="c15">
                  loves
                
    </tok>
              
    </cons> 
              
    <cons id="c15" cat="NP" xcat="" head="c16" sem_head="c16" schema="empty_spec_head">
                
    <cons id="c16" cat="NX" xcat="" head="t6" sem_head="t6">
                  
    <tok id="t6" cat="N" pos="NNP" base="john" lexentry="[D&lt;N.3sg&gt;]_lxm" pred="noun_arg0">
                    John
                  
    </tok>
                
    </cons>
              
    </cons>
            
    </cons>
          
    </cons>
        
    </cons>
      
    </cons>
    </sentence>

    Steps

    1. Replace element tags with ( )s.
       
      (
        (
          ( ( John ) ) Subordinating Conjunctions
          ( 
            ( loves ) 
            ( ( Mary ) ) ) ) 
        ( 
          ( and ) 
            ( 
              ( ( Mary ) ) 
              (
                ( loves ) 
                ( ( John ) ) ) ) ) )
      
    2. For every CONS element:
      1. Retrieve its CAT value ($CAT_VALUE).
      2. Put $CAT_VALUE after the opening bracket corresponding to the opening CONS tag.
      3. If the XCAT value of the CONS element is non-empty:
        1. Put a separator ‘-’ and the XCAT value ($XCAT_VALUE) after $CAT_VALUE
          (S-COOD
              (S 
                 (NP (NX John ) ) 
                 (VP 
                     (VX loves ) 
                     (NP (NX Mary ) ) ) ) 
              (COOD
                     (CONJP and )
                     (S 
                       (NP (NX Mary ) ) 
                       (VP
                           (VX loves ) 
                           (NP (NX John ) ) ) ) ) )
          
      4. Print a ‘[’ after $CAT_VALUE-$XCAT_VALUE.
      5. Print ‘id=’.
      6. Retrieve its ID value ($ID_VALUE).
      7. Put $ID_VALUE after ‘id=’.
      8. Print a ‘]’.
        (S-COOD[id=c0]
            (S[id=c1]
               (NP[id=c2] (NX[id=c3] John ) ) 
               (VP[id=c4] 
                          (VX[id=c5] loves ) 
                          (NP[id=c6] (NX[id=c7] Mary ) ) ) ) 
            (COOD[id=c8]
                (CONJP[id=c9] and ) 
                (S[id=c10]
                        (NP[id=c11] (NX[id=c12] Mary ) ) 
                        (VP[id=c13] 
                                    (VX[id=c14] loves ) 
                                    (NP[id=c15] (NX[id=c16] John ) ) ) ) ) )
        
    3. For every TOK element, if the ARG1 value of the TOK element is non-empty:
      1. Print a ‘[‘ after the word enclosed by the TOK tags
      2. Retrieve its PRED value ($PRED_VALUE)
      3. Put $PRED_VALUE after the ‘[‘ .
      4. Retrieve its ARG1 value ($ARG1_VALUE)
      5. Put a space and $ARG1_VALUE after $PRED_VALUE.
      6. If the ARG2 value of the TOK element is non-empty:
        1. Retrieve its ARG2 value ($ARG2_VALUE)
        2. Put a space and $ARG2_VALUE after $ARG1_VALUE.
      7. If the ARG3 value of the TOK element is non-empty:
        1. Retrieve its ARG3 value ($ARG3_VALUE)
        2. Put a space and $ARG3_VALUE after $ARG2_VALUE.
      8. Print a ‘]‘ after the word enclosed by the TOK tags
        (S-COOD[id=c0]
            (S[id=c1]
                (NP[id=c2] (NX[id=c3] John ) )
                (VP[id=c4]
                    (VX[id=c5] loves[pred=verb_arg12 arg1=c2 arg2=c6] ) 
                    (NP[id=c6] (NX[id=c7] Mary ) ) ) )
            (COOD[id=c8]
                (CONJP[id=c9] and[pred=coord_arg12 arg1=c1 arg2=c10] )
                (S[id=c10]
                    (NP[id=c11]
                        (NX [id=c12] Mary ) ) 
                    (VP[id=c13]
                        (VX[id=c14] loves[pred=verb_arg12 arg1=c11 arg2=c15] )
                        (NP[id=c15] (NX[id=c16] John ) ) ) ) ) )