opencog/relex — pull request #30 by rodsol (2014-05-09 06:40:53+00:00)
Title: changes on unit test

Hi Linas,
I don't think there is a problem on RelEx rule

[java]	Expected = [_advmod(healthy, very), _advmod(very, not), _obj(love, Pizza), _predadj(Pizza, healthy), _quantity(people, most), _subj(love, people), which(Pizza, love)]
[java]	Got = [_advmod(healthy, very), _advmod(very, not), _obj(love, pizza), _predadj(pizza, healthy), _quantity(people, most), _subj(love, people), which(pizza, love)]

if you check the difference between the expected and the result in the unit test the only difference is 'P' izza is capital on the expected one and 'p'izza is small on result generated

when I parse the sentence "Pizza, which most people love, is not very healthy."
here is the result I got

on parse 3 of 4
_advmod(very, not)
_advmod(healthy, very)
_obj(love, Pizza)
_subj(love, people)
_quantity(people, most)
which(Pizza, love)
_predadj(Pizza, healthy)

→ 'P' in Pizza is capital

on parse 4 of 4

_advmod(very, not)
_advmod(healthy, very)
_obj(love, pizza)
_subj(love, people)
_quantity(people, most)
which(pizza, love)
_predadj(pizza, healthy)

→ 'p' is small

both parse have same Parse confidence: 0.2369

So my questions is ...how does the unit test select the parse from list of RelEx output ?
I think in this case the unit test is selecting parse 4 of 4
Why is 'p' small in parse 4 of 4 ? this is the result of the link parser right?