How do I realize a possessive pronoun using the SImpleNLG server?

71 Views Asked by At

My XML looks like this:

<Request>
  <Document cat="DOCUMENT">
    <child xsi:type="NPPhraseSpec" PERSON="FIRST">
      <head cat="NOUN">
        <base>hand</base>
      </head>
      <spec xsi:type="WordElement" cat="PRONOUN">
        <base>my</base>
      </spec>
    </child>
  </Document>
</Request>

It realizes as "It hand." What am I doing wrong?

1

There are 1 best solutions below

0
On

Okay I figured it out. The pronoun word itself can't be possessive. You have to wrap it in a noun phrase, and set the phrase as possessive. Then use the possessive noun phrase as the specifier of the noun phrase whose head is "hand." It all makes sense, I just hadn't figured out how to use the framework.