MCPcopy Create free account
hub / github.com/clips/pattern / 02-constraint.py

File 02-constraint.py

examples/04-search/02-constraint.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import os, sys; sys.path.insert(0, os.path.join("..", ".."))
2
3from pattern.search import search, Pattern, Constraint
4from pattern.en import parsetree

Callers

nothing calls this directly

Calls 11

parsetreeFunction · 0.90
searchFunction · 0.90
PatternClass · 0.90
ConstraintClass · 0.90
constraintMethod · 0.80
SentenceClass · 0.50
parseFunction · 0.50
insertMethod · 0.45
fromstringMethod · 0.45
searchMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected