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

Method find_labels

pattern/text/__init__.py:548–551  ·  view source on GitHub ↗

Annotates the given list of tokens with verb/predicate tags.

(self, tokens, **kwargs)

Source from the content-addressed store, hash-verified

546 return find_prepositions(tokens) # See also Parser.find_chunks().
547
548 def find_labels(self, tokens, **kwargs):
549 """ Annotates the given list of tokens with verb/predicate tags.
550 """
551 return find_relations(tokens)
552
553 def find_lemmata(self, tokens, **kwargs):
554 """ Annotates the given list of tokens with word lemmata.

Callers 2

parseMethod · 0.95
test_find_labelsMethod · 0.80

Calls 1

find_relationsFunction · 0.85

Tested by 1

test_find_labelsMethod · 0.64