Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
import
os, sys; sys.path.insert(0, os.path.join(
".."
,
".."
))
2
3
from
pattern.search
import
search, Pattern, Constraint
4
from
pattern.en
import
parsetree
Callers
nothing calls this directly
Calls
11
parsetree
Function · 0.90
search
Function · 0.90
Pattern
Class · 0.90
Constraint
Class · 0.90
constraint
Method · 0.80
Sentence
Class · 0.50
parse
Function · 0.50
insert
Method · 0.45
fromstring
Method · 0.45
search
Method · 0.45
append
Method · 0.45
Tested by
no test coverage detected