Added custom name string functionality

This commit is contained in:
2019-01-16 09:09:25 +01:00
parent 2d7d5169cc
commit 4a53362566
7 changed files with 241 additions and 90 deletions

View File

@@ -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<>();