Friday, November 21, 2014

Day 11 : More Problems?

Today I realized I had skipped an entire section of base paper that didn't provide any explanation but was able to perform an interesting parsing. It divided complex statements and removed pronouns. I tried to recreate the same. It was easy to remove pronouns using co-reference resolution. To break into constiuent sentences, I found the corresponding verb and the fragment before and after using Stanford CoreNLP parser.

[Bakman 2007]

Input

Ruth had 3 apples. She put 2 apples into a basket. How many apples are there in the basket now, if in the beginning there were 4 apples in the basket?

Output in paper

1) Ruth had 3 apples.
2) Ruth put 2 apples into the basket.
3) There are ? apples in the basket now.
4) There were 4 apples in the basket.

My output:

1) Ruth had 3 apples.
2) Ruth put 2 apples into the basket.
3)  ? apples are there
4) There were 4 apples in the basket.

The pronoun she is resolved. However, I am not getting how many apples are there "in the basket". Need to work on that.

No comments:

Post a Comment