sentimentScores.put(id, score);
}
// Read lines from the tree structure file. This is a file of parent pointers for each tree.
int index = 0;
PTBEscapingProcessor escaper = new PTBEscapingProcessor();
List<Tree> trees = Generics.newArrayList();
for (String line : IOUtils.readLines(parseFilename, "utf-8")) {
String[] pieces = line.split("\\|");
List<Integer> parentPointers = CollectionUtils.transformAsList(Arrays.asList(pieces), arg -> Integer.valueOf(arg) - 1);
Tree tree = convertTree(parentPointers, sentences.get(index), phraseIds, sentimentScores, escaper);