HLR / DomiKnowS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested `has_a` relationship Problem

hfaghihi15 opened this issue · comments

Considering the following graph.

sentence = Concept('sentence')
word = Concept('word')
(scw, ) = sentence.contains(word)
phrase = Concept('phrase')
(pw1, pw2) = phrase.has_a(word, word)
pair = Concept('pair')
(pa1, pa2) = pair.has_a(phrase, phrase)

We want to be able to both create pair instances and do inference based on the predictions on span and pair concepts.

@auszok Can you run the example here? Although it seems we need to change the way we represent the constraints if we plan to use these representations.

@hfaghihi15 There is no span in the example graph. Have you committed it?

@hfaghihi15 There is no span in the example graph. Have you committed it?

I have renamed it to phrase to be consistent with the first test of CONLL.