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

Function uncertain

pattern/text/en/modality.py:426–427  ·  view source on GitHub ↗
(sentence, threshold=0.5)

Source from the content-addressed store, hash-verified

424 return max(-1.0, min(n / (m or 1), +1.0))
425
426def uncertain(sentence, threshold=0.5):
427 return modality(sentence) <= threshold
428
429#from __init__ import parse, Sentence
430#

Callers

nothing calls this directly

Calls 1

modalityFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…