def __init__(self, neg_pattern_file, uncertainty_pattern_file, sentence_rule=False): self.sentence_rule = sentence_rule self.neg_patterns = ngrex.load(neg_pattern_file) self.uncertain_patterns = ngrex.load(uncertainty_pattern_file)
def __init__(self, pre_negation_uncertainty_path, negation_path, post_negation_uncertainty_path): self.neg_patterns = ngrex.load(negation_path) self.uncertain_patterns = ngrex.load(post_negation_uncertainty_path) self.preneg_uncertain_patterns\ = ngrex.load(pre_negation_uncertainty_path)
def __init__(self, pre_negation_uncertainty_path, negation_path, post_negation_uncertainty_path): super(ModifiedDetector, self).__init__(negation_path, post_negation_uncertainty_path) self.preneg_uncertain_patterns = ngrex.load( pre_negation_uncertainty_path)