MCPcopy Create free account

hub / github.com/PaddlePaddle/Knover / functions

Functions590 in github.com/PaddlePaddle/Knover

↓ 1 callersMethodadd_cmdline_args
Add cmdline arguments.
knover/models/plato.py:33
↓ 1 callersMethodapply
Post process logits by N-gram blocking strategy.
knover/modules/ops.py:122
↓ 1 callersFunctionbleu_score
Compute the BLEU-4 score Args: preds (list[str]): list of prediction refs (list[str]): list of reference
projects/QKConv/utils/metrics.py:141
↓ 1 callersFunctioncheck_cross_turn_repetition
Check the cross-turn repetition. Calcuate tri-gram repetition. Args: context: Words or tokens or token_ids. pred: Words or t
knover/tasks/dialog_generation.py:353
↓ 1 callersFunctionclean_text
Performs invalid character removal and whitespace cleanup on text.
knover/utils/tokenization.py:27
↓ 1 callersFunctionconvert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
knover/utils/tokenization.py:97
↓ 1 callersFunctionconvert_checkpoint
Main function of converting checkpoint.
knover/tools/convert_checkpoint.py:206
↓ 1 callersFunctionconvert_lodtensor_to_list
(tensor)
knover/utils/tensor_utils.py:87
↓ 1 callersFunctionconvert_to_knowledge
(domain, entity, doc)
projects/DSTC9-Track1/task3/generate_inference_dataset.py:29
↓ 1 callersFunctionconvert_to_knowledge
(domain, entity, doc)
projects/DSTC10-Track2/task2/subtask3/generate_inference_dataset.py:42
↓ 1 callersFunctioncreate_knover_format
Create Knover data format.
projects/DSTC10-Track2/task1/preprocess_dataset.py:130
↓ 1 callersFunctioncreate_predictor
Create predictor.
knover/utils/inference_utils.py:21
↓ 1 callersFunctiondivide_data
Divide dataset into train / dev / test.
projects/AG-DST/tools/preprocess_dataset.py:219
↓ 1 callersFunctiondygraph2static
Convert parameters from dygraph mode to static mode(paddle 1.x).
knover/tools/convert_checkpoint.py:154
↓ 1 callersFunctionencode_pieces
Convert sentences into word pieces.
knover/utils/tokenization.py:61
↓ 1 callersFunctionencoder
A Transformer Encoder. The encoder is composed of a stack of identical layers returned by calling encoder_layer.
knover/modules/transformer_block.py:432
↓ 1 callersFunctionencoder_layer
A Transformer encoder block. The encoder layers that can be stacked to form a deep encoder. This module consists of a multi-head (self) atten
knover/modules/transformer_block.py:352
↓ 1 callersFunctionentityf1_score
Compute the Entity-F1 score Args: preds (list[str]): list of prediction refs (list[str]): list of reference entity_file (
projects/QKConv/utils/metrics.py:128
↓ 1 callersMethodeval_step
Run one evaluation step
knover/core/task.py:36
↓ 1 callersFunctionevaluate
Run evaluation. Run evaluation on dataset which is generated from a generator. Support evaluation on single GPU and multiple GPUs. Single GP
knover/scripts/train.py:189
↓ 1 callersFunctionevaluate
Evaluation main function.
knover/scripts/evaluate.py:55
↓ 1 callersFunctionevaluate
Main evaluation function.
projects/QKConv/evaluate.py:36
↓ 1 callersFunctionevaluate
Main evaluation function.
projects/Q-TOD/evaluate.py:38
↓ 1 callersMethodevaluate
(self, preds, refs)
projects/Q-TOD/evaluate.py:77
↓ 1 callersMethodevaluate
(self, preds, refs)
projects/Q-TOD/evaluate.py:97
↓ 1 callersFunctionevaluate_dst
Evaluation main function.
projects/AG-DST/evaluate_dst.py:42
↓ 1 callersFunctionexact_score
Compute Rouge-L scores Args: preds (list[str]): list of prediction refs (list[str]): list of reference avg (bool, optiona
projects/QKConv/utils/metrics.py:191
↓ 1 callersFunctionextract_ds
Extract dialogue state.
projects/AG-DST/tools/create_sequence.py:133
↓ 1 callersFunctionfilter_dialogue
Filter dialogues that contain various types of text and annotation errors. Similar to the `analyze_dialogue` in https://github.com/budzianows
projects/AG-DST/tools/preprocess_dataset.py:241
↓ 1 callersFunctionfirst_key
Get the first key.
projects/PLATO-KAG/wow/build_selection_infer_data.py:45
↓ 1 callersFunctionfirst_key
Get the first key.
projects/PLATO-KAG/wow/build_training_data.py:46
↓ 1 callersFunctiongenerate
Generation from sequence to sequence.
projects/DSTC10-Track2/task1/infer.py:150
↓ 1 callersMethodgenerate_query_input
Generate query by dialogue context. Returns: list: Input texts for query generation
projects/QKConv/utils/base_dataset.py:30
↓ 1 callersMethodgenerate_response_input
Generate system response by dialogue context and retrieved knowledge.
projects/QKConv/utils/smd_dataset.py:73
↓ 1 callersFunctionget_F1
calculate F1 score
projects/Diamante/build_data.py:6
↓ 1 callersFunctionget_all_n_grams
Get all n-gram results from an utterance.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:79
↓ 1 callersFunctionget_candidate_vals
Get candidate slot values
projects/AG-DST/tools/negative_sampling.py:75
↓ 1 callersFunctionget_chosen_title_and_sent
Return a nicely extracted title and chosen sentence. :return: pair (title, sentence)
projects/PLATO-KAG/wow/build_training_data.py:53
↓ 1 callersFunctionget_ds_diff
Get the difference from previous metadata to current metadata.
projects/AG-DST/tools/negative_sampling.py:126
↓ 1 callersFunctionget_location_mark_src
Mark fuzzy matching results of locations.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:150
↓ 1 callersFunctionget_mark_src
Mark fuzzy matching results of entities.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:143
↓ 1 callersFunctionget_match_location_n_grams
Get all fuzzy matching results of locations.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:102
↓ 1 callersFunctionget_match_n_grams
Get all fuzzy matching results of entities.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:125
↓ 1 callersFunctionget_matching_result
Get fuzzy matching results of the utterance.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:52
↓ 1 callersMethodget_metrics
Get metrics. Args: inputs: A dict mapping keys to corresponding input data. outputs: A dict mapping keys to correspon
knover/core/model.py:425
↓ 1 callersMethodget_metrics_for_kag_training
Get metrics for KAG training.
knover/models/plato_kag.py:343
↓ 1 callersFunctionget_nsp_score_batch
Get the NSP scores of a batch. Args: nsp_predictor: The NSP model predictor. predictions: A batch of prediction, contains `contex
knover/tasks/dialog_generation.py:411
↓ 1 callersMethodget_prev_idx
Get previous turn sample index.
projects/DSTC10-Track2/task1/preprocess_dataset.py:120
↓ 1 callersMethodget_statistics
Get statistics. Args: inputs: A dict mapping keys to corresponding input data. outputs: A dict mapping keys to corres
knover/core/model.py:438
↓ 1 callersFunctionget_tensor
Get tensor by name.
knover/utils/tensor_utils.py:46
↓ 1 callersMethodget_train_progress
Gets progress for training phase.
knover/data/dialog_reader.py:155
↓ 1 callersFunctiongumbel_softmax
Gumbel softmax.
knover/models/plato.py:324
↓ 1 callersFunctioninfer
Inference main function.
knover/scripts/infer.py:56
↓ 1 callersFunctioninfer
Main inference function.
projects/DSTC10-Track2/task1/infer.py:56
↓ 1 callersFunctioninfer
Main inference function.
projects/QKConv/infer.py:44
↓ 1 callersFunctioninfer
Main inference function.
projects/Q-TOD/infer.py:41
↓ 1 callersFunctioninfer
Inference main function.
projects/PLATO-KAG/tools/get_dense_emb.py:55
↓ 1 callersMethodinfer
Run inference. Args: inputs: A dict mapping keys to corresponding input data. outputs: A dict mapping keys to corresp
knover/core/model.py:451
↓ 1 callersFunctioninfer_dst
Inference main function.
projects/AG-DST/infer_dst.py:56
↓ 1 callersFunctioninsert_space
(text, token)
projects/AG-DST/tools/preprocess_dataset.py:107
↓ 1 callersFunctioninteract
Interaction main function.
knover/scripts/interact.py:52
↓ 1 callersFunctionis_ascii
(s)
projects/AG-DST/tools/preprocess_dataset.py:246
↓ 1 callersFunctionknowledge_retrieval
Retrieve relevant knowledge by generated query.
projects/Q-TOD/infer.py:92
↓ 1 callersMethodknowledge_selection
Retrieve relevant knowledge by generated query.
projects/QKConv/utils/smd_dataset.py:52
↓ 1 callersFunctionlinearize_knowledge
Convert knowledge into a flatten sequecen with special symbols.
projects/Q-TOD/infer.py:168
↓ 1 callersMethodlinearize_knowledge
Convert knowledge into a flatten sequecen with special symbols.
projects/QKConv/utils/smd_dataset.py:103
↓ 1 callersFunctionlinearize_knowledge_record
Convert a knowledge record into a flatten sequence with special symbols.
projects/Q-TOD/infer.py:159
↓ 1 callersMethodlinearize_knowledge_record
Convert a knowledge record into a flatten sequence with special symbols.
projects/QKConv/utils/smd_dataset.py:95
↓ 1 callersFunctionlower
(text)
projects/PLATO-KAG/tools/generation_metrics.py:50
↓ 1 callersFunctionlower
(text)
projects/PLATO-KAG/holle/eval_multi_ref_generation.py:54
↓ 1 callersFunctionmain
(args)
knover/tools/split_checkpoint.py:104
↓ 1 callersFunctionmain
Tokenization main process.
knover/tools/pre_tokenize.py:40
↓ 1 callersFunctionmain
Numericalization main process.
knover/tools/pre_numericalize.py:42
↓ 1 callersFunctionmain
(args)
knover/tools/expand_embedding.py:37
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task1/generate_inference_dataset_with_schema.py:23
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task1/post_process_inference_result_with_schema.py:23
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task1/generate_inference_dataset_with_context.py:21
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task3/generate_inference_dataset.py:24
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task3/post_process_inference_result.py:21
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task2/generate_inference_dataset.py:25
↓ 1 callersFunctionmain
Main function.
projects/DSTC9-Track1/task2/post_process_inference_result.py:23
↓ 1 callersFunctionmain
Main function.
projects/AG-DST/tools/negative_sampling.py:46
↓ 1 callersFunctionmain
Main function.
projects/AG-DST/tools/create_sequence.py:50
↓ 1 callersFunctionmain
Main function.
projects/AG-DST/tools/preprocess_dataset.py:43
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:45
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/tools/preprocess_knowledge.py:34
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/tools/preprocess_logs.py:33
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/subtask2/generate_inference_dataset.py:40
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/subtask2/post_process_inference_result.py:36
↓ 1 callersFunctionmain
Numericalization main process.
projects/DSTC10-Track2/task2/subtask2/pre_numericalize.py:39
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/subtask3/generate_inference_dataset.py:37
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/subtask3/post_process_inference_result.py:34
↓ 1 callersFunctionmain
Main function.
projects/DSTC10-Track2/task2/subtask1/generate_inference_dataset.py:37
↓ 1 callersFunctionmain
Numericalization main process.
projects/DSTC10-Track2/task2/subtask1/pre_numericalize.py:39
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/tools/generation_metrics.py:96
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/holle/build_selection_infer_data.py:78
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/holle/build_training_data.py:57
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/holle/build_generation_infer_data.py:45
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/holle/eval_multi_ref_generation.py:101
↓ 1 callersFunctionmain
Main function.
projects/PLATO-KAG/wow/build_selection_infer_data.py:101
← previousnext →201–300 of 590, ranked by callers