private void initialize(ResourceManager rm_, Comparator<String, EntailmentResult> comparator) throws IOException { ResourceManager fullRm = new SimConfigurator().getConfig(rm_); double threshold = fullRm.getDouble(SimConfigurator.LLM_ENTAILMENT_THRESHOLD.key); tokenizer = new IllinoisTokenizer(); this.comparator = comparator; filter = new WordListFilter(fullRm); neAligner = new Aligner<String, EntailmentResult>(new NEComparator(), filter); aligner = new Aligner<String, EntailmentResult>(comparator, filter); scorer = new GreedyAlignmentScorer<String>(threshold); }