Package org.wltea.analyzer.core

Examples of org.wltea.analyzer.core.IKSegmenter


   * @return
   */
  private static List<Lexeme> doAnalyze(String keywords){
    List<Lexeme> lexemes = new ArrayList<Lexeme>();

    IKSegmenter ikSeg = new IKSegmenter(new StringReader(keywords));
    try{
      Lexeme l = null;
      while( (l = ikSeg.next()) != null){
        lexemes.add(l);
      }
    }catch(IOException e){
      e.printStackTrace();
    }
View Full Code Here


      offsetAtt = addAttribute(OffsetAttribute.class);
      termAtt = addAttribute(CharTermAttribute.class);
      typeAtt = addAttribute(TypeAttribute.class);
        posIncrAtt = addAttribute(PositionIncrementAttribute.class);

        _IKImplement = new IKSegmenter(input , settings, environment);
  }
View Full Code Here

TOP

Related Classes of org.wltea.analyzer.core.IKSegmenter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.