MCPcopy Index your code
hub / github.com/clips/pattern / do_pnp

Function do_pnp

pattern/text/tree.py:1481–1484  ·  view source on GitHub ↗
(pnp)

Source from the content-addressed store, hash-verified

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.

Callers 2

do_chunkFunction · 0.85
nltk_treeFunction · 0.85

Calls 1

do_chunkFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…