Package org.apache.uima.analysis_engine.impl

Examples of org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl


        if (frameworkImpl.startsWith(Constants.CPP_FRAMEWORK_NAME)) {
          resource = new UimacppAnalysisEngineImpl();
        } else if (frameworkImpl.startsWith(Constants.JAVA_FRAMEWORK_NAME)) {
          if (spec instanceof AnalysisEngineDescription
                  && !((AnalysisEngineDescription) spec).isPrimitive()) {
            resource = new AggregateAnalysisEngine_impl();
          } else {
            resource = new PrimitiveAnalysisEngine_impl();
          }
        } else {
          throw new ResourceInitializationException(
View Full Code Here


          SofaMapping[] sofaMappings, Object... configurationData)
          throws ResourceInitializationException {
    AnalysisEngineDescription desc = createEngineDescription(componentClasses, typeSystem,
            typePriorities, sofaMappings, configurationData);
    // create the AnalysisEngine, initialize it and return it
    AnalysisEngine engine = new AggregateAnalysisEngine_impl();
    engine.initialize(desc, null);
    return engine;
  }
View Full Code Here

          SofaMapping[] sofaMappings, FlowControllerDescription flowControllerDescription,
          Object... configurationData) throws ResourceInitializationException {
    AnalysisEngineDescription desc = createEngineDescription(componentClasses, typeSystem,
            typePriorities, sofaMappings, configurationData, flowControllerDescription);
    // create the AnalysisEngine, initialize it and return it
    AnalysisEngine engine = new AggregateAnalysisEngine_impl();
    engine.initialize(desc, null);
    return engine;
  }
View Full Code Here

          throws ResourceInitializationException {

    AnalysisEngineDescription desc = createEngineDescription(analysisEngineDescriptions,
            componentNames, typePriorities, sofaMappings, null);
    // create the AnalysisEngine, initialize it and return it
    AnalysisEngine engine = new AggregateAnalysisEngine_impl();
    engine.initialize(desc, null);
    return engine;
  }
View Full Code Here

          throws ResourceInitializationException {

    AnalysisEngineDescription desc = createEngineDescription(analysisEngineDescriptions,
            componentNames, typePriorities, sofaMappings, flowControllerDescription);
    // create the AnalysisEngine, initialize it and return it
    AnalysisEngine engine = new AggregateAnalysisEngine_impl();
    engine.initialize(desc, null);
    return engine;
  }
View Full Code Here

      aeDescriptor = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(in1);
      additionalParams = new HashMap();
      // instantiate AE
      // aggregateAE =
      // UIMAFramework.produceAnalysisEngine(desc1,additionalParams);
      aggregateAE = new AggregateAnalysisEngine_impl();
      aggregateAE.initialize(aeDescriptor, additionalParams);

      // get the delegate AE and the Flow Controller
      delegateAE = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator1");
View Full Code Here

      sofamappings[3].setAggregateSofaName("OutputTranslator2");

      desc1.setSofaMappings(sofamappings);

      // instantiate AE
      AggregateAnalysisEngine_impl aggregateAE = new AggregateAnalysisEngine_impl();
      aggregateAE.initialize(desc1, additionalParams);

      // get the first delegate AE
      AnalysisEngine delegateAE1 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator1");
      Assert.assertEquals(2, delegateAE1.getUimaContext().getSofaMappings().length);
      Assert.assertEquals("SourceDocument", delegateAE1.getUimaContext().mapToSofaID(
              "EnglishDocument").getSofaID());

      // get the second delegate AE
      AnalysisEngine delegateAE2 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator2");
      Assert.assertEquals(2, delegateAE2.getUimaContext().getSofaMappings().length);
      Assert.assertEquals("SourceDocument", delegateAE2.getUimaContext().mapToSofaID(
              "EnglishDocument").getSofaID());
View Full Code Here

        if (frameworkImpl.startsWith(Constants.CPP_FRAMEWORK_NAME)) {
          resource = new UimacppAnalysisEngineImpl();
        } else if (frameworkImpl.startsWith(Constants.JAVA_FRAMEWORK_NAME)) {
          if (spec instanceof AnalysisEngineDescription
                  && !((AnalysisEngineDescription) spec).isPrimitive()) {
            resource = new AggregateAnalysisEngine_impl();
          } else {
            resource = new PrimitiveAnalysisEngine_impl();
          }
        } else {
          throw new ResourceInitializationException(
View Full Code Here

      aeDescriptor = UIMAFramework.getXMLParser().parseAnalysisEngineDescription(in1);
      additionalParams = new HashMap();
      // instantiate AE
      // aggregateAE =
      // UIMAFramework.produceAnalysisEngine(desc1,additionalParams);
      aggregateAE = new AggregateAnalysisEngine_impl();
      aggregateAE.initialize(aeDescriptor, additionalParams);

      // get the delegate AE and the Flow Controller
      delegateAE = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator1");
View Full Code Here

      sofamappings[3].setAggregateSofaName("OutputTranslator2");

      desc1.setSofaMappings(sofamappings);

      // instantiate AE
      AggregateAnalysisEngine_impl aggregateAE = new AggregateAnalysisEngine_impl();
      aggregateAE.initialize(desc1, additionalParams);

      // get the first delegate AE
      AnalysisEngine delegateAE1 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator1");
      Assert.assertEquals(2, delegateAE1.getUimaContext().getSofaMappings().length);
      Assert.assertEquals("SourceDocument", delegateAE1.getUimaContext().mapToSofaID(
              "EnglishDocument").getSofaID());

      // get the second delegate AE
      AnalysisEngine delegateAE2 = (PrimitiveAnalysisEngine_impl) aggregateAE._getASB()
              .getComponentAnalysisEngines().get("Translator2");
      Assert.assertEquals(2, delegateAE2.getUimaContext().getSofaMappings().length);
      Assert.assertEquals("SourceDocument", delegateAE2.getUimaContext().mapToSofaID(
              "EnglishDocument").getSofaID());
View Full Code Here

TOP

Related Classes of org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl

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.