Back to labs/answer key page

Looking for mere turns up examples like this one:

      (NP (DT a)
          (JJ mere)
          (NN majority)
          (PP (IN of)
              (NP (NNPS Senators))))))))                          

The following query matches that structure and ones like it:

tgrep '/^JJ/ $ /^N/' | more

tgrep complains because the sister relationship doesn't give it a clear master node to print. If you want to see the whole NP instead, do this:

tgrep '/^NP/ < (/^JJ/ $ /^N/)' | more

Or, equivalently:

tgrep '/^NP/ < /^JJ/ < /^N/' | more

Back to labs/answer key page

-----

Emily M. Bender
Last modified: Fri Dec 8 12:00:25 2000