The preceding recipe handled coreference between named entities. This recipe will add pronouns to the mix.
This recipe will use an interactive version to help you explore the properties of the coreference algorithm. The system is very dependent on the quality of the named-entity detection, so use examples that the HMM is likely to get right. This was trained on Wall Street Journal articles from the '90s.
java -cp lingpipe-cookbook.1.0.jar:lib/lingpipe-4.1.0.jar: com.lingpipe.cookbook.chapter7.Coreference
Enter text followed by new line >John Smith went to Washington. He was a senator. Sentence Text=John Smith ...