Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Knover
/ functions
Functions
590 in github.com/PaddlePaddle/Knover
⨍
Functions
590
◇
Types & classes
46
↳
Endpoints
1
↓ 1 callers
Method
add_cmdline_args
Add cmdline arguments.
knover/models/plato.py:33
↓ 1 callers
Method
apply
Post process logits by N-gram blocking strategy.
knover/modules/ops.py:122
↓ 1 callers
Function
bleu_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 callers
Function
check_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 callers
Function
clean_text
Performs invalid character removal and whitespace cleanup on text.
knover/utils/tokenization.py:27
↓ 1 callers
Function
convert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
knover/utils/tokenization.py:97
↓ 1 callers
Function
convert_checkpoint
Main function of converting checkpoint.
knover/tools/convert_checkpoint.py:206
↓ 1 callers
Function
convert_lodtensor_to_list
(tensor)
knover/utils/tensor_utils.py:87
↓ 1 callers
Function
convert_to_knowledge
(domain, entity, doc)
projects/DSTC9-Track1/task3/generate_inference_dataset.py:29
↓ 1 callers
Function
convert_to_knowledge
(domain, entity, doc)
projects/DSTC10-Track2/task2/subtask3/generate_inference_dataset.py:42
↓ 1 callers
Function
create_knover_format
Create Knover data format.
projects/DSTC10-Track2/task1/preprocess_dataset.py:130
↓ 1 callers
Function
create_predictor
Create predictor.
knover/utils/inference_utils.py:21
↓ 1 callers
Function
divide_data
Divide dataset into train / dev / test.
projects/AG-DST/tools/preprocess_dataset.py:219
↓ 1 callers
Function
dygraph2static
Convert parameters from dygraph mode to static mode(paddle 1.x).
knover/tools/convert_checkpoint.py:154
↓ 1 callers
Function
encode_pieces
Convert sentences into word pieces.
knover/utils/tokenization.py:61
↓ 1 callers
Function
encoder
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 callers
Function
encoder_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 callers
Function
entityf1_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 callers
Method
eval_step
Run one evaluation step
knover/core/task.py:36
↓ 1 callers
Function
evaluate
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 callers
Function
evaluate
Evaluation main function.
knover/scripts/evaluate.py:55
↓ 1 callers
Function
evaluate
Main evaluation function.
projects/QKConv/evaluate.py:36
↓ 1 callers
Function
evaluate
Main evaluation function.
projects/Q-TOD/evaluate.py:38
↓ 1 callers
Method
evaluate
(self, preds, refs)
projects/Q-TOD/evaluate.py:77
↓ 1 callers
Method
evaluate
(self, preds, refs)
projects/Q-TOD/evaluate.py:97
↓ 1 callers
Function
evaluate_dst
Evaluation main function.
projects/AG-DST/evaluate_dst.py:42
↓ 1 callers
Function
exact_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 callers
Function
extract_ds
Extract dialogue state.
projects/AG-DST/tools/create_sequence.py:133
↓ 1 callers
Function
filter_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 callers
Function
first_key
Get the first key.
projects/PLATO-KAG/wow/build_selection_infer_data.py:45
↓ 1 callers
Function
first_key
Get the first key.
projects/PLATO-KAG/wow/build_training_data.py:46
↓ 1 callers
Function
generate
Generation from sequence to sequence.
projects/DSTC10-Track2/task1/infer.py:150
↓ 1 callers
Method
generate_query_input
Generate query by dialogue context. Returns: list: Input texts for query generation
projects/QKConv/utils/base_dataset.py:30
↓ 1 callers
Method
generate_response_input
Generate system response by dialogue context and retrieved knowledge.
projects/QKConv/utils/smd_dataset.py:73
↓ 1 callers
Function
get_F1
calculate F1 score
projects/Diamante/build_data.py:6
↓ 1 callers
Function
get_all_n_grams
Get all n-gram results from an utterance.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:79
↓ 1 callers
Function
get_candidate_vals
Get candidate slot values
projects/AG-DST/tools/negative_sampling.py:75
↓ 1 callers
Function
get_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 callers
Function
get_ds_diff
Get the difference from previous metadata to current metadata.
projects/AG-DST/tools/negative_sampling.py:126
↓ 1 callers
Function
get_location_mark_src
Mark fuzzy matching results of locations.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:150
↓ 1 callers
Function
get_mark_src
Mark fuzzy matching results of entities.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:143
↓ 1 callers
Function
get_match_location_n_grams
Get all fuzzy matching results of locations.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:102
↓ 1 callers
Function
get_match_n_grams
Get all fuzzy matching results of entities.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:125
↓ 1 callers
Function
get_matching_result
Get fuzzy matching results of the utterance.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:52
↓ 1 callers
Method
get_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 callers
Method
get_metrics_for_kag_training
Get metrics for KAG training.
knover/models/plato_kag.py:343
↓ 1 callers
Function
get_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 callers
Method
get_prev_idx
Get previous turn sample index.
projects/DSTC10-Track2/task1/preprocess_dataset.py:120
↓ 1 callers
Method
get_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 callers
Function
get_tensor
Get tensor by name.
knover/utils/tensor_utils.py:46
↓ 1 callers
Method
get_train_progress
Gets progress for training phase.
knover/data/dialog_reader.py:155
↓ 1 callers
Function
gumbel_softmax
Gumbel softmax.
knover/models/plato.py:324
↓ 1 callers
Function
infer
Inference main function.
knover/scripts/infer.py:56
↓ 1 callers
Function
infer
Main inference function.
projects/DSTC10-Track2/task1/infer.py:56
↓ 1 callers
Function
infer
Main inference function.
projects/QKConv/infer.py:44
↓ 1 callers
Function
infer
Main inference function.
projects/Q-TOD/infer.py:41
↓ 1 callers
Function
infer
Inference main function.
projects/PLATO-KAG/tools/get_dense_emb.py:55
↓ 1 callers
Method
infer
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 callers
Function
infer_dst
Inference main function.
projects/AG-DST/infer_dst.py:56
↓ 1 callers
Function
insert_space
(text, token)
projects/AG-DST/tools/preprocess_dataset.py:107
↓ 1 callers
Function
interact
Interaction main function.
knover/scripts/interact.py:52
↓ 1 callers
Function
is_ascii
(s)
projects/AG-DST/tools/preprocess_dataset.py:246
↓ 1 callers
Function
knowledge_retrieval
Retrieve relevant knowledge by generated query.
projects/Q-TOD/infer.py:92
↓ 1 callers
Method
knowledge_selection
Retrieve relevant knowledge by generated query.
projects/QKConv/utils/smd_dataset.py:52
↓ 1 callers
Function
linearize_knowledge
Convert knowledge into a flatten sequecen with special symbols.
projects/Q-TOD/infer.py:168
↓ 1 callers
Method
linearize_knowledge
Convert knowledge into a flatten sequecen with special symbols.
projects/QKConv/utils/smd_dataset.py:103
↓ 1 callers
Function
linearize_knowledge_record
Convert a knowledge record into a flatten sequence with special symbols.
projects/Q-TOD/infer.py:159
↓ 1 callers
Method
linearize_knowledge_record
Convert a knowledge record into a flatten sequence with special symbols.
projects/QKConv/utils/smd_dataset.py:95
↓ 1 callers
Function
lower
(text)
projects/PLATO-KAG/tools/generation_metrics.py:50
↓ 1 callers
Function
lower
(text)
projects/PLATO-KAG/holle/eval_multi_ref_generation.py:54
↓ 1 callers
Function
main
(args)
knover/tools/split_checkpoint.py:104
↓ 1 callers
Function
main
Tokenization main process.
knover/tools/pre_tokenize.py:40
↓ 1 callers
Function
main
Numericalization main process.
knover/tools/pre_numericalize.py:42
↓ 1 callers
Function
main
(args)
knover/tools/expand_embedding.py:37
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task1/generate_inference_dataset_with_schema.py:23
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task1/post_process_inference_result_with_schema.py:23
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task1/generate_inference_dataset_with_context.py:21
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task3/generate_inference_dataset.py:24
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task3/post_process_inference_result.py:21
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task2/generate_inference_dataset.py:25
↓ 1 callers
Function
main
Main function.
projects/DSTC9-Track1/task2/post_process_inference_result.py:23
↓ 1 callers
Function
main
Main function.
projects/AG-DST/tools/negative_sampling.py:46
↓ 1 callers
Function
main
Main function.
projects/AG-DST/tools/create_sequence.py:50
↓ 1 callers
Function
main
Main function.
projects/AG-DST/tools/preprocess_dataset.py:43
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/tools/get_mark_logs.py:45
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/tools/preprocess_knowledge.py:34
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/tools/preprocess_logs.py:33
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/subtask2/generate_inference_dataset.py:40
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/subtask2/post_process_inference_result.py:36
↓ 1 callers
Function
main
Numericalization main process.
projects/DSTC10-Track2/task2/subtask2/pre_numericalize.py:39
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/subtask3/generate_inference_dataset.py:37
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/subtask3/post_process_inference_result.py:34
↓ 1 callers
Function
main
Main function.
projects/DSTC10-Track2/task2/subtask1/generate_inference_dataset.py:37
↓ 1 callers
Function
main
Numericalization main process.
projects/DSTC10-Track2/task2/subtask1/pre_numericalize.py:39
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/tools/generation_metrics.py:96
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/holle/build_selection_infer_data.py:78
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/holle/build_training_data.py:57
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/holle/build_generation_infer_data.py:45
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/holle/eval_multi_ref_generation.py:101
↓ 1 callers
Function
main
Main function.
projects/PLATO-KAG/wow/build_selection_infer_data.py:101
← previous
next →
201–300 of 590, ranked by callers