/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CasConsumerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CollectionReaderDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(FlowControllerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
/** * Creates the and link local processing descriptors to ae. * * @param d the d * @throws ResourceInitializationException the resource initialization exception */ private void createAndLinkLocalProcessingDescriptorsToAe(CasInitializerDescription d) throws ResourceInitializationException { aeDescription = UIMAFramework.getResourceSpecifierFactory().createAnalysisEngineDescription(); aeDescription.setAnnotatorImplementationName(d.getImplementationName()); aeDescription.setFrameworkImplementation(d.getFrameworkImplementation()); linkLocalProcessingDescriptorsToAe(d); }
return; implName.setText(className); editor.getAeDescription().setAnnotatorImplementationName(className); valueChanged = true; } catch (JavaModelException e) { .getOutputsNewCASes())); } else if (event.widget == implName) { editor.getAeDescription().setAnnotatorImplementationName( setValueChanged(implName.getText(), editor.getAeDescription() .getAnnotatorImplementationName()));
public AnalysisEngineDescription getCapitalizationNormalization( ExternalResourceDescription aFrequencyProvider) throws ResourceInitializationException { AggregateBuilder ab = new AggregateBuilder(); ab.add(createEngineDescription(BreakIteratorSegmenter.class), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(CapitalizationNormalizer.class, CapitalizationNormalizer.RES_FREQUENCY_PROVIDER, aFrequencyProvider), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(ApplyChangesAnnotator.class), ApplyChangesAnnotator.VIEW_SOURCE, getSourceView(), ApplyChangesAnnotator.VIEW_TARGET, getTargetView()); AnalysisEngineDescription aed = ab.createAggregateDescription(); aed.setAnnotatorImplementationName("Capitalization"); return aed; }
public AnalysisEngineDescription getExpressiveLengtheningNormalization( ExternalResourceDescription aFrequencyProvider) throws ResourceInitializationException { AggregateBuilder ab = new AggregateBuilder(); ab.add(createEngineDescription(BreakIteratorSegmenter.class), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(ExpressiveLengtheningNormalizer.class, ExpressiveLengtheningNormalizer.RES_FREQUENCY_PROVIDER, aFrequencyProvider), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(ApplyChangesAnnotator.class), ApplyChangesAnnotator.VIEW_SOURCE, getSourceView(), ApplyChangesAnnotator.VIEW_TARGET, getTargetView()); AnalysisEngineDescription aed = ab.createAggregateDescription(); aed.setAnnotatorImplementationName("Lengthening"); return aed; }
public AnalysisEngineDescription getUmlautSharpSNormalization( ExternalResourceDescription aFrequencyProvider, int aMinFrequency) throws ResourceInitializationException { AggregateBuilder ab = new AggregateBuilder(); ab.add(createEngineDescription(BreakIteratorSegmenter.class), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription( SharpSNormalizer.class, SharpSNormalizer.RES_FREQUENCY_PROVIDER, aFrequencyProvider, SharpSNormalizer.PARAM_MIN_FREQUENCY_THRESHOLD, aMinFrequency), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(ApplyChangesAnnotator.class), ApplyChangesAnnotator.VIEW_SOURCE, getSourceView(), ApplyChangesAnnotator.VIEW_TARGET, getTargetView()); AnalysisEngineDescription aed = ab.createAggregateDescription(); aed.setAnnotatorImplementationName("Umlaute"); return aed; }
return; editor.getAeDescription().setAnnotatorImplementationName(""); } else { return; editor.getAeDescription().setAnnotatorImplementationName(null);
desc.setFrameworkImplementation(Constants.JAVA_FRAMEWORK_NAME); desc.setPrimitive(true); desc.setAnnotatorImplementationName(componentClass.getName()); org.apache.uima.fit.descriptor.OperationalProperties componentAnno = ReflectionUtil .getInheritableAnnotation(org.apache.uima.fit.descriptor.OperationalProperties.class,
public AnalysisEngineDescription getSpellcorrection(String aModelLocation) throws ResourceInitializationException { AggregateBuilder ab = new AggregateBuilder(); ab.add(createEngineDescription(BreakIteratorSegmenter.class), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(JazzyChecker.class, JazzyChecker.PARAM_MODEL_LOCATION, aModelLocation), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(SpellingNormalizer.class), CAS.NAME_DEFAULT_SOFA, getSourceView()); ab.add(createEngineDescription(ApplyChangesAnnotator.class), ApplyChangesAnnotator.VIEW_SOURCE, getSourceView(), ApplyChangesAnnotator.VIEW_TARGET, getTargetView()); AnalysisEngineDescription aed = ab.createAggregateDescription(); aed.setAnnotatorImplementationName("Spell"); return aed; }