Package com.clearnlp.nlp.develop

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


      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

  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

Related Classes of com.clearnlp.nlp.develop.IDeveloper

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.