try {
ExtractorAlchemyAPI both = new ExtractorAlchemyAPI();
entity_extractor_mappings.put("alchemyapi", both);
text_extractor_mappings.put("alchemyapi", both);
ExtractorAlchemyAPI_Metadata both_metadata = new ExtractorAlchemyAPI_Metadata();
entity_extractor_mappings.put("alchemyapi-metadata", both_metadata);
text_extractor_mappings.put("alchemyapi-metadata", both_metadata);
}
catch (Exception e) {
logger.warn("Can't use AlchemyAPI as entity/text extractor: " + e.getMessage());