/** Allows choices of how to format Label. * * @param format An instance of the OutputFormat enum (the same as for a CoreLabel) * @return A String representation of the label, including marking copy nodes with primes (') */ public String toString(CoreLabel.OutputFormat format) { return label.toString(format) + toPrimes(); }
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() + ")"; }
/** Allows choices of how to format Label. * * @param format An instance of the OutputFormat enum (the same as for a CoreLabel) * @return A String representation of the label, including marking copy nodes with primes (') */ public String toString(CoreLabel.OutputFormat format) { return label.toString(format) + toPrimes(); }
/** Allows choices of how to format Label. * * @param format An instance of the OutputFormat enum (the same as for a CoreLabel) * @return A String representation of the label, including marking copy nodes with primes (') */ public String toString(CoreLabel.OutputFormat format) { return label.toString(format) + toPrimes(); }
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() + ")"; }
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() + ")"; }