Package org.apache.uima.alchemy.digester

Examples of org.apache.uima.alchemy.digester.OutputDigester


* Provider for sentiment analysis output parser
*/
public class SentimentAnalysisDigesterProvider implements DigesterProvider {
  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLSentimentAnalysisDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here


public class AnnotatedEntityDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLAnnotatedEntityExtractionDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here

public class LanguageDetectionDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLLanguageDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here

public class KeywordDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLTextKeywordExctractionDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here

public class MicroformatsDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLMicroformatsDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here

public class CategorizationDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("json")) {
      digester = new JsonTextCategorizationDigester();
    } else if (type.equals("xml")) {
      digester = new XMLTextCategorizationDigester();
    } else
View Full Code Here

import org.apache.uima.alchemy.digester.exception.UnsupportedResultFormatException;

public class ConceptTaggingDigesterProvider implements DigesterProvider {
  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("json")) {
      digester = new JsonTextConceptDigester();
    } else if (type.equals("xml")) {
      digester = new XMLTextConceptDigester();
    } else
View Full Code Here

public class RankedEntityDigesterProvider implements DigesterProvider {

  public OutputDigester getDigester(String type) throws UnsupportedResultFormatException {
    Validate.notEmpty(type);
    OutputDigester digester = null;
    if (type.equals("xml")) {
      digester = new XMLRankedEntityExtractionDigester();
    } else
      throw new UnsupportedResultFormatException(type);
    return digester;
View Full Code Here

TOP

Related Classes of org.apache.uima.alchemy.digester.OutputDigester

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.