Examples of addDataFormatInstance()


Examples of org.maltparserx.core.config.ConfigurationDir.addDataFormatInstance()

    DataFormatManager dataFormatManager = configDir.getDataFormatManager();
    SymbolTableHandler symbolTables = configDir.getSymbolTables();
   
    if (configDir.sizeDataFormatInstance() == 0 || dataFormatManager.getInputDataFormatSpec() != dataFormatManager.getOutputDataFormatSpec()) {
      outputDataFormatInstance = dataFormatManager.getOutputDataFormatSpec().createDataFormatInstance(symbolTables, nullValueStategy);
      configDir.addDataFormatInstance(dataFormatManager.getInputDataFormatSpec().getDataFormatName(), outputDataFormatInstance);
    } else {
      outputDataFormatInstance = configDir.getDataFormatInstance(dataFormatManager.getInputDataFormatSpec().getDataFormatName()); //dataFormatInstances.get(dataFormatManager.getInputDataFormatSpec().getDataFormatName());
    }
  }
 
View Full Code Here

Examples of org.maltparserx.core.config.ConfigurationDir.addDataFormatInstance()

            Set<Dependency> deps = dataFormatManager.getInputDataFormatSpec().getDependencies();
            String nullValueStrategy = OptionManager.instance().getOptionValue(getOptionContainerIndex(), "singlemalt", "null_value").toString();

            for (Dependency dep : dataFormatManager.getInputDataFormatSpec().getDependencies()) {
              dataFormatInstance = dataFormatManager.getDataFormatSpec(dep.getDependentOn()).createDataFormatInstance(configDir.getSymbolTables(), nullValueStrategy);
              configDir.addDataFormatInstance(dataFormatManager.getOutputDataFormatSpec().getDataFormatName(), dataFormatInstance);
            }
           
            String decisionSettings = OptionManager.instance().getOptionValue(getOptionContainerIndex(),"guide", "decision_settings").toString().trim();
            StringBuilder newDecisionSettings = new StringBuilder();
            if (!Pattern.matches(".*A\\.HEADREL.*", decisionSettings)) {
View Full Code Here

Examples of org.maltparserx.core.config.ConfigurationDir.addDataFormatInstance()

        dependency = true;
        HashSet<Dependency> deps = dataFormatManager.getInputDataFormatSpec().getDependencies();
        String nullValueStategy = OptionManager.instance().getOptionValue(getOptionContainerIndex(), "singlemalt", "null_value").toString();
        for (Dependency dep : deps) {
          dataFormatInstance = dataFormatManager.getDataFormatSpec(dep.getDependentOn()).createDataFormatInstance(symbolTables, nullValueStategy);
          configDir.addDataFormatInstance(dataFormatManager.getOutputDataFormatSpec().getDataFormatName(), dataFormatInstance);
        }
      }

      if (dependency == true && phrase == false) {
        graph = new DependencyGraph(symbolTables);
View Full Code Here

Examples of org.maltparserx.core.config.ConfigurationDir.addDataFormatInstance()

  public void initInput(String nullValueStategy) throws MaltChainedException {
    ConfigurationDir configDir = (ConfigurationDir)flowChartinstance.getFlowChartRegistry(org.maltparserx.core.config.ConfigurationDir.class, idName);
    DataFormatManager dataFormatManager = configDir.getDataFormatManager();
    SymbolTableHandler symbolTables = configDir.getSymbolTables();
    inputDataFormatInstance = dataFormatManager.getInputDataFormatSpec().createDataFormatInstance(symbolTables, nullValueStategy);
    configDir.addDataFormatInstance(dataFormatManager.getInputDataFormatSpec().getDataFormatName(), inputDataFormatInstance);

  }
 
  public void initReader(Class<? extends SyntaxGraphReader> syntaxGraphReader, String inputFile, String inputCharSet, String readerOptions, int iterations) throws MaltChainedException {
    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.