Put the tree in the CoreMap for the sentence, also add any
dependency graphs to the sentence, and fill in missing tag annotations.
Thread safety note: nothing special is done to ensure the thread
safety of the GrammaticalStructureFactory. However, both the
EnglishGrammaticalStructureFactory and the
ChineseGrammaticalStructureFactory are thread safe.
public static void setMissingTags(CoreMap sentence,
Set the tags of the original tokens and the leaves if they
aren't already set.