MCPcopy Create free account

hub / github.com/Anery/RSAN / functions

Functions89 in github.com/Anery/RSAN

↓ 6 callersMethodfind_pos
return position list
data_prepare.py:67
↓ 6 callersMethodreset
(self, prefix)
DataLoader.py:124
↓ 4 callersFunctionpickle_dump
(obj, f)
data_prepare.py:16
↓ 4 callersFunctionpickle_load
(f)
misc/utils.py:8
↓ 3 callersMethod__len__
(self)
DataLoader.py:17
↓ 3 callersFunctionread_json
(filename)
data/webnlg/util.py:8
↓ 3 callersMethodread_json
(self, filename)
data_prepare.py:60
↓ 3 callersFunctionsave_checkpoint
(model, infos, optimizer, histories=None, append='')
train.py:22
↓ 3 callersFunctionwrite_data
(f, data)
data/multiNYT/util.py:16
↓ 3 callersFunctionwrite_data
(f, data)
data/webnlg/util.py:16
↓ 2 callersMethod__init__
(self, opt)
networks/decoder.py:61
↓ 2 callersMethodget_batch_dev_test
(self, batch_size, prefix)
DataLoader.py:164
↓ 2 callersMethodget_batch_train
(self, batch_size)
DataLoader.py:135
↓ 2 callersFunctionget_chunk_type
Args: tok: id of token, ex 4 idx_to_tag: dictionary {4: "B-PER", ...} Returns: tuple: "B", "PER"
misc/utils.py:46
↓ 2 callersFunctionis_EPO
(triples)
Test.py:47
↓ 2 callersFunctionis_normal_triple
normal triples means triples are not over lap in entity. example [[e1,e2,r1], [e3,e4,r2]] :param triples :param is_relation_first
Test.py:15
↓ 2 callersMethodprocess_dev_test
(self, dataset)
data_prepare.py:84
↓ 2 callersMethodprocess_sentence
(self, sent_text)
data_prepare.py:233
↓ 2 callersFunctionread_json
(filename)
data/multiNYT/util.py:8
↓ 1 callersFunctionTest
(opt)
Test.py:176
↓ 1 callersMethod__init__
(self, opt)
networks/embedding.py:32
↓ 1 callersFunctionbuild_labels
parameter :label2id_file: filename of label2id
data/multiNYT/util.py:80
↓ 1 callersFunctionbuild_labels
parameter :label2id_file: filename of label2id
data/webnlg/util.py:67
↓ 1 callersFunctionbuild_rel2id
(data, rel2id_file)
data/multiNYT/util.py:66
↓ 1 callersFunctionbuild_word_dict
(data, out_path)
data/webnlg/util.py:23
↓ 1 callersFunctioneval
Evaluation :parameter :parameter :return: P,R,F1
eval_utils.py:7
↓ 1 callersFunctionget_chunks
Given a sequence of tags, group entities and their position Args: seq: np.array[4, 4, 0, 0, ...] sequence of labels tags: dict["O"
misc/utils.py:64
↓ 1 callersMethodinit
(self)
networks/embedding.py:18
↓ 1 callersMethodinit_weights
(self)
networks/decoder.py:12
↓ 1 callersMethodinit_weights
(self)
networks/decoder.py:37
↓ 1 callersMethodinit_weights
(self)
networks/decoder.py:78
↓ 1 callersMethodinit_weights
(self)
networks/embedding.py:44
↓ 1 callersFunctionis_SEO
(triples)
Test.py:40
↓ 1 callersFunctionload_label
(input_label2id)
train.py:17
↓ 1 callersFunctionload_label
(input_label2id)
Test.py:11
↓ 1 callersMethodmasked_mean
(self, sent, mask)
networks/decoder.py:87
↓ 1 callersFunctionmultiple_test
(predictions, targets)
Test.py:104
↓ 1 callersMethodnn_decode
(self, inputs, sen_len)
networks/decoder.py:92
↓ 1 callersFunctionoverlapping_test
(predictions, targets)
Test.py:56
↓ 1 callersMethodprepare
(self)
data_prepare.py:38
↓ 1 callersMethodprocess_train
(self, dataset)
data_prepare.py:121
↓ 1 callersFunctionsplit
(data)
data/multiNYT/util.py:36
↓ 1 callersFunctionsplit
(data)
data/webnlg/util.py:37
↓ 1 callersFunctiontag_mapping
parameters predict_tags : np.array, shape: (rel_number, max_sen_len) cur_relation : list of relation id
misc/utils.py:119
↓ 1 callersFunctiontrain
(opt)
train.py:38
Method__getitem__
(self, idx)
DataLoader.py:20
Method__getitem__
(self, idx)
DataLoader.py:47
Method__init__
(self, opt)
data_prepare.py:25
Method__init__
(self, root, prefix)
DataLoader.py:12
Method__init__
(self, opt)
DataLoader.py:27
Method__init__
(self, opt)
DataLoader.py:107
Method__init__
(self, opt)
networks/decoder.py:6
Method__init__
(self, opt)
networks/decoder.py:27
Method__init__
(self, opt)
networks/encoder.py:6
Method__init__
(self, opt)
networks/embedding.py:10
Method__init__
(self, opt)
model/Rel_based_labeling.py:8
Method__init__
(self)
misc/utils.py:38
Method__init__
(self, Model, opt)
misc/LossWrapper.py:6
Method__len__
(self)
DataLoader.py:41
Functionattn_mapping
(attn_scores, gts)
misc/utils.py:113
Functionbuild_char
()
data/multiNYT/util.py:113
Functionbuild_char
()
data/webnlg/util.py:100
Functionbuild_optimizer
(params, opt)
misc/utils.py:20
Functionbuild_tags
()
data/multiNYT/util.py:105
Functionbuild_tags
()
data/webnlg/util.py:92
Functionbuild_word_dict
(data, out_path)
data/multiNYT/util.py:23
Functionclip_gradient
(optimizer, grad_clip)
misc/utils.py:32
Functiondev_test_collate
(features)
DataLoader.py:66
Functionevaluate
(model, loader, label2id, batch_size, rel_num, prefix)
eval_utils.py:20
Methodforward
(self, sent, rel, mask)
networks/decoder.py:15
Methodforward
(self, sent_h, rel, pool, mask)
networks/decoder.py:43
Methodforward
(self, sent, rel, mask, sen_len)
networks/decoder.py:103
Methodforward
(self, x, sen_len)
networks/encoder.py:21
Methodforward
x: one char sequence. shape: (max_len, max_word_len)
networks/embedding.py:21
Methodforward
x,pos : (batch, max_len) char : (batch, max_len, max_word_len)
networks/embedding.py:52
Methodforward
(self, sent, sen_len, rel, mask, poses=None, chars=None)
model/Rel_based_labeling.py:15
Methodforward
(self, input, target, mask)
misc/utils.py:41
Methodforward
(self, sent, sen_len, rel, mask, label, mask2, poses=None, chars=None)
misc/LossWrapper.py:12
Functionparse_opt
()
config.py:3
Functionparse_opt
()
data/webnlg/config.py:3
Functionpickle_dump
(obj, f)
misc/utils.py:14
Functionpickle_load
(f)
data_prepare.py:10
Functionrun_split
(origin_train, train, test, valid)
data/multiNYT/util.py:57
Functionrun_split
(origin_train, train, test, valid)
data/webnlg/util.py:58
Functionsave_relation_freq
(data, rel2count_filename)
data/multiNYT/util.py:141
Functionsave_relation_freq
(data, rel2count_filename)
data/webnlg/util.py:127
Functionset_lr
(optimizer, lr)
misc/utils.py:28
Functionsetup
(opt)
model/__init__.py:5
Functiontrain_collate
(features)
DataLoader.py:84