In the previous blog, we discussed about Dependency parsing. Now we will discuss about how to identify the expressions or entities which refer to the same person/thing or any object. This problem is solved using Co-reference resolution concept.
Co-reference resolution(or anaphora resolution) is the task of finding all the expressions that refers to the same entity in multiple sentences.
Example : James told that he would go out for dinner.
Here you can see that ‘James’ and ‘he’, both are referring to the same person.
Co-reference resolution is an important step in Natural language processing i.e. Information retrieval, Question answering etc.
Now we’ll see how we can implement it using Stanford CoreNLP package in java.
Once you execute the above code, you will get “Revolutionary War” and “It” as same entities.
Now it’s your turn to try it out. You can find the full code on github .