MCPcopy Create free account
hub / github.com/GateNLP/gate-core / cleanStringFor

Method cleanStringFor

src/main/java/gate/Utils.java:170–172  ·  view source on GitHub ↗

Return the cleaned document text as a String corresponding to the annotation. (Delete leading and trailing whitespace; normalize internal whitespace to single spaces.) @param doc the document from which to extract the document text @param ann the annotation for which to return the text. @return a St

(Document doc, SimpleAnnotation ann)

Source from the content-addressed store, hash-verified

168 * @return a String representing the text content spanned by the annotation.
169 */
170 public static String cleanStringFor(Document doc, SimpleAnnotation ann) {
171 return cleanString(stringFor(doc, ann));
172 }
173
174 /**
175 * Returns the document text between the provided offsets.

Callers

nothing calls this directly

Calls 2

cleanStringMethod · 0.95
stringForMethod · 0.95

Tested by

no test coverage detected