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

Method __init__

pattern/graph/commonsense.py:68–73  ·  view source on GitHub ↗

A relation between two concepts, with an optional context. For example, "Felix is-a cat" is in the "media" context, "tiger is-a cat" in "nature".

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

66class Relation(Edge):
67
68 def __init__(self, *args, **kwargs):
69 """ A relation between two concepts, with an optional context.
70 For example, "Felix is-a cat" is in the "media" context, "tiger is-a cat" in "nature".
71 """
72 self.context = kwargs.pop("context", None)
73 Edge.__init__(self, *args, **kwargs)
74
75#--- HEURISTICS ------------------------------------------------------------------------------------
76# Similarity between concepts is measured using a featural approach:

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected