@Override public void reset() throws IOException { super.reset(); hasSavedState = false; concat.clear(); concatAll.clear(); accumPosInc = bufferedPos = bufferedLen = 0; first = true; }
@Override public void reset() throws IOException { currentSetToCheck = null; currentPhrase.setLength(0); lastToken = null; lastEmitted = null; unusedTokens.clear(); positionIncr = 0; super.reset(); }
private List<String> filter(TokenFilter filter) throws IOException { List<String> tas = new ArrayList<>(); CharTermAttribute termAtt = filter.getAttribute(CharTermAttribute.class); filter.reset(); while (filter.incrementToken()) { tas.add(termAtt.toString()); } filter.end(); filter.close(); return tas; }
@Override public void reset() throws IOException { super.reset(); gramSize.reset(); inputWindow.clear(); nextInputStreamToken = null; isNextInputStreamToken = false; numFillerTokensToInsert = 0; isOutputHere = false; noShingleOutput = true; exhausted = false; endState = null; if (outputUnigramsIfNoShingles && !outputUnigrams) { // Fix up gramSize if minValue was reset for outputUnigramsIfNoShingles gramSize.minValue = minShingleSize; } }
@Override public void reset() throws IOException { super.reset(); captureCount = 0; finished = false; inputSkipCount = 0; nextRead = nextWrite = 0; // In normal usage these resets would not be needed, // since they reset-as-they-are-consumed, but the app // may not consume all input tokens (or we might hit an // exception), in which case we have leftover state // here: for (PendingInput input : futureInputs) { input.reset(); } for (PendingOutputs output : futureOutputs) { output.reset(); } }
@Override public void reset() throws IOException { super.reset(); curTermBuffer = null; savePosIncr = 0; }
/** {@inheritDoc} */ @Override public void reset() throws IOException { super.reset(); hyphenated.setLength(0); savedState = null; }
@Override public void reset() throws IOException { super.reset(); this.numSeen = 0; }
@Override public void reset() throws IOException { super.reset(); tokens.clear(); current = null; }
@Override public void reset() throws IOException { super.reset(); }
@Override public void reset() throws IOException { super.reset(); tokenCount = 0; exhausted = false; }
@Override public void reset() throws IOException { super.reset(); if (VERBOSE) System.out.println(input.getClass().getSimpleName() + ".reset()"); }
@Override public void reset() throws IOException { super.reset(); tokenIter = null; }
@Override public void reset() throws IOException { super.reset(); offsetCount = 0; }
public void reset() throws IOException { super.reset(); tokenQueue.clear(); }
@Override public void reset() throws IOException { super.reset(); morphQueue.clear(); currentState = null; }