Package org.apache.uima.analysis_engine.annotator

Examples of org.apache.uima.analysis_engine.annotator.AnnotatorConfigurationException


      }

      processAllConfigurationParameters(configParameterNames, configParameters);
      initTokenizer(configParameterNames, configParameters);
    } catch (Exception e) {
      throw new AnnotatorConfigurationException(e);
    }

  }
View Full Code Here


      try {
         // read annotator name from configuration parameter 'AnnotatorName'
         this.name = secureGetConfigParameterValue(context, "AnnotatorName",
               "defaultName");
      } catch (AnnotatorContextException e) {
         throw new AnnotatorConfigurationException(e);
      }

   }
View Full Code Here

    if (functionCounted >= functionCounter) {
      exceptionThrown();
      logger.log(LOG_LEVEL, "the function " + functionName
              + " is trying to throw the following exception: " + functionError);
      if (functionError.equals("AnnotatorConfigurationException")) {
        throw new AnnotatorConfigurationException();
      } else if (functionError.equals("AnnotatorInitializationException")) {
        throw new AnnotatorInitializationException();
      } else {
        throwAnException(functionError);
      }
View Full Code Here

      try {
        logger.info("Using lucene index: " + indexDir.getAbsolutePath());
      }
      catch (Exception e) {
        throw new AnnotatorConfigurationException(e);
      }

      // For the sample dictionary, we use the following lucene index.
      //indexPath = "lookup/snomed-like_codes_sample";
     
View Full Code Here

    if (functionCounted >= functionCounter) {
      exceptionThrown();
      logger.log(LOG_LEVEL, "the function " + functionName
              + " is trying to throw the following exception: " + functionError);
      if (functionError.equals("AnnotatorConfigurationException")) {
        throw new AnnotatorConfigurationException();
      } else if (functionError.equals("AnnotatorInitializationException")) {
        throw new AnnotatorInitializationException();
      } else {
        throwAnException(functionError);
      }
View Full Code Here

        }
      }

      if ((includedTokenClasses != null) || (excludedTokenClasses != null)) {
        if (tokenClassFeatureName == null) {
          throw new AnnotatorConfigurationException();
        }
      }

      if ((includedTokenTypes != null) || (excludedTokenTypes != null)) {
        if (tokenTypeFeatureName == null) {
          throw new AnnotatorConfigurationException();
        }
      }
      stopWords = initializeStopWordList(stopWordList);
    } catch (AnnotatorContextException ie) {
      throw new AnnotatorConfigurationException(ie);
    }

  }
View Full Code Here

    IModelResource modelResource = null;
    try {
      modelResource = (IModelResource) getContext().getResourceObject(model_file_param);
    } catch (Exception e) {
      throw new AnnotatorConfigurationException(e);
    }

    InputStream model = modelResource.getInputStream();
    ModelGeneration oRead = null;
View Full Code Here

      try {
         // read annotator name from configuration parameter 'AnnotatorName'
         this.name = secureGetConfigParameterValue(context, "AnnotatorName",
               "defaultName");
      } catch (AnnotatorContextException e) {
         throw new AnnotatorConfigurationException(e);
      }

   }
View Full Code Here

        }
      }

      if ((includedTokenClasses != null) || (excludedTokenClasses != null)) {
        if (tokenClassFeatureName == null) {
          throw new AnnotatorConfigurationException();
        }
      }

      if ((includedTokenTypes != null) || (excludedTokenTypes != null)) {
        if (tokenTypeFeatureName == null) {
          throw new AnnotatorConfigurationException();
        }
      }
      stopWords = initializeStopWordList(stopWordList);
    } catch (AnnotatorContextException ie) {
      throw new AnnotatorConfigurationException(ie);
    }

  }
View Full Code Here

        // System.err.println ("NEW DICTIONARY:\n" + dict.toString());
        // debugWrite (dictDebugFile, dict.toString());
      }

    } catch (Exception e) {
      throw new AnnotatorConfigurationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.analysis_engine.annotator.AnnotatorConfigurationException

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.