Hi Ruiting,
So what should the output be, for these five sentences? Again, they are:

A woman lives with Alice; she is a nurse.
A woman lives with Alice, who is a nurse.
A woman lives next door; she is a nurse.
A woman lives next door, who is a nurse.
The woman who lives next door is a nurse.