File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/edu/stanford/nlp/pipeline Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff 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 **/
You can’t perform that action at this time.
0 commit comments