*
* It uses the method getSurroundingTree in a somewhat clever way to do the additional annotation
* on the output string instead of the tree object.
*/
public static SimpleTree getSurroundingTreeWithAnnotation(TreebankNode node, String string) {
SimpleTree inner = getSimpleClone(node);
SimpleTree outer = getSurroundingTree(node);
String innerString = inner.toString();
String outerString = outer.toString();
String fullString = outerString.replace(innerString, "(" + string + " " + innerString + ")");
return SimpleTree.fromString(fullString);
}