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)
| 66 | class 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: |