(pnp)
| 1479 | """ |
| 1480 | from nltk import tree |
| 1481 | def do_pnp(pnp): |
| 1482 | # Returns the PNPChunk (and the contained Chunk objects) in NLTK bracket format. |
| 1483 | s = ' '.join([do_chunk(ch) for ch in pnp.chunks]) |
| 1484 | return '(PNP %s)' % s |
| 1485 | |
| 1486 | def do_chunk(ch): |
| 1487 | # Returns the Chunk in NLTK bracket format. Recurse attached PNP's. |