SYMBOL INDEX (80 symbols across 12 files) FILE: config.py class Config (line 3) | class Config(object): method parse (line 63) | def parse(self, kwargs): FILE: data/Data.py class Data (line 11) | class Data(Dataset): method __init__ (line 12) | def __init__(self, opt, case=0): method __len__ (line 33) | def __len__(self): method __getitem__ (line 36) | def __getitem__(self, idx): FILE: helpData.py function load_data (line 9) | def load_data(path, case=0): function write2file (line 32) | def write2file(data, path): class DataHelper (line 36) | class DataHelper(object): method __init__ (line 37) | def __init__(self, opt): method get_relations (line 50) | def get_relations(self): method down2topForDatas (line 121) | def down2topForDatas(self, datas): method get_positions (line 137) | def get_positions(self, data_list, map_str): method get_tag (line 192) | def get_tag(self, word_list, entity_list, type_list): method get_entity_list_and_type_list (line 218) | def get_entity_list_and_type_list(self, data_list): method get_sample_exist_entity2rlation (line 234) | def get_sample_exist_entity2rlation(self, word_list, spo_list): method get_sample_all_entity2relation (line 259) | def get_sample_all_entity2relation(self, tags_list, golden_map): method get_sens_and_tags_and_entsRel (line 294) | def get_sens_and_tags_and_entsRel(self, datas, case=0): method process_data (line 366) | def process_data(self): FILE: main.py function load_data (line 21) | def load_data(path): function now (line 36) | def now(): function collate_fn (line 40) | def collate_fn(batch): function set_up (line 44) | def set_up(opt): function train (line 52) | def train(**kwargs): function evaluate (line 138) | def evaluate(opt, model, steps, data_loader, epoch, case='dev'): function tofile (line 190) | def tofile(**kwargs): FILE: metrics.py function load_data (line 15) | def load_data(path): function f1_score_ent_rel (line 30) | def f1_score_ent_rel(g_entRel, p_entRel): function get_entities (line 49) | def get_entities(seq, suffix=False): function end_of_chunk (line 90) | def end_of_chunk(prev_tag, tag, prev_type, type_): function start_of_chunk (line 120) | def start_of_chunk(prev_tag, tag, prev_type, type_): function f1_score (line 150) | def f1_score(y_true, y_pred, average='micro', digits=2, suffix=False): function accuracy_score (line 188) | def accuracy_score(y_true, y_pred): function classification_report (line 221) | def classification_report(y_true, y_pred, digits=2, suffix=False): function get_sent2triple_set (line 297) | def get_sent2triple_set(json_datas): function eval_file (line 312) | def eval_file(predict_json, golden_file_path): function judge_data_quality (line 339) | def judge_data_quality(opt): FILE: models/BERT_CNN_CRF.py class BERT_CNN_CRF (line 11) | class BERT_CNN_CRF(BasicModule): method __init__ (line 12) | def __init__(self, opt): method init_weights (line 29) | def init_weights(self): method match_entities (line 36) | def match_entities(self, tags_lists): method get_ent_pair_matrix (line 64) | def get_ent_pair_matrix(self, positions, sen_matrix): method forward (line 100) | def forward(self, batch_data, tags=None, entRels=None): FILE: models/BERT_MUL_CNN.py class BERT_MUL_CNN (line 11) | class BERT_MUL_CNN(BasicModule): method __init__ (line 12) | def __init__(self, opt): method init_weights (line 29) | def init_weights(self): method match_entities (line 33) | def match_entities(self, tags_lists): method get_ent_pair_matrix (line 61) | def get_ent_pair_matrix(self, positions, sen_matrix): method forward (line 97) | def forward(self, batch_data, tags=None, entRels=None): FILE: models/BasicModule.py class BasicModule (line 5) | class BasicModule(torch.nn.Module): method __init__ (line 10) | def __init__(self): method load (line 13) | def load(self, path): method save (line 20) | def save(self, opt, epoch=0): FILE: modules/attenter.py class Attenter (line 5) | class Attenter(nn.Module): method __init__ (line 7) | def __init__(self, att_method='Hdot', f_dim=None, q_dim=None, q_num=No... method init_weight (line 43) | def init_weight(self): method sequence_mask (line 55) | def sequence_mask(self, sequence_length, max_len=None): method Mask (line 70) | def Mask(self, inputs, sqe_len=None): method forward (line 88) | def forward(self, W, Q, sqe_len=None): FILE: modules/embedder.py class Embedder (line 6) | class Embedder(nn.Module): method __init__ (line 7) | def __init__(self, emb_method='glove', glove_param=None, elmo_param=No... method init_elmo (line 37) | def init_elmo(self): method init_glove (line 41) | def init_glove(self): method get_elmo (line 57) | def get_elmo(self, sentence_lists): method get_glove (line 64) | def get_glove(self, sentence_lists): method forward (line 81) | def forward(self, sentence_lists): FILE: modules/encoder.py class Encoder (line 5) | class Encoder(nn.Module): method __init__ (line 7) | def __init__(self, enc_method='cnn', filters_num=None, filters=None, f... method init_model_weight (line 31) | def init_model_weight(self): method sequence_mask (line 36) | def sequence_mask(self, sequence_length, max_len=None): method Mask (line 47) | def Mask(self, inputs, sqe_len=None): method forward (line 55) | def forward(self, inputs, lengths=None): FILE: utils.py class RunningAverage (line 5) | class RunningAverage(): method __init__ (line 17) | def __init__(self): method update (line 21) | def update(self, val): method __call__ (line 25) | def __call__(self): function set_logger (line 29) | def set_logger(log_path): function get_text_spolist (line 57) | def get_text_spolist(opt, p_entRel_t, json_data): function norm_length (line 96) | def norm_length(origin_list): function write_tags (line 112) | def write_tags(opt, true_tags, pred_tags, json_data, out_dir, id2tag):