consequent.addSpan(antecedent, i,matchedInterval.start);
consequent.addSpan(antecedent, matchedInterval.end,antecedent.numTokens());
}
else if(i>matchedInterval.end) {
consequent.addSpan(antecedent, 0, matchedInterval.start);
consequent.addSpan(antecedent, matchedInterval.end,i);
consequent.addSpan(antecedent, matchedInterval.start,matchedInterval.end);
consequent.addSpan(antecedent, i,antecedent.numTokens());
}
RuleApplication application = new RuleApplication(antecedent, consequent,
new ApplicationInfo(MOVE,antecedent.lemmaPhrase(matchedInterval.start, matchedInterval.end)));