Package com.atilika.kuromoji.trie

Examples of com.atilika.kuromoji.trie.Trie


import java.util.Set;

public class DoubleArrayTrieBuilder {

  public static DoubleArrayTrie build(Set<Entry<Integer, String>> entries, boolean compactTries) {
    Trie tempTrie = buildTrie(entries);
    DoubleArrayTrie daTrie = new DoubleArrayTrie(compactTries);
    daTrie.build(tempTrie);
    return daTrie;
  }
View Full Code Here


    daTrie.build(tempTrie);
    return daTrie;
  }
 
  public static Trie buildTrie(Set<Entry<Integer, String>> entries) {
    Trie trie = new Trie();
    for (Entry<Integer, String> entry : entries) {
      String surfaceForm = entry.getValue();
      trie.add(surfaceForm);
    }
    return trie;
  }
View Full Code Here

TOP

Related Classes of com.atilika.kuromoji.trie.Trie

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.