Few Shot

deepke.relation_extraction.few_shot.generate_k_shot module

deepke.relation_extraction.few_shot.generate_k_shot.get_labels(path, name, negative_label='no_relation')[source]

See base class.

deepke.relation_extraction.few_shot.generate_k_shot.generate_k_shot(data_dir)[source]

deepke.relation_extraction.few_shot.get_label_word module

deepke.relation_extraction.few_shot.get_label_word.split_label_words(tokenizer, label_list)[source]
deepke.relation_extraction.few_shot.get_label_word.get_label_word(cfg)[source]