Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Research
/ functions
Functions
7,542 in github.com/PaddlePaddle/Research
⨍
Functions
7,542
◇
Types & classes
893
↳
Endpoints
4
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
NLP/UNIMO-2/src/reader/classification_grounded_reader.py:83
↓ 2 callers
Method
_pad_batch_records
(self, batch_records, do_decode, place)
NLP/UNIMO-2/src/reader/img2txt_oscar_reader.py:308
↓ 2 callers
Method
_pad_batch_records
Pad data to batch
NLP/ACL2020-GraphSum/src/networks/graphsum/graphsum_reader.py:294
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
NLP/ACL2021-PAIR/model/src/reader/reader_de_infer.py:312
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
NLP/ACL2021-PAIR/model/src/reader/reader_de.py:362
↓ 2 callers
Method
_pad_batch_records
Pad data to batch
NLP/EMNLP2021-SgSum/src/networks/roberta_multigraphextsum/graphsum_reader.py:395
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
NLP/UNIMO/src/reader/regression_reader.py:67
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
NLP/UNIMO/src/reader/classification_reader.py:67
↓ 2 callers
Method
_pad_batch_records
(self, batch_records, do_decode, place)
NLP/UNIMO/src/reader/seq2seq_reader.py:381
↓ 2 callers
Method
_pad_batch_records
(self, batch_records)
KG/DuIE_Baseline/ernie/reader/task_reader.py:227
↓ 2 callers
Method
_pad_batch_records
_pad_batch_records
KG/DuEL_Baseline/ernie/reader/type_pairwise_ranker_reader.py:196
↓ 2 callers
Method
_pad_batch_records
_pad_batch_records
KG/DuEE_baseline/bin/reader/task_reader.py:403
↓ 2 callers
Method
_pad_matrix
padding the input with height paragraphs and each paragraph have width words
NLP/ACL2020-GraphSum/src/networks/graphsum/graphsum_reader.py:362
↓ 2 callers
Method
_pad_sent_label_batch_data
Pad the instances to the max sequence length in batch, and generate the corresponding sent labels.
NLP/EMNLP2021-SgSum/src/networks/roberta_multigraphextsum/graphsum_reader.py:659
↓ 2 callers
Method
_pad_src_batch_data
Pad the instances to the max sequence length in batch, and generate the corresponding position data and attention bias.
NLP/ACL2020-GraphSum/src/networks/graphsum/graphsum_reader.py:368
↓ 2 callers
Method
_pad_src_batch_data
Pad the instances to the max sequence length in batch, and generate the corresponding position data and attention bias.
NLP/EMNLP2021-SgSum/src/networks/roberta_multigraphextsum/graphsum_reader.py:507
↓ 2 callers
Method
_paddle_where_more_than
(self, target, limit, x, y)
ST_DM/CIKM2022-DuMapper/DME/arch/gears/metric_head.py:48
↓ 2 callers
Function
_parse_structured_ovalue
(json_info)
KG/DuIE_Baseline/script/re_official_evaluation.py:87
↓ 2 callers
Method
_piecewise_decay
(self)
CV/SemSegPaddleDG/src/utils/solver.py:55
↓ 2 callers
Method
_poly_decay
(self)
CV/SemSegPaddleDG/src/utils/solver.py:62
↓ 2 callers
Function
_positionwise_feed_forward
Position-wise Feed-Forward Networks. This module consists of two linear transformations with a ReLU activation in between, which is appli
ST_DM/KDD2021-MSTPAC/code/MST-PAC/nets/common/transformer.py:247
↓ 2 callers
Method
_posteriori_network
Basic posteriori network implement.
NLP/Dialogue-PLATO/plato/models/unified_transformer.py:319
↓ 2 callers
Method
_prepare_batch_data
generate batch and pad
NLP/UNIMO-2/src/reader/retrieval_grounded_reader.py:108
↓ 2 callers
Method
_prepare_batch_data
generate batch and pad
NLP/UNIMO-2/src/reader/retrieval_grounded_reader.py:295
↓ 2 callers
Method
_prepare_batch_data
generate batch records
NLP/ACL2020-GraphSum/src/networks/graphsum/graphsum_reader.py:198
↓ 2 callers
Method
_prepare_batch_data
generate batch records
NLP/EMNLP2021-SgSum/src/networks/roberta_multigraphextsum/graphsum_reader.py:252
↓ 2 callers
Method
_prepare_batch_data
(self, insts, pad_id=None)
NLP/UNIMO/src/reader/visual_entailment_reader.py:111
↓ 2 callers
Method
_prepare_batch_data
generate batch and pad
NLP/UNIMO/src/reader/retrieval_reader.py:144
↓ 2 callers
Method
_prepare_batch_data
generate batch and pad
NLP/UNIMO/src/reader/retrieval_reader.py:373
↓ 2 callers
Method
_prepare_batch_data
generate batch records
KG/DuEE_baseline/bin/reader/task_reader.py:225
↓ 2 callers
Function
_read_filepattern
Reads files matching a wildcard pattern, yielding the contents. Args: filepattern: A wildcard pattern matching one or more files. max
NLP/EMNLP2019-MAL/src/preprocess/tokenizer.py:79
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/NAACL2021-RocketQA/model/src/reader/reader_de_infer.py:91
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/NAACL2021-RocketQA/model/src/reader/reader_de.py:98
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/NAACL2021-RocketQA/model/src/reader/reader_ce.py:96
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/UNIMO-2/src/reader/classification_grounded_reader.py:64
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/ACL2021-PAIR/model/src/reader/reader_de_infer.py:91
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/ACL2021-PAIR/model/src/reader/reader_de.py:98
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/UNIMO/src/reader/regression_reader.py:51
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/UNIMO/src/reader/classification_reader.py:51
↓ 2 callers
Method
_read_tsv
Reads a tab separated value file.
NLP/UNIMO/src/reader/seq2seq_reader.py:117
↓ 2 callers
Function
_relative_attention_inner
(q, k, v, transpose)
NLP/EMNLP2019-MAL/src/attention.py:53
↓ 2 callers
Function
_resplit
resplit
NLP/Text2SQL-BASELINE/tools/evaluation/utils.py:83
↓ 2 callers
Function
_rouge_selection
(doc_sent_list, tgt_str, args, true_sent_num)
NLP/EMNLP2021-SgSum/src/data_preprocess/data_builder_graphextsum.py:784
↓ 2 callers
Function
_strip_spaces
(text)
NLP/MRQA2019-D-NET/server/bert_server/task_reader/mrqa.py:833
↓ 2 callers
Function
_strip_spaces
(text)
NLP/MRQA2019-D-NET/server/ernie_server/task_reader/mrqa_infer.py:833
↓ 2 callers
Function
_strip_spaces
(text)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record.py:949
↓ 2 callers
Function
_strip_spaces
(text)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/record_twomemory.py:968
↓ 2 callers
Function
_strip_spaces
(text)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/squad_twomemory.py:953
↓ 2 callers
Function
_strip_spaces
(text)
NLP/ACL2019-KTNET/reading_comprehension/src/reader/squad.py:934
↓ 2 callers
Function
_strip_spaces
(text)
NLP/DuReader-Robust-BASELINE/src/reader/squad.py:811
↓ 2 callers
Function
_strip_spaces
(text)
NLP/MRQA2019-BASELINE/src/reader/mrqa.py:977
↓ 2 callers
Method
_subtoken_id_to_subtoken_string
Converts a subtoken integer ID to a subtoken string.
NLP/EMNLP2019-MAL/src/preprocess/text_encoder.py:386
↓ 2 callers
Function
_tokenize_chinese_chars
:param text: input text, unicode string :return: tokenized text, list
NLP/DuReader-Checklist-BASELINE/evaluate.py:19
↓ 2 callers
Method
_tokens_to_subtoken_ids
Converts a list of tokens to a list of subtoken ids. Args: tokens: a list of strings. Returns: a list of integers
NLP/EMNLP2019-MAL/src/preprocess/text_encoder.py:337
↓ 2 callers
Method
_trunc_token_ids
turncate token_ids to max_len
NLP/UNIMO/src/reader/seq2seq_reader.py:150
↓ 2 callers
Method
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
NLP/NAACL2021-RocketQA/model/src/reader/reader_de_infer.py:104
↓ 2 callers
Method
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
NLP/ACL2021-PAIR/model/src/reader/reader_de_infer.py:104
↓ 2 callers
Function
_update_config_from_file
Load cfg file (.yaml) and update config object Args: config: config object cfg_file: config file (.yaml) Return: None
CV/SMILE/config.py:87
↓ 2 callers
Function
acc_and_f1
(preds, labels)
NLP/NAACL2021-RocketQA/model/src/finetune/cross_encoder.py:279
↓ 2 callers
Function
acc_and_f1
(preds, labels)
NLP/NAACL2021-RocketQA/model/src/finetune/dual_encoder.py:354
↓ 2 callers
Function
acc_and_f1
(preds, labels)
NLP/ACL2021-PAIR/model/src/finetune/dual_encoder.py:371
↓ 2 callers
Function
acc_and_f1
(left_score, right_score, labels)
KG/DuEL_Baseline/ernie/finetune/type_pairwise_ranker.py:400
↓ 2 callers
Function
accumulate_logprobs
(d, keys_and_logprobs)
NLP/Text2SQL-BASELINE/text2sql/models/sql_decoder/decoder.py:51
↓ 2 callers
Method
add_batch
(self, predictions, gts)
CV/SemSegPaddleDG/src/utils/iou.py:35
↓ 2 callers
Function
add_label
(input_filename, output_filename)
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/goal_planning/model/process_data_for_goal_planning.py:39
↓ 2 callers
Method
add_point
Desc: 向聚类中添加新的点 Args: self : self point : 新增的点, Point is_vip : 是否是vip点, vip点会影响center的计算
ST_DM/GenRegion/src/generate/gen/cluster.py:85
↓ 2 callers
Function
an_to_cn
an to cn
NLP/Text2SQL-BASELINE/text2sql/utils/text_utils.py:121
↓ 2 callers
Method
ap_at_n
Calculate the non-interpolated average precision. Args: predictions: a numpy 1-D array storing the sparse prediction scores. actuals:
KG/DuKEVU_Baseline/paddle-video-classify-tag/metrics/youtube8m/average_precision_calculator.py:182
↓ 2 callers
Method
append_additional_args
append addtional args from the existing args
ST_DM/KDD2021-MSTPAC/code/ST-PAC/frame/core/base_frame.py:179
↓ 2 callers
Method
append_additional_args
append addtional args from the existing args
ST_DM/KDD2021-MSTPAC/code/MST-PAC/frame/core/base_frame.py:167
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
NLP/UNIMO-2/src/utils/fp16.py:18
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
NLP/ACL2020-GraphSum/src/utils/fp16.py:21
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
NLP/EMNLP2021-SgSum/src/utils/fp16.py:21
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
NLP/DuReader-Robust-BASELINE/src/utils/fp16.py:20
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
NLP/UNIMO/src/utils/fp16.py:21
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
KG/AAAI2021_SSAN/utils/fp16.py:19
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
KG/DuIE_Baseline/ernie/utils/fp16.py:20
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
KG/DuEL_Baseline/ernie/utils/fp16.py:22
↓ 2 callers
Function
append_cast_op
Append a cast op in a given Program to cast input `i` to data type `o.dtype`. Args: i (Variable): The input Variable. o (Vari
KG/DuEE_baseline/bin/utils/fp16.py:22
↓ 2 callers
Method
append_placeholder
(self, shape, dtype, lod_level = 0, name = "")
NLP/MRQA2019-D-NET/server/bert_server/pdnlp/toolkit/placeholder.py:37
↓ 2 callers
Method
append_placeholder
(self, shape, dtype, lod_level = 0, name = "")
NLP/MRQA2019-D-NET/server/ernie_server/pdnlp/toolkit/placeholder.py:37
↓ 2 callers
Method
apply_collective_grads
AllReduce the Parameters' gradient.
NLP/Dialogue-PLATO/plato/modules/parallel.py:218
↓ 2 callers
Function
apply_no_ans_threshold
(scores, na_probs, qid_to_has_ans, na_prob_thresh)
NLP/MRQA2019-D-NET/server/xlnet_server/squad_utils.py:101
↓ 2 callers
Function
args_parser
Common classifier application command-line arguments.
CV/CLPI-Collaborative-Learning-for-Diabetic-Retinopathy-Grading/parser.py:18
↓ 2 callers
Method
attention
attention
ST_DM/KDD2021-SSML/ssml_model.py:332
↓ 2 callers
Method
attention
(self, hidden_mem, encoder_vec, encoder_vec_proj)
NLP/ACL2019-DuConv/retrieval_paddle/source/models/retrieval_model.py:175
↓ 2 callers
Function
base_parser
define argument parser & add common arguments
NLP/Conversational-Recommendation-BASELINE/conversational_recommendation/retrieval_model/args.py:28
↓ 2 callers
Function
base_parser
()
NLP/ACL2019-DuConv/retrieval_paddle/args.py:29
↓ 2 callers
Function
bce_loss
(logit, label, ignore_mask=None)
CV/SemSegPaddle/src/utils/loss.py:67
↓ 2 callers
Function
beam_search
()
NLP/ACL2019-JEMT/model.py:879
↓ 2 callers
Method
best_friends
Desc: 寻找当前hc cluster的best friends, 返回所有best friends Args: self : self Return: list of HCCluster
ST_DM/GenRegion/src/generate/gen/cluster.py:347
↓ 2 callers
Function
bleu
(hyps, refs)
NLP/IJCAI2019-MMPMS/mmpms/utils/metrics.py:61
↓ 2 callers
Function
bleu_tokenize
r"""Tokenize a string following the official BLEU implementation. See https://github.com/moses-smt/mosesdecoder/" "blob/master/scripts/g
NLP/EMNLP2019-MAL/src/bleu_hook.py:140
↓ 2 callers
Function
bleu_wrapper
Compute BLEU for two files (reference and hypothesis translation).
NLP/EMNLP2019-MAL/src/bleu_hook.py:170
↓ 2 callers
Function
brightness
(im_file,x1,y1,x2,y2)
CV/AICity2020-Anomaly-Detection/pixel_track/post_process/time_back.py:18
↓ 2 callers
Function
build_dataset
(name, **kwargs)
CV/SemSegPaddle/src/datasets/__init__.py:24
↓ 2 callers
Method
build_from_generator
Builds a SubwordTextEncoder from the generated text. Args: generator: yields text. target_vocab_size: int, approximate vo
NLP/EMNLP2019-MAL/src/preprocess/text_encoder.py:436
↓ 2 callers
Function
build_gear
建立neck head
ST_DM/CIKM2022-DuMapper/DME/arch/arch.py:42
↓ 2 callers
Function
build_instance
Args: db_id (TYPE): NULL question (TYPE): NULL query (TYPE): NULL query_no_value (TYPE): NULL sql_json (
NLP/Text2SQL-DA-HIER/clause2subquestion/auto_gen/auto_gen_simple_query.py:287
↓ 2 callers
Function
build_one_batch
Build one batch
NLP/ACL2018-DAM/reader.py:118
← previous
next →
1,101–1,200 of 7,542, ranked by callers