Similar to Seq's combination, but combining sequences of sequences, with the inner sequences being of size size
If we have two controllers and one controlled, we want two sets, each with one controller and one controlled; this function handles the general case
Make a map from EventMentions to the sieves used to find their antecedents (if any)
Using subfunctions for TextBoundMentions, SimpleEvents, and ComplexEvents, create maps for each mention in mentions to its antecedent as determined by the linking functions already applied, creating new mentions as necessary
Using subfunctions for TextBoundMentions, SimpleEvents, and ComplexEvents, create maps for each mention in mentions to its antecedent as determined by the linking functions already applied, creating new mentions as necessary
all the input mentions with their antecedents already chosen by the linking functions
mentions with generic mentions replaced by their antecedents
Make a map from the given ComplexEvent mentions (whether they are RelationMentions or EventMentions) to the same mentions but with any generic mentions (including in the arguments) replaced with their non-generic antecedents.
Make a map from the given SimpleEvent mentions to the same mentions but with any generic mentions (including in the arguments) replaced with their non-generic antecedents.
Make a map from TextBoundMentions to copies of themselves with a maximum of 1 antecedent
Make a map from TextBoundMentions to the sieves used to find their antecedents (if any)