Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/K-Quant/HiDy
/ functions
Functions
461 in github.com/K-Quant/HiDy
⨍
Functions
461
◇
Types & classes
78
↓ 1 callers
Method
build_vocab_dict
(self, vocab_size=2000)
ner/data_utils/data_utils.py:288
↓ 1 callers
Method
cal_f1
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:50
↓ 1 callers
Method
cal_precision
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:33
↓ 1 callers
Method
cal_recall
(self)
other_experiment/ner_model_selection/bilstm_based/evaluating.py:42
↓ 1 callers
Method
calculate_domain_richness_score
(self, sources_global_domain_percent, domain_richness, sources_domain_richness, alpha=0.5)
other_experiment/fusion/DART.py:52
↓ 1 callers
Function
chebyshev_recurrence
(t_k_minus_one, t_k_minus_two, scaled_lap)
other_experiment/FFD_ablation/GCN_exp/data.py:192
↓ 1 callers
Method
check_match
(ent_a, ent_b)
ner/data_utils/evaluator.py:3
↓ 1 callers
Function
compare
(a, b, schema_lang="ch")
tax_policy/utils.py:150
↓ 1 callers
Function
compute_test
()
other_experiment/FFD_ablation/GAT_exp/train.py:81
↓ 1 callers
Function
construct_dataset
(embedding_path, label_path)
application/FFD/ffd.py:15
↓ 1 callers
Function
convert_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 callers
Function
convert_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 callers
Method
count_correct_tags
计算每种标签预测正确的个数(对应精确率、召回率计算公式上的tp),用于后面精确率以及召回率的计算
other_experiment/ner_model_selection/bilstm_based/evaluating.py:98
↓ 1 callers
Method
count_intersects
(ent_list_a, ent_list_b)
ner/data_utils/evaluator.py:8
↓ 1 callers
Function
create_jobs
()
company_rel/data_processing.py:185
↓ 1 callers
Function
create_test_loaders
return a single dataloader for prediction
application/SMP/utils/dataloader.py:125
↓ 1 callers
Function
create_workers
()
company_rel/data_processing.py:169
↓ 1 callers
Function
cut_sent
(para)
company_rel/get_sen_set.py:9
↓ 1 callers
Method
decode
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 callers
Method
decoding
使用维特比算法对给定观测序列求状态序列, 这里就是对字组成的序列,求其对应的标注。 维特比算法实际是用动态规划解隐马尔可夫模型预测问题,即用动态规划求概率最大路径(最优路径) 这时一条路径对应着一个状态序列
other_experiment/ner_model_selection/bilstm_based/models/hmm.py:69
↓ 1 callers
Function
do_eval
()
tax_policy/evaluate.py:41
↓ 1 callers
Function
download_and_extract
(task, data_dir)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:30
↓ 1 callers
Method
epoch_start
(self,current_epoch)
other_experiment/ner_model_selection/bert_based/callback/progressbar.py:62
↓ 1 callers
Method
evaluation
(self, pred_list, previous_true_num=0)
other_experiment/fusion/DART.py:609
↓ 1 callers
Method
extract_doc
(self, doc)
ner/data_utils/data_utils.py:258
↓ 1 callers
Method
extract_sentences
(self)
ner/data_utils/data_utils.py:166
↓ 1 callers
Function
extract_sentiment_score
(input_path, output_path)
sentiment_score/sentiment_sore.py:113
↓ 1 callers
Method
forward
(self, sents_tensor, lengths, args)
other_experiment/ner_model_selection/bilstm_based/models/bilstm.py:23
↓ 1 callers
Method
forward
(self, sents_tensor, lengths, args)
other_experiment/ner_model_selection/bilstm_based/models/bilstm_crf.py:204
↓ 1 callers
Method
get_adjusted_domain_expertise_score
(self, rou, src_inter_domain_inf, src_global_domain_percent)
other_experiment/fusion/DART.py:143
↓ 1 callers
Function
get_argparse
()
other_experiment/ner_model_selection/bilstm_based/experiment.py:9
↓ 1 callers
Function
get_argparse
()
other_experiment/ner_model_selection/bert_based/experiment.py:34
↓ 1 callers
Function
get_content
(out_path)
company_rel/data_processing.py:239
↓ 1 callers
Method
get_dev_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:167
↓ 1 callers
Function
get_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 callers
Function
get_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 callers
Method
get_global_domain_richness
(self, sources_domain_richness)
other_experiment/fusion/DART.py:40
↓ 1 callers
Function
get_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 callers
Method
get_lr
(self)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:204
↓ 1 callers
Method
get_lr
(self, t_cur)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:455
↓ 1 callers
Method
get_lr
(self,step)
other_experiment/ner_model_selection/bert_based/callback/lr_scheduler.py:524
↓ 1 callers
Function
get_model
(model_name)
application/SMP/exp/prediction.py:18
↓ 1 callers
Function
get_relation_type_dict
(relation_data, schema_lang="ch")
tax_policy/utils.py:149
↓ 1 callers
Method
get_source_domain_richness
(self, source_path)
other_experiment/fusion/DART.py:26
↓ 1 callers
Method
get_source_inter_domain_influence
(self, src_inter_intersection, src_domain_richness)
other_experiment/fusion/DART.py:122
↓ 1 callers
Method
get_source_object_dict
(self)
other_experiment/fusion/DART.py:509
↓ 1 callers
Method
get_sources_inter_intersection
(self)
other_experiment/fusion/DART.py:81
↓ 1 callers
Function
get_tasks
(task_names)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:44
↓ 1 callers
Method
get_test_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:171
↓ 1 callers
Method
get_train_examples
See base class.
other_experiment/ner_model_selection/bert_based/processors/ner_seq.py:163
↓ 1 callers
Function
hmm_train_eval
训练并评估hmm模型
other_experiment/ner_model_selection/bilstm_based/evaluate.py:12
↓ 1 callers
Function
indexed
将targets中的数转化为在[T*T]大小序列中的索引,T是标注的种类
other_experiment/ner_model_selection/bilstm_based/models/util.py:155
↓ 1 callers
Function
inference
(model, data_loader, stock2stock_matrix=None)
application/SMP/exp/prediction.py:25
↓ 1 callers
Function
init_logger
Example: >>> init_logger(log_file) >>> logger.info("abc'")
other_experiment/ner_model_selection/bert_based/tools/common.py:20
↓ 1 callers
Function
init_recall_sp
(rawData_df)
other_experiment/fusion/DART.py:773
↓ 1 callers
Method
initialize_rec_and_sp
(self, default_recall, default_sp)
other_experiment/fusion/DART.py:181
↓ 1 callers
Method
integrate_bayesian
(self, theta=0.5)
other_experiment/fusion/DART.py:594
↓ 1 callers
Method
is_same_company
(self, c_alias_name, c_stock)
other_experiment/fusion/DART.py:269
↓ 1 callers
Method
is_same_event
(self, text1, text2, time1, time2)
other_experiment/fusion/DART.py:256
↓ 1 callers
Method
is_same_triple
(self, triple1, triple2, time1, time2)
other_experiment/fusion/DART.py:280
↓ 1 callers
Method
iter_daily
: yield an index and a slice, that from the day
application/SMP/utils/dataloader.py:80
↓ 1 callers
Method
iter_daily_shuffle
(self)
application/SMP/utils/dataloader.py:74
↓ 1 callers
Method
l2_loss
(self)
other_experiment/FFD_ablation/GCN_exp/model.py:36
↓ 1 callers
Method
load_checkpoint
Load the latest checkpoint.
other_experiment/FFD_ablation/HAN_exp/utils.py:226
↓ 1 callers
Function
load_data
(args, remove_self_loop=False)
other_experiment/FFD_ablation/HAN_exp/utils.py:83
↓ 1 callers
Function
load_data
(Branch_lst)
other_experiment/FFD_ablation/GCN_exp/data.py:31
↓ 1 callers
Function
load_data
(Branch_lst)
other_experiment/FFD_ablation/GAT_exp/utils.py:16
↓ 1 callers
Function
load_json
加载json文件 :param json_path: :param file_name: :return:
other_experiment/ner_model_selection/bert_based/tools/common.py:188
↓ 1 callers
Function
main
()
other_experiment/ner_model_selection/bert_based/experiment.py:525
↓ 1 callers
Function
main
(arguments)
other_experiment/ner_model_selection/bert_based/tools/download_clue_data.py:55
↓ 1 callers
Function
main
(args)
other_experiment/FFD_ablation/HAN_exp/main.py:28
↓ 1 callers
Function
make_doc_prediction
(doc_id, sents, docs)
ner/data_utils/data_utils.py:335
↓ 1 callers
Function
make_sentence_prediction
(pred, sent, idx2ent)
ner/data_utils/data_utils.py:318
↓ 1 callers
Function
masked_loss
(out, label, mask, func)
other_experiment/FFD_ablation/GCN_exp/utils.py:8
↓ 1 callers
Method
merge
(self)
ner/data_utils/data_utils.py:141
↓ 1 callers
Function
obtain_final_predictions
(pred_result_json_path, save_csv_path)
company_rel/data_processing.py:154
↓ 1 callers
Method
pad
(self, pad_left=0, pad_right=0, pad_val=" ")
ner/data_utils/data_utils.py:183
↓ 1 callers
Method
padding_mask
(self, features, max_len=None)
application/SMP/utils/dataloader.py:100
↓ 1 callers
Function
parse_PDF2txt
(file_path, out_path)
company_rel/data_processing.py:200
↓ 1 callers
Function
parse_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 callers
Method
parse_entity_line
(self, raw_str)
ner/data_utils/data_utils.py:211
↓ 1 callers
Function
parse_htmlURL2json
(url)
company_rel/data_processing.py:191
↓ 1 callers
Function
plot_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 callers
Function
prediction_mode
()
company_rel/company_relation_extraction.py:30
↓ 1 callers
Function
prepare_company_relation
(original_test_json_path, input_mode)
company_rel/data_processing.py:76
↓ 1 callers
Function
prepare_dataset
(divide_label=False)
company_rel/data_processing.py:91
↓ 1 callers
Function
prepare_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 callers
Function
preprocess_adj
Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
other_experiment/FFD_ablation/GCN_exp/data.py:168
↓ 1 callers
Function
prior_source_recall
(rawData)
other_experiment/fusion/DART.py:725
↓ 1 callers
Function
prior_source_specificity
(rawData)
other_experiment/fusion/DART.py:749
↓ 1 callers
Method
read_anno_file
(self, doc_id)
ner/data_utils/data_utils.py:218
↓ 1 callers
Method
read_txt_file
(self, doc_id)
ner/data_utils/data_utils.py:204
↓ 1 callers
Function
remove_blanks
(df)
company_rel/data_processing.py:50
↓ 1 callers
Method
remove_unknowns
(self)
other_experiment/fusion/DART.py:157
↓ 1 callers
Function
research_report_ema
(df_report)
sentiment_score/sentiment_sore.py:90
↓ 1 callers
Method
reset
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:11
↓ 1 callers
Method
reset
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:63
↓ 1 callers
Method
reset
Method to reset internal variables.
other_experiment/ner_model_selection/bert_based/callback/progressbar.py:22
↓ 1 callers
Method
reset_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 callers
Method
result
(self)
other_experiment/ner_model_selection/bert_based/metrics/ner_metrics.py:22
← previous
next →
101–200 of 461, ranked by callers