Package org.apache.uima.analysis_engine.annotator

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


    } else if (strategyString.equals(PARAMVALUE_SKIPANYMATCH)) {
      return SkipAnyMatch;
    } else if (strategyString.equals(PARAMVALUE_SKIPANYMATCHALLOWOVERLAP)) {
      return SkipAnyMatchAllowOverlap;
    } else {
      throw new AnnotatorConfigurationException();
    }
  }
View Full Code Here


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

    return modelResource.getModel();
  }
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

         indexDirAbsPath = indexDir.getAbsolutePath();

         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

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

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

    } else if (strategyString.equals(PARAMVALUE_SKIPANYMATCH)) {
      return SkipAnyMatch;
    } else if (strategyString.equals(PARAMVALUE_SKIPANYMATCHALLOWOVERLAP)) {
      return SkipAnyMatchAllowOverlap;
    } else {
      throw new AnnotatorConfigurationException();
    }
  }
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

      }

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

  }
View Full Code Here

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

    return modelResource.getModel();
  }
View Full Code Here

      conWords = readLinesFromFile(conWordsFile.getAbsolutePath());
     
    }
    catch (Exception ace)
    {
      throw new AnnotatorConfigurationException(ace);
    }
  }
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.