adaamko / POTATO

XAI based human-in-the-loop framework for automatic rule-learning.
MIT License
47 stars 8 forks source link

pattern matching bug (caused by self-loops?) #31

Closed recski closed 2 years ago

recski commented 2 years ago

This pattern on the BRISE dataset, for the label GebauedeHoeheMax:

(u_482 / betragen :2 (u_96 / m :0 (u_734 / .* :0 (u_127 / hoechstens))) :1 (u_123 / Gebaeudehoehe))

Doesn't match many sentences, such as no. 283, 288 when using the "all" and "gold" datasets in the directory /home/grecski/potato_debug_data/

adaamko commented 2 years ago

@recski it was caused of self loops, when loading the graph in set_graphs(), we remove self loops with networkx, the pattern should match then