Skip to content

Commit

Permalink
hmmm testing?
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa authored and Stanford NLP committed Dec 20, 2014
1 parent cdfc0c4 commit d9a4440
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/edu/stanford/nlp/process/DocumentPreprocessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,15 @@ public String[] apply(String in) {
}

private void primeNext() {
nextSent = Generics.newArrayList(nextSentCarryover);
nextSentCarryover.clear();
boolean seenBoundary = false;

if (inputReader == null) {
// we've already been out of stuff and have closed the input reader; so just return
return;
}

nextSent = Generics.newArrayList(nextSentCarryover);
nextSentCarryover.clear();
boolean seenBoundary = false;

if (!tokenizer.hasNext()) {
IOUtils.closeIgnoringExceptions(inputReader);
inputReader = null;
Expand Down

0 comments on commit d9a4440

Please sign in to comment.