Examples of ParameterSettings


Examples of org.apache.ctakes.relationextractor.eval.ParameterSettings

      File descriptorsDirectory) throws Exception {

    // get the annotator class and best parameters for this relation
    Class<? extends RelationExtractorAnnotator> annotatorClass =
        RelationExtractorEvaluation.ANNOTATOR_CLASSES.get(relationClass);
    ParameterSettings params = RelationExtractorEvaluation.BEST_PARAMETERS.get(relationClass);

    // train the relation extractor
    File trainDirectory = new File(resourcesDirectory, modelPath);
    RelationExtractorEvaluation evaluation =
        new RelationExtractorEvaluation(trainDirectory, relationClass, annotatorClass, params);
View Full Code Here

Examples of org.apache.ctakes.relationextractor.eval.RelationExtractorEvaluation.ParameterSettings

    File modelsDirModExtractor = new File(modelsDirBase, "modifier_extractor");
    File modelsDirDegreeOf = new File(modelsDirBase, "degree_of");
    File modelsDirEMPair = new File(modelsDirBase, "em_pair");
   
    // Initialize component parameters
    ParameterSettings degreeOfParams = new ParameterSettings(false, 1.0f, "linear", 0.05, 1.0);
    ParameterSettings emPairParams = new ParameterSettings(false, 0.5f, "linear", 0.05, 1.0);

    // For now all three components use MultiClass SVMs for classification
    Class<? extends DataWriter<String>> dataWriterClass = LIBSVMStringOutcomeDataWriter.class;
       
    // Train and write models
View Full Code Here

Examples of org.apache.ctakes.temporal.eval.EvaluationOfEventTimeRelations.ParameterSettings

    }else{
      trainItems = THYMEData.getTrainPatientSets(patientSets);
      devItems = THYMEData.getDevPatientSets(patientSets);
      testItems = THYMEData.getTestPatientSets(patientSets);
    }
    ParameterSettings params = allParams;

    //    possibleParams.add(defaultParams);

    //    for(ParameterSettings params : possibleParams){
    try{
View Full Code Here

Examples of org.apache.ctakes.temporal.eval.EvaluationOfEventTimeRelations.ParameterSettings

    List<Integer> patientSets = options.getPatients().getList();
    List<Integer> trainItems = THYMEData.getTrainPatientSets(patientSets);
    List<Integer> devItems = THYMEData.getDevPatientSets(patientSets);
    List<Integer> testItems = THYMEData.getTestPatientSets(patientSets);
    File workingDir = new File("target/eval/temporal-relations/event-event/");
    ParameterSettings params = defaultParams;
    EvaluationOfEventEventRelations evaluation = new EvaluationOfEventEventRelations(
        workingDir,
        options.getRawTextDirectory(),
        options.getXMLDirectory(),
        options.getXMLFormat(),
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.