Examples of AssertionDecoderConfiguration


Examples of org.mitre.medfacts.i2b2.api.AssertionDecoderConfiguration

      {
        String message = String.format("problem accessing resource");
        throw new RuntimeException(message, e);
      }

      AssertionDecoderConfiguration assertionDecoderConfiguration = new AssertionDecoderConfiguration();

      logger.info(String.format("scope model file: %s", scopeModelFilePath));
      logger.info(String.format("cue model file: %s", cueModelFilePath));
      ScopeParser scopeParser = new ScopeParser(scopeModelFilePath,
          cueModelFilePath);
      assertionDecoderConfiguration.setScopeParser(scopeParser);

      logger.info(String.format("pos model file: %s", posModelFilePath));
      PartOfSpeechTagger posTagger = new PartOfSpeechTagger(posModelFilePath);
      assertionDecoderConfiguration.setPosTagger(posTagger);

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
View Full Code Here

Examples of org.mitre.medfacts.i2b2.api.AssertionDecoderConfiguration

      {
        String message = String.format("problem accessing resource");
        throw new RuntimeException(message, e);
      }

      AssertionDecoderConfiguration assertionDecoderConfiguration = new AssertionDecoderConfiguration();

      logger.info(String.format("scope model file: %s", scopeModelFilePath));
      logger.info(String.format("cue model file: %s", cueModelFilePath));
      ScopeParser scopeParser = new ScopeParser(scopeModelFilePath,
          cueModelFilePath);
      assertionDecoderConfiguration.setScopeParser(scopeParser);

      logger.info(String.format("pos model file: %s", posModelFilePath));
      PartOfSpeechTagger posTagger = new PartOfSpeechTagger(posModelFilePath);
      assertionDecoderConfiguration.setPosTagger(posTagger);

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
View Full Code Here

Examples of org.mitre.medfacts.i2b2.api.AssertionDecoderConfiguration

      {
        String message = String.format("problem accessing resource");
        throw new RuntimeException(message, e);
      }

      AssertionDecoderConfiguration assertionDecoderConfiguration = new AssertionDecoderConfiguration();

      logger.info(String.format("scope model file: %s", scopeModelFilePath));
      logger.info(String.format("cue model file: %s", cueModelFilePath));
      ScopeParser scopeParser = new ScopeParser(scopeModelFilePath,
          cueModelFilePath);
      assertionDecoderConfiguration.setScopeParser(scopeParser);

      logger.info(String.format("pos model file: %s", posModelFilePath));
      PartOfSpeechTagger posTagger = new PartOfSpeechTagger(posModelFilePath);
      assertionDecoderConfiguration.setPosTagger(posTagger);

      Set<String> enabledFeatureIdSet = null;
      enabledFeatureIdSet = BatchRunner
          .loadEnabledFeaturesFromFile(enabledFeaturesFile);
      assertionDecoderConfiguration.setEnabledFeatureIdSet(enabledFeatureIdSet);

      JarafeMEDecoder assertionDecoder = null;
      assertionDecoder = new JarafeMEDecoder(assertionModelFile);
      assertionDecoderConfiguration.setAssertionDecoder(assertionDecoder);

      this.assertionDecoderConfiguration = assertionDecoderConfiguration;
  }
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.