Package WordSegment

Examples of WordSegment.FMM


  }

  @Override
  public char[] parseLanguage(String document) {
    StringBuilder stringBuilder = new StringBuilder(document.length());
    WordSegment wordSegmenter = new WordSegment(new FMM());
    List<String> segmented = wordSegmenter.segment(document);
    for (String word : segmented) {
      stringBuilder.append(word).append(" ");
    }
    return stringBuilder.toString().toCharArray();
View Full Code Here

TOP

Related Classes of WordSegment.FMM

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.