MCPcopy Create free account

hub / github.com/K-Quant/HiDy / functions

Functions461 in github.com/K-Quant/HiDy

↓ 1 callersMethodbuild_vocab_dict
(self, vocab_size=2000)
ner/data_utils/data_utils.py:288
↓ 1 callersMethodcal_f1
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:50
↓ 1 callersMethodcal_precision
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:33
↓ 1 callersMethodcal_recall
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:42
↓ 1 callersMethodcalculate_domain_richness_score
(self, sources_global_domain_percent, domain_richness, sources_domain_richness, alpha=0.5)
other_experiment/fusion/DART.py:52
↓ 1 callersFunctionchebyshev_recurrence
(t_k_minus_one, t_k_minus_two, scaled_lap)
other_experiment/FFD_ablation/GCN_exp/data.py:192
↓ 1 callersMethodcheck_match
(ent_a, ent_b)
ner/data_utils/evaluator.py:3
↓ 1 callersFunctioncompare
(a, b, schema_lang="ch")
tax_policy/utils.py:150
↓ 1 callersFunctioncompute_test
()
other_experiment/FFD_ablation/GAT_exp/train.py:81
↓ 1 callersFunctionconstruct_dataset
(embedding_path, label_path)
application/FFD/ffd.py:15
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s `cls_token_at_end` define the location of the CLS token: - False (Default, BERT/XL
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:68
↓ 1 callersFunctionconvert_tf_checkpoint_to_pytorch
(tf_checkpoint_path, bert_config_file, pytorch_dump_path)
other_experiment/ner_model_selection/bert_based/tools/convert_albert_tf_checkpoint_to_pytorch.py:14
↓ 1 callersMethodcount_correct_tags
计算每种标签预测正确的个数(对应精确率、召回率计算公式上的tp),用于后面精确率以及召回率的计算
other_experiment/ner_model_selection/bilstm_based/evaluating.py:98
↓ 1 callersMethodcount_intersects
(ent_list_a, ent_list_b)
ner/data_utils/evaluator.py:8
↓ 1 callersFunctioncreate_jobs
()
company_rel/data_processing.py:185
↓ 1 callersFunctioncreate_test_loaders
return a single dataloader for prediction
application/SMP/utils/dataloader.py:125
↓ 1 callersFunctioncreate_workers
()
company_rel/data_processing.py:169
↓ 1 callersFunctioncut_sent
(para)
company_rel/get_sen_set.py:9
↓ 1 callersMethoddecode
Find the most likely tag sequence using Viterbi algorithm. Args: emissions (`~torch.Tensor`): Emission score tensor of size
other_experiment/ner_model_selection/bert_based/models/layers/crf.py:102
↓ 1 callersMethoddecoding
使用维特比算法对给定观测序列求状态序列, 这里就是对字组成的序列,求其对应的标注。 维特比算法实际是用动态规划解隐马尔可夫模型预测问题,即用动态规划求概率最大路径(最优路径) 这时一条路径对应着一个状态序列
other_experiment/ner_model_selection/bilstm_based/models/hmm.py:69
↓ 1 callersFunctiondo_eval
()
tax_policy/evaluate.py:41
↓ 1 callersFunctiondownload_and_extract
(task, data_dir)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:30
↓ 1 callersMethodepoch_start
(self,current_epoch)
other_experiment/ner_model_selection/bert_based/callback/progressbar.py:62
↓ 1 callersMethodevaluation
(self, pred_list, previous_true_num=0)
other_experiment/fusion/DART.py:609
↓ 1 callersMethodextract_doc
(self, doc)
ner/data_utils/data_utils.py:258
↓ 1 callersMethodextract_sentences
(self)
ner/data_utils/data_utils.py:166
↓ 1 callersFunctionextract_sentiment_score
(input_path, output_path)
sentiment_score/sentiment_sore.py:113
↓ 1 callersMethodforward
(self, sents_tensor, lengths, args)
other_experiment/ner_model_selection/bilstm_based/models/bilstm.py:23
↓ 1 callersMethodforward
(self, sents_tensor, lengths, args)
other_experiment/ner_model_selection/bilstm_based/models/bilstm_crf.py:204
↓ 1 callersMethodget_adjusted_domain_expertise_score
(self, rou, src_inter_domain_inf, src_global_domain_percent)
other_experiment/fusion/DART.py:143
↓ 1 callersFunctionget_argparse
()
other_experiment/ner_model_selection/bilstm_based/experiment.py:9
↓ 1 callersFunctionget_argparse
()
other_experiment/ner_model_selection/bert_based/experiment.py:34
↓ 1 callersFunctionget_content
(out_path)
company_rel/data_processing.py:239
↓ 1 callersMethodget_dev_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:167
↓ 1 callersFunctionget_entity_bio
Gets entities from sequence. note: BIO Args: seq (list): sequence of labels. Returns: list: list of (chunk_type, chunk_sta
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:122
↓ 1 callersFunctionget_entity_bios
Gets entities from sequence. note: BIOS Args: seq (list): sequence of labels. Returns: list: list of (chunk_type, chunk_st
other_experiment/ner_model_selection/bert_based/processors/utils_ner.py:78
↓ 1 callersMethodget_global_domain_richness
(self, sources_domain_richness)
other_experiment/fusion/DART.py:40
↓ 1 callersFunctionget_linear_schedule_with_warmup
Create a schedule with a learning rate that decreases linearly after linearly increasing during a warmup period.
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:25
↓ 1 callersMethodget_lr
(self)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:204
↓ 1 callersMethodget_lr
(self, t_cur)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:455
↓ 1 callersMethodget_lr
(self,step)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:524
↓ 1 callersFunctionget_model
(model_name)
application/SMP/exp/prediction.py:18
↓ 1 callersFunctionget_relation_type_dict
(relation_data, schema_lang="ch")
tax_policy/utils.py:149
↓ 1 callersMethodget_source_domain_richness
(self, source_path)
other_experiment/fusion/DART.py:26
↓ 1 callersMethodget_source_inter_domain_influence
(self, src_inter_intersection, src_domain_richness)
other_experiment/fusion/DART.py:122
↓ 1 callersMethodget_source_object_dict
(self)
other_experiment/fusion/DART.py:509
↓ 1 callersMethodget_sources_inter_intersection
(self)
other_experiment/fusion/DART.py:81
↓ 1 callersFunctionget_tasks
(task_names)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:44
↓ 1 callersMethodget_test_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:171
↓ 1 callersMethodget_train_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:163
↓ 1 callersFunctionhmm_train_eval
训练并评估hmm模型
other_experiment/ner_model_selection/bilstm_based/evaluate.py:12
↓ 1 callersFunctionindexed
将targets中的数转化为在[T*T]大小序列中的索引,T是标注的种类
other_experiment/ner_model_selection/bilstm_based/models/util.py:155
↓ 1 callersFunctioninference
(model, data_loader, stock2stock_matrix=None)
application/SMP/exp/prediction.py:25
↓ 1 callersFunctioninit_logger
Example: >>> init_logger(log_file) >>> logger.info("abc'")
other_experiment/ner_model_selection/bert_based/tools/common.py:20
↓ 1 callersFunctioninit_recall_sp
(rawData_df)
other_experiment/fusion/DART.py:773
↓ 1 callersMethodinitialize_rec_and_sp
(self, default_recall, default_sp)
other_experiment/fusion/DART.py:181
↓ 1 callersMethodintegrate_bayesian
(self, theta=0.5)
other_experiment/fusion/DART.py:594
↓ 1 callersMethodis_same_company
(self, c_alias_name, c_stock)
other_experiment/fusion/DART.py:269
↓ 1 callersMethodis_same_event
(self, text1, text2, time1, time2)
other_experiment/fusion/DART.py:256
↓ 1 callersMethodis_same_triple
(self, triple1, triple2, time1, time2)
other_experiment/fusion/DART.py:280
↓ 1 callersMethoditer_daily
: yield an index and a slice, that from the day
application/SMP/utils/dataloader.py:80
↓ 1 callersMethoditer_daily_shuffle
(self)
application/SMP/utils/dataloader.py:74
↓ 1 callersMethodl2_loss
(self)
other_experiment/FFD_ablation/GCN_exp/model.py:36
↓ 1 callersMethodload_checkpoint
Load the latest checkpoint.
other_experiment/FFD_ablation/HAN_exp/utils.py:226
↓ 1 callersFunctionload_data
(args, remove_self_loop=False)
other_experiment/FFD_ablation/HAN_exp/utils.py:83
↓ 1 callersFunctionload_data
(Branch_lst)
other_experiment/FFD_ablation/GCN_exp/data.py:31
↓ 1 callersFunctionload_data
(Branch_lst)
other_experiment/FFD_ablation/GAT_exp/utils.py:16
↓ 1 callersFunctionload_json
加载json文件 :param json_path: :param file_name: :return:
other_experiment/ner_model_selection/bert_based/tools/common.py:188
↓ 1 callersFunctionmain
()
other_experiment/ner_model_selection/bert_based/experiment.py:525
↓ 1 callersFunctionmain
(arguments)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:55
↓ 1 callersFunctionmain
(args)
other_experiment/FFD_ablation/HAN_exp/main.py:28
↓ 1 callersFunctionmake_doc_prediction
(doc_id, sents, docs)
ner/data_utils/data_utils.py:335
↓ 1 callersFunctionmake_sentence_prediction
(pred, sent, idx2ent)
ner/data_utils/data_utils.py:318
↓ 1 callersFunctionmasked_loss
(out, label, mask, func)
other_experiment/FFD_ablation/GCN_exp/utils.py:8
↓ 1 callersMethodmerge
(self)
ner/data_utils/data_utils.py:141
↓ 1 callersFunctionobtain_final_predictions
(pred_result_json_path, save_csv_path)
company_rel/data_processing.py:154
↓ 1 callersMethodpad
(self, pad_left=0, pad_right=0, pad_val=" ")
ner/data_utils/data_utils.py:183
↓ 1 callersMethodpadding_mask
(self, features, max_len=None)
application/SMP/utils/dataloader.py:100
↓ 1 callersFunctionparse_PDF2txt
(file_path, out_path)
company_rel/data_processing.py:200
↓ 1 callersFunctionparse_args
deliver arguments from json file to program :param param_dict: a dict that contains model info :return: no return
application/SMP/exp/prediction.py:76
↓ 1 callersMethodparse_entity_line
(self, raw_str)
ner/data_utils/data_utils.py:211
↓ 1 callersFunctionparse_htmlURL2json
(url)
company_rel/data_processing.py:191
↓ 1 callersFunctionplot_confusion_matrix
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
other_experiment/ner_model_selection/bert_based/tools/plot.py:6
↓ 1 callersFunctionprediction_mode
()
company_rel/company_relation_extraction.py:30
↓ 1 callersFunctionprepare_company_relation
(original_test_json_path, input_mode)
company_rel/data_processing.py:76
↓ 1 callersFunctionprepare_dataset
(divide_label=False)
company_rel/data_processing.py:91
↓ 1 callersFunctionprepare_device
setup GPU device if available, move model into configured device # 如果n_gpu_use为数字,则使用range生成list # 如果输入的是一个list,则默认使用list[0]作为controller
other_experiment/ner_model_selection/bert_based/tools/common.py:61
↓ 1 callersFunctionpreprocess_adj
Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
other_experiment/FFD_ablation/GCN_exp/data.py:168
↓ 1 callersFunctionprior_source_recall
(rawData)
other_experiment/fusion/DART.py:725
↓ 1 callersFunctionprior_source_specificity
(rawData)
other_experiment/fusion/DART.py:749
↓ 1 callersMethodread_anno_file
(self, doc_id)
ner/data_utils/data_utils.py:218
↓ 1 callersMethodread_txt_file
(self, doc_id)
ner/data_utils/data_utils.py:204
↓ 1 callersFunctionremove_blanks
(df)
company_rel/data_processing.py:50
↓ 1 callersMethodremove_unknowns
(self)
other_experiment/fusion/DART.py:157
↓ 1 callersFunctionresearch_report_ema
(df_report)
sentiment_score/sentiment_sore.py:90
↓ 1 callersMethodreset
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:11
↓ 1 callersMethodreset
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:63
↓ 1 callersMethodreset
Method to reset internal variables.
other_experiment/ner_model_selection/bert_based/callback/progressbar.py:22
↓ 1 callersMethodreset_parameters
Initialize the transition parameters. The parameters will be initialized randomly from a uniform distribution between -0.1 and 0.1.
other_experiment/ner_model_selection/bert_based/models/layers/crf.py:40
↓ 1 callersMethodresult
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:22
← previousnext →101–200 of 461, ranked by callers