[Langutils-devel] Question on verb phrases

Larry Hull lrr.hll at gmail.com
Sun Oct 9 03:57:28 UTC 2011


Can anyone give me an example that generates a chunked verb phrase?

I'm having difficulty understanding the verb tags.

Consider the following string which is actually in the pdf in the docs "Show
me all the coats for winter.

In Section 7.1 of the pdf, this should be chunked such that
(VX Show VX) (NX me NX) (NX all the coats NX) (PX for winter PX)

But running tag generates:

(tag "Show me all the coats for winter")
"show/NNP me/PRP all/DT the/DT coats/NNS for/IN winter./NN "

and running chunk generates:
(chunk "Show me all the coats for winter.")
(#<PHRASE:NX "show "> #<PHRASE:VX "show "> #<PHRASE:ADVP "show ">
 #<PHRASE:NX "the coats "> #<PHRASE:VX "the coats ">
 #<PHRASE:ADVP "the coats "> #<PHRASE:NX "winter. "> #<PHRASE:VX "winter. ">
 #<PHRASE:ADVP "winter. ">)

The tag show no verbs whatsoever, the chunk has show as noun, verb and
adverb phrases.

If I tag the string "The dog ate his food"

(tag "The dog ate his food")
"The/DT dog/NN ate/VBD his/PRP$ food/NN

"ate" is clearly labeled as a verb, but when I chunk the same string

(chunk "The dog ate his food")
(#<PHRASE:NX "the dog "> #<PHRASE:VX "the dog "> #<PHRASE:ADVP "the dog ">
 #<PHRASE:NX "his food "> #<PHRASE:VX "his food "> #<PHRASE:ADVP "his food
">)

the word "ate" disappears completely and "the dog" and "his food" are NX, VX
and ADVP.

Clearly I'm misunderstanding something. Can someone shed a little light on
my ignorance?

Larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/langutils-devel/attachments/20111008/1da30100/attachment.html>


More information about the langutils-devel mailing list