def __init__(self): desc = self.__doc__.strip() keys =\ [MagicKey.discrete_fn(has_correction_star), MagicKey.discrete_fn(ends_with_bang), MagicKey.discrete_fn(ends_with_qmark)] super(SingleEduSubgroup_Punct, self).__init__(desc, keys)
def __init__(self): desc = "parser features" keys =\ [MagicKey.discrete_fn(lemma_subject), MagicKey.discrete_fn(has_FOR_np), MagicKey.discrete_fn(is_question)] super(SingleEduSubgroup_Parser, self).__init__(desc, keys)
def __init__(self, inputs, sf_cache): self.corpus = inputs.corpus self.sf_cache = sf_cache desc = self.__doc__.strip() keys =\ [MagicKey.discrete_fn(is_question_pairs), MagicKey.discrete_fn(dialogue_act_pairs)] super(PairSubgroup_Tuple, self).__init__(desc, keys)
def __init__(self): desc = "the gap between EDUs" keys =\ [MagicKey.continuous_fn(num_edus_between), MagicKey.discrete_fn(same_paragraph), MagicKey.discrete_fn(same_bad_sentence), MagicKey.discrete_fn(same_ptb_sentence)] super(PairSubgroup_Gap, self).__init__(desc, keys)
def __init__(self, sf_cache): self.sf_cache = sf_cache desc = "the gap between EDUs" keys =\ [MagicKey.continuous_fn(num_edus_between), MagicKey.continuous_fn(num_speakers_between), MagicKey.discrete_fn(same_speaker), MagicKey.discrete_fn(same_turn), MagicKey.discrete_fn(has_inner_question)] super(PairSubgroup_Gap, self).__init__(desc, keys)
def __init__(self): desc = "chat history features" keys = [ MagicKey.discrete_fn(speaker_id), MagicKey.discrete_fn(speaker_started_the_dialogue), MagicKey.discrete_fn(speaker_already_spoken_in_dialogue), MagicKey.continuous_fn(speakers_first_turn_in_dialogue), MagicKey.discrete_fn(turn_follows_gap), MagicKey.continuous_fn(position_in_dialogue), MagicKey.continuous_fn(position_in_game), MagicKey.continuous_fn(edu_position_in_turn)] super(SingleEduSubgroup_Chat, self).__init__(desc, keys)
def __init__(self): desc = self.__doc__.strip() keys =\ [MagicKey.continuous_fn(num_tokens), MagicKey.discrete_fn(word_first), MagicKey.discrete_fn(word_last), MagicKey.discrete_fn(has_player_name_exact)] if not sys.version > '3': keys.append(MagicKey.discrete_fn(has_player_name_fuzzy)) keys2 =\ [MagicKey.discrete_fn(feat_has_emoticons), MagicKey.discrete_fn(feat_is_emoticon_only)] keys.extend(keys2) super(SingleEduSubgroup_Token, self).__init__(desc, keys)
def __init__(self, sf_cache): self.sf_cache = sf_cache desc = "the gap between EDUs" keys =\ [MagicKey.continuous_fn(num_edus_between), MagicKey.continuous_fn(num_speakers_between), MagicKey.continuous_fn(num_nonling_tstars_between), MagicKey.discrete_fn(same_speaker), MagicKey.discrete_fn(same_turn), MagicKey.discrete_fn(has_inner_question)] super(PairSubgroup_Gap, self).__init__(desc, keys)
def __init__(self): desc = self.__doc__.strip() keys =\ [MagicKey.meta_fn(feat_grouping)] super(PairSubGroup_Core, self).__init__(desc, keys)