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

Method guess_anchor

pattern/text/tree.py:497–501  ·  view source on GitHub ↗

Returns an anchor chunk for this prepositional noun phrase (without a PP-attacher). Often, the nearest verb phrase is a good candidate.

(self)

Source from the content-addressed store, hash-verified

495 return self.chunks
496
497 def guess_anchor(self):
498 """ Returns an anchor chunk for this prepositional noun phrase (without a PP-attacher).
499 Often, the nearest verb phrase is a good candidate.
500 """
501 return self.nearest("VP")
502
503#--- CONJUNCTION -----------------------------------------------------------------------------------
504

Callers

nothing calls this directly

Calls 1

nearestMethod · 0.80

Tested by

no test coverage detected