DeepKE
Getting Started
Start
Install
Example
FAQ
Package
DeepKE
Attribution Extraction
Name Entity Recognition
Relation Extraction
Document
Few Shot
Dataset
Lit Models
deepke.relation_extraction.few_shot.generate_k_shot module
deepke.relation_extraction.few_shot.get_label_word module
Standard
MultiModal
DeepKE
»
DeepKE
»
Relation Extraction
»
Few Shot
Edit on GitHub
Few Shot
¶
Dataset
deepke.relation_extraction.few_shot.dataset.base_data_module module
deepke.relation_extraction.few_shot.dataset.dialogue module
deepke.relation_extraction.few_shot.dataset.processor module
Lit Models
deepke.relation_extraction.few_shot.lit_models.base module
deepke.relation_extraction.few_shot.lit_models.transformer module
deepke.relation_extraction.few_shot.lit_models.util module
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]
¶