Java Code Examples for org.apache.uima.fit.factory.AnalysisEngineFactory#createPrimitiveDescription()

The following examples show how to use org.apache.uima.fit.factory.AnalysisEngineFactory#createPrimitiveDescription() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StemmerAnnotator.java    From Canova with Apache License 2.0 5 votes vote down vote up
public static AnalysisEngineDescription getDescription(String language)
        throws ResourceInitializationException {
    return AnalysisEngineFactory.createPrimitiveDescription(
            StemmerAnnotator.class,
            SnowballStemmer.PARAM_STEMMER_NAME,
            language);
}
 
Example 2
Source File: SentenceAnnotator.java    From Canova with Apache License 2.0 5 votes vote down vote up
public static AnalysisEngineDescription getDescription() throws ResourceInitializationException {
  return AnalysisEngineFactory.createPrimitiveDescription(
             SentenceAnnotator.class,
             PARAM_SENTENCE_MODEL_PATH,
             ParamUtil.getParameterValue(PARAM_SENTENCE_MODEL_PATH, "/models/en-sent.bin"),
             PARAM_WINDOW_CLASS_NAMES,
             ParamUtil.getParameterValue(PARAM_WINDOW_CLASS_NAMES, null));
}
 
Example 3
Source File: StemmerAnnotator.java    From deeplearning4j with Apache License 2.0 4 votes vote down vote up
public static AnalysisEngineDescription getDescription(String language) throws ResourceInitializationException {
    return AnalysisEngineFactory.createPrimitiveDescription(StemmerAnnotator.class,
                    SnowballStemmer.PARAM_STEMMER_NAME, language);
}
 
Example 4
Source File: SentenceAnnotator.java    From deeplearning4j with Apache License 2.0 4 votes vote down vote up
public static AnalysisEngineDescription getDescription() throws ResourceInitializationException {
    return AnalysisEngineFactory.createPrimitiveDescription(SentenceAnnotator.class, PARAM_SENTENCE_MODEL_PATH,
                    ParamUtil.getParameterValue(PARAM_SENTENCE_MODEL_PATH, "/models/en-sent.bin"),
                    PARAM_WINDOW_CLASS_NAMES, ParamUtil.getParameterValue(PARAM_WINDOW_CLASS_NAMES, null));
}