simongray / StatementAnnotator

Custom annotator for Stanford CoreNLP that annotates sentences with the underlying statements contained within them.
4 stars 0 forks source link

Not splitting statements with double components #48

Closed simongray closed 8 years ago

simongray commented 8 years ago
        String example = "The app and the house are a big deal.";

This example be split into two statements with different subjects. Currently, this is the output

The app and the house are a big deal.
  |_ statement: {Statement: "The app the house are a big deal", components: 4}
     |_ component: {Subject: "The app"}
     |_ component: {Subject: "the house"}
     |_ component: {DirectObject: "a big deal"}
     |_ component: {Verb: "are"}

Perhaps it can be accomplished by simply checking for duplicate components and then splitting until there are no duplicates left?