Added custom name string functionality
This commit is contained in:
@@ -882,7 +882,8 @@ public class XML_processing {
|
||||
}
|
||||
}
|
||||
} catch (FileNotFoundException | XMLStreamException e) {
|
||||
e.printStackTrace();
|
||||
throw new java.lang.RuntimeException("XMLStreamException | FileNotFoundException");
|
||||
// e.printStackTrace();
|
||||
} finally {
|
||||
if (eventReader != null) {
|
||||
try {
|
||||
@@ -1486,7 +1487,8 @@ public class XML_processing {
|
||||
LineIterator.closeQuietly(regiIt);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
throw new java.lang.RuntimeException("IOException");
|
||||
// e.printStackTrace();
|
||||
}
|
||||
|
||||
int numLines = 0;
|
||||
@@ -1539,7 +1541,7 @@ public class XML_processing {
|
||||
// beginning tags
|
||||
|
||||
// taxonomy
|
||||
if (line.length() > 4 && line.substring(1, 5).equals("text")) {
|
||||
if (stats.getCorpus().getTaxonomy().size() > 0 && line.length() > 4 && line.substring(1, 5).equals("text")) {
|
||||
String[] split = line.split("\" ");
|
||||
currentFiletaxonomy = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user