Package org.apache.clerezza.uima.utils

Examples of org.apache.clerezza.uima.utils.ExternalServicesFacade


  @Test
  public void testGenerateMethodWithsupportedMediaType() {
    try {

      ExternalServicesFacade externalServicesFacade = new ExternalServicesFacade();
      Map<String, Object> parameterSettings = new HashMap<String, Object>();
      parameterSettings.put("apikey", "04490000a72fe7ec5cb3497f14e77f338c86f2fe");
      parameterSettings.put("licenseID", "g6h9zamsdtwhb93nc247ecrs");
      externalServicesFacade.setParameterSetting(parameterSettings);
      UIMABaseMetadataGenerator baseMetadataGenerator = new UIMABaseMetadataGenerator(externalServicesFacade);
      String textToAnalyze = TEXT_TO_ANALYZE;
      MGraph mGraph = new SimpleMGraph();
      GraphNode node = new GraphNode(new UriRef("test"), mGraph);
      baseMetadataGenerator.generate(node, textToAnalyze.getBytes(), MediaType.TEXT_PLAIN_TYPE);
View Full Code Here


  private UIMAServicesFacade facade;

  private Set<MediaTypeTextExtractor> textExtractors;

  public UIMABaseMetadataGenerator() {
    this.facade = new ExternalServicesFacade();
    this.textExtractors = new TreeSet<MediaTypeTextExtractor>();
  }
View Full Code Here

  private UIMAServicesFacade uimaServicesFacade;

  @Override
  protected void activate(ComponentContext context) throws URISyntaxException {
    uimaServicesFacade = new ExternalServicesFacade();
  }
View Full Code Here

TOP

Related Classes of org.apache.clerezza.uima.utils.ExternalServicesFacade

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.