On Tue, Feb 18, 2014 at 12:43 AM, Lian Ruiting <lianlian1022@gmail.com>wrote:

>
>
> On Mon, Feb 17, 2014 at 11:55 PM, Linas Vepstas <notifications@github.com>wrote:
>
>> In src/java_test/relex/test/TestRelEx.java:
>>
>> >  		rc &= ts.test_sentence ("Some people like pigs more than dogs.",
>> >  			"_advmod(like, more)\n" +
>> >  			"_obj(like, pig)\n" +
>> >  			"_quantity(people, some)\n" +
>> >  			"_subj(like, people)\n" +
>> >  			"than(pig, dog)\n");
>> > -
>> > -		if (rc)
>> > +		rc &= ts.test_sentence ("The woman who lives next door is a registered nurse.",
>> > +			"_obj(be, nurse)\n" +
>> > +    			"_subj(be, woman)\n" +
>> > +    			"_amod(nurse, registered)\n" +
>> > +    			"_advmod(live, next_door)\n" +
>> > +   			"_subj(live, woman)\n" +
>> > +    			"who(woman, live)\n");
>>
>> Hi Ruiting,
>> So what should the output be, for these five sentences? Again, they are:
>>
>> A woman lives with Alice; she is a nurse.
>>
>  _subj(live, woman)
>  with(live, Alice)
>  _subj(be, she)
>  _obj(be, nurse)
>

We need more context and reference resolution algorithms to get _anaph(woman,
she) or _anaph(Alice, she)

>
>  A woman lives with Alice, who is a nurse.
>>
> _subj(live, woman)
> with(live, Alice)
> who(Alice, be)
> _subj(be, Alice)
> _obj(be, nurse)
>
>
>>  A woman lives next door; she is a nurse.
>>
> _subj(live, woman)
> _advmod(live, next_door)
> _subj(be, she)
> _obj(be, nurse)
>
>
> _anaph(woman, she) after applying the reference resolution algorithm...

>  A woman lives next door, who is a nurse.
>>
> _subj(live, woman)
> _advmod(live, next_door)
> who(woman, be)
> _subj(be, woman)
> _obj(be, nurse)
>
>  This sentence is a bit tricky for parsers. For the statistical parsers,
> it's more likely to be parsed "who is a nurse" as the modifier for "door"..
> The link parser can't parse this sentence well either, as it can't get the
> link between "woman" and "who"...
>
> The woman who lives next door is a nurse.
>>
>>
> _subj(be, woman)
> _obj(be, nurse)
> who(woman, live)
> _subj(live, woman)
> _advmod(live, next_door)
>