}
private static String toStringIndex(TypedDependency td, Map<Integer, Integer> indexToPos) {
IndexedWord gov = td.gov();
IndexedWord dep = td.dep();
return td.reln() + "(" + gov.value() + "-" + indexToPos.get(gov.index()) + gov.toPrimes() + ", " + dep.value() + "-" + indexToPos.get(dep.index()) + dep.toPrimes() + ")";
}
// Note that these field constants are 0-based whereas much documentation is 1-based