Examples of IDeveloper


Examples of com.clearnlp.nlp.develop.IDeveloper

      Element     eConfig = UTXml.getDocumentElement(new FileInputStream(configFile));
      JointFtrXml[]  xmls = getFeatureTemplates(featureFiles);
      String[] trainFiles = UTFile.getSortedFileListBySize(trainDir, ".*", true);
      String[]   devFiles = UTFile.getSortedFileListBySize(devDir, ".*", true);
     
      IDeveloper developer = getDeveloper(mode);
      developer.develop(eConfig, xmls, trainFiles, devFiles, mode, false, -1);
    }
    catch (Exception e) {e.printStackTrace();}
  }
View Full Code Here

Examples of com.clearnlp.nlp.develop.IDeveloper

      Element     eConfig = UTXml.getDocumentElement(new FileInputStream(configFile));
      JointFtrXml[]  xmls = getFeatureTemplates(featureFiles);
      String[] trainFiles = UTFile.getSortedFileListBySize(trainDir, ".*", true);
      String[]   devFiles = UTFile.getSortedFileListBySize(devDir, ".*", true);
     
      IDeveloper developer = getDeveloper(mode);
      developer.develop(eConfig, xmls, trainFiles, devFiles, mode, false, -1);
    }
    catch (Exception e) {e.printStackTrace();}
  }
View Full Code Here

Examples of com.clearnlp.nlp.develop.IDeveloper

  public void generate(String configFile, String[] featureFiles, String trainDir, String inputExt, String mode, int bIdx, int eIdx) throws Exception
  {
    String[]  trainFiles = UTFile.getSortedFileListBySize(trainDir, inputExt, true), devFiles;
    Element      eConfig = UTXml.getDocumentElement(new FileInputStream(configFile));
    JointFtrXml[]   xmls = getFeatureTemplates(featureFiles);
    IDeveloper generator = getDeveloper(mode);
    int i;
   
    try
    {
      for (i=bIdx; i<eIdx; i++)
      {
        devFiles = new String[]{trainFiles[i]};
        generator.develop(eConfig, xmls, trainFiles, devFiles, mode, true, i);
      }
    }
    catch (Exception e) {e.printStackTrace();}
  }
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.