throw new MappingException(e);
}
}
private static void initializeProcessors() {
processors.put(AnnotatedResults.class, new AnnotatedEntitiesProcessor());
processors.put(CategorizationResults.class, new CategorizationProcessor());
processors.put(ConceptResults.class, new ConceptTaggingProcessor());
processors.put(EntitiesResults.class, new RankedEntitiesProcessor());
processors.put(KeywordResults.class, new KeywordProcessor());
processors.put(LanguageDetectionResults.class, new LanguageProcessor());