Skip to content

Commit 8630893

Browse files
committed
Remove from CoNLLUReader a method not used anywhere
1 parent a9937e2 commit 8630893

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/edu/stanford/nlp/pipeline/CoNLLUReader.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -284,22 +284,6 @@ public List<Annotation> readCoNLLUFile(String filePath) throws IOException {
284284
return docs.stream().map(doc -> convertCoNLLUDocumentToAnnotation(doc)).collect(Collectors.toList());
285285
}
286286

287-
/**
288-
* Read a CoNLL-U file and generate a list of CoNLL-X lines
289-
**/
290-
public List<String> readCoNLLUFileCreateCoNLLXLines(String filePath) throws IOException {
291-
List<CoNLLUDocument> docs = readCoNLLUFileCreateCoNLLUDocuments(filePath);
292-
List<String> conllXLines = new ArrayList<String>();
293-
for (CoNLLUDocument doc : docs) {
294-
for (CoNLLUSentence sentence : doc.sentences) {
295-
conllXLines.addAll(sentence.tokenLines);
296-
// add a blank line between sentences
297-
conllXLines.add("");
298-
}
299-
}
300-
return conllXLines;
301-
}
302-
303287
/**
304288
* Read a CoNLL-U file and generate a list of CoNLLUDocument objects
305289
**/

0 commit comments

Comments
 (0)