extractor.setConfiguration(configuration);
extractor.setDictionaryEntryRepository(dictionaryEntryRepository);
extractor.setVisibilityTranslator(visibilityTranslator);
extractor.setGraph(graph);
AuthorizationRepository authorizationRepository = new InMemoryAuthorizationRepository();
termMentionRepository = new TermMentionRepository(graph, authorizationRepository);
config.put(OpenNLPDictionaryExtractorGraphPropertyWorker.PATH_PREFIX_CONFIG, "file:///" + getClass().getResource(RESOURCE_CONFIG_DIR).getFile());
FileSystem hdfsFileSystem = FileSystem.get(new Configuration());
authorizations = new InMemoryAuthorizations();