Package org.maltparserx.core.symbol.trie

Examples of org.maltparserx.core.symbol.trie.TrieSymbolTableHandler


    }
    dataFormatManager = new DataFormatManager(inputFormatURL, outputFormatURL);
   
    String mode = OptionManager.instance().getOptionValue(containerIndex, "config", "flowchart").toString().trim();
    if (mode.equals("parse")) {
      symbolTables = new TrieSymbolTableHandler(TrieSymbolTableHandler.ADD_NEW_TO_TMP_STORAGE);
//      symbolTables = new TrieSymbolTableHandler(TrieSymbolTableHandler.ADD_NEW_TO_TRIE);
    } else {
      symbolTables = new TrieSymbolTableHandler(TrieSymbolTableHandler.ADD_NEW_TO_TRIE);
    }
    if (dataFormatManager.getInputDataFormatSpec().getDataStructure() == DataStructure.PHRASE) {
      if (mode.equals("learn")) {
        Set<Dependency> deps = dataFormatManager.getInputDataFormatSpec().getDependencies();
        for (Dependency dep : deps) {
View Full Code Here


   * @return a dependency structure
   * @throws MaltChainedException
   */
  public DependencyStructure toDependencyStructure(String[] tokens, DataFormatSpecification dataFormatSpecification) throws MaltChainedException {
    // Creates a symbol table handler
    SymbolTableHandler symbolTables = new TrieSymbolTableHandler(TrieSymbolTableHandler.ADD_NEW_TO_TRIE);
   
    // Initialize data format instance
    DataFormatInstance dataFormatInstance = dataFormatSpecification.createDataFormatInstance(symbolTables, "none");

    // Creates a dependency graph
View Full Code Here

TOP

Related Classes of org.maltparserx.core.symbol.trie.TrieSymbolTableHandler

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.