コード例 #1
0
 @Override
 public void reset() throws IOException {
   super.reset();
   hasSavedState = false;
   concat.clear();
   concatAll.clear();
   accumPosInc = bufferedPos = bufferedLen = 0;
   first = true;
 }
コード例 #2
0
 @Override
 public void reset() throws IOException {
   currentSetToCheck = null;
   currentPhrase.setLength(0);
   lastToken = null;
   lastEmitted = null;
   unusedTokens.clear();
   positionIncr = 0;
   super.reset();
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 @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;
   }
 }
コード例 #5
0
  @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();
    }
  }
コード例 #6
0
 @Override
 public void reset() throws IOException {
   super.reset();
   curTermBuffer = null;
   savePosIncr = 0;
 }
コード例 #7
0
 /** {@inheritDoc} */
 @Override
 public void reset() throws IOException {
   super.reset();
   hyphenated.setLength(0);
   savedState = null;
 }
コード例 #8
0
 @Override
 public void reset() throws IOException {
   super.reset();
   this.numSeen = 0;
 }
 @Override
 public void reset() throws IOException {
   super.reset();
   tokens.clear();
   current = null;
 }
コード例 #10
0
 @Override
 public void reset() throws IOException {
   super.reset();
 }
コード例 #11
0
 @Override
 public void reset() throws IOException {
   super.reset();
   tokenCount = 0;
   exhausted = false;
 }
コード例 #12
0
 @Override
 public void reset() throws IOException {
   super.reset();
   if (VERBOSE) System.out.println(input.getClass().getSimpleName() + ".reset()");
 }
コード例 #13
0
 @Override
 public void reset() throws IOException {
   super.reset();
   tokenIter = null;
 }
コード例 #14
0
 @Override
 public void reset() throws IOException {
   super.reset();
   offsetCount = 0;
 }
コード例 #15
0
ファイル: CutLetterDigitFilter.java プロジェクト: khaliyo/pet
 public void reset() throws IOException {
   super.reset();
   tokenQueue.clear();
 }
コード例 #16
0
 @Override
 public void reset() throws IOException {
   super.reset();
   morphQueue.clear();
   currentState = null;
 }