Tabnine Logo
Word.getEndOffset
Code IndexAdd Tabnine to your IDE (free)

How to use
getEndOffset
method
in
com.chenlb.mmseg4j.Word

Best Java code snippets using com.chenlb.mmseg4j.Word.getEndOffset (Showing top 7 results out of 315)

origin: looly/hutool

@Override
public int getEndOffset() {
  return this.word.getEndOffset();
}
origin: looly/hutool

@Override
public int getEndOffset() {
  return this.word.getEndOffset();
}
origin: cn.hutool/hutool-all

@Override
public int getEndOffset() {
  return this.word.getEndOffset();
}
origin: medcl/elasticsearch-analysis-mmseg

  @Override
  public final boolean incrementToken() throws IOException {
    clearAttributes();
    Word word = mmSeg.get().next();
    if(word != null) {
      //lucene 3.0
      //termAtt.setTermBuffer(word.getSen(), word.getWordOffset(), word.getLength());
      //lucene 3.1
      termAtt.copyBuffer(word.getSen(), word.getWordOffset(), word.getLength());
      offsetAtt.setOffset(word.getStartOffset(), word.getEndOffset());
      typeAtt.setType(word.getType());
      return true;
    } else {
      end();
      return false;
    }
  }
}
origin: chenlb/mmseg4j-solr

  @Override
  public final boolean incrementToken() throws IOException {
    clearAttributes();
    Word word = mmSeg.next();
    if(word != null) {
      termAtt.copyBuffer(word.getSen(), word.getWordOffset(), word.getLength());
      offsetAtt.setOffset(word.getStartOffset(), word.getEndOffset());
      typeAtt.setType(word.getType());
      return true;
    } else {
      return false;
    }
  }
}
origin: com.chenlb.mmseg4j/mmseg4j-solr

  @Override
  public final boolean incrementToken() throws IOException {
    clearAttributes();
    Word word = mmSeg.next();
    if(word != null) {
      termAtt.copyBuffer(word.getSen(), word.getWordOffset(), word.getLength());
      offsetAtt.setOffset(word.getStartOffset(), word.getEndOffset());
      typeAtt.setType(word.getType());
      return true;
    } else {
      return false;
    }
  }
}
origin: org.tinygroup/org.tinygroup.mmseg4j

@Override
public final boolean incrementToken() throws IOException {
  clearAttributes();
  Word word = mmSeg.next();
  if (word != null) {
    //lucene 3.0
    //termAtt.setTermBuffer(word.getSen(), word.getWordOffset(), word.getLength());
    //lucene 3.1
    termAtt.copyBuffer(word.getSen(), word.getWordOffset(), word.getLength());
    offsetAtt.setOffset(word.getStartOffset(), word.getEndOffset());
    typeAtt.setType(word.getType());
    return true;
  } else {
    end();
    return false;
  }
}
com.chenlb.mmseg4jWordgetEndOffset

Popular methods of Word

  • getStartOffset
    此 word 在整个文本中的偏移位置
  • getString
  • getLength
  • getSen
  • getWordOffset
    词在 char[] sen 的偏移位置
  • getType
  • <init>
  • getDegree
  • setDegree

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • startActivity (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now