On order equivalences between distance and similarity measures on sequences and trees.- Scalable Corpus Annotation by Graph Construction and Label …