MCPcopy Create free account

hub / github.com/ag1988/injecting_numeracy / functions

Functions329 in github.com/ag1988/injecting_numeracy

↓ 1 callersFunctiondate_min_max
(n_args=3)
pre_training/numeric_data_generation/gen_numeric_data.py:113
↓ 1 callersMethodduplicate
(self)
textual_data_generation/generators/state.py:141
↓ 1 callersFunctionevaluate
(dataset, predictions)
pre_training/gen_bert/squad_finetuning/evaluate-v1.1.py:54
↓ 1 callersFunctionevaluate_json
Takes gold annotations and predicted answers and evaluates the predictions for each question in the gold annotations. Both JSON dictionarie
pre_training/gen_bert/drop_eval.py:192
↓ 1 callersFunctionevaluate_prediction_file
Takes a prediction file and a gold file and evaluates the predictions for each question in the gold file. Both files must be json formatted
pre_training/gen_bert/drop_eval.py:260
↓ 1 callersFunctionexact_match_score
(prediction, ground_truth)
pre_training/gen_bert/squad_utils.py:133
↓ 1 callersMethodextend
(mask, is_decoder=False)
pre_training/gen_bert/modeling.py:884
↓ 1 callersMethodextract_answer_info_from_annotation
(answer_annotation: Dict[str, Any])
pre_training/gen_bert/create_examples_n_features.py:316
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
pre_training/gen_bert/modeling.py:246
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
pre_training/gen_bert/squad_finetuning/modeling.py:242
↓ 1 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
pre_training/gen_bert/modeling.py:254
↓ 1 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
pre_training/gen_bert/squad_finetuning/modeling.py:250
↓ 1 callersMethodgenerate
(self, state, instantiation)
textual_data_generation/generators/qa_generator.py:28
↓ 1 callersFunctiongenerate_passages
(domain, generator, num_passages, print_examples)
textual_data_generation/generate_examples.py:71
↓ 1 callersFunctiongenerate_passages_limited
(domain, generator, total_num_examples)
textual_data_generation/generate_examples.py:96
↓ 1 callersMethodget1d
(x)
pre_training/gen_bert/modeling.py:1043
↓ 1 callersFunctionget_container_identifier
(container_value, container_attr_values, separator)
textual_data_generation/generators/state.py:172
↓ 1 callersFunctionget_container_parent_identifiers
(container_instant, separator)
textual_data_generation/generators/state.py:176
↓ 1 callersMethodget_context
(self)
textual_data_generation/generators/generator.py:33
↓ 1 callersFunctionget_decimal_sum
(decimal_digit_words)
pre_training/gen_bert/w2n.py:114
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
pre_training/gen_bert/squad_utils.py:7
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
pre_training/gen_bert/squad_finetuning/run_squad_dataset_utils.py:642
↓ 1 callersFunctionget_generators
(args)
textual_data_generation/generate_examples.py:11
↓ 1 callersFunctionget_list_subsets
(lst, max_subset_size=2)
textual_data_generation/utils/collections.py:16
↓ 1 callersFunctionget_metrics
Takes a predicted answer and a gold answer (that are both either a string or a list of strings), and returns exact match and the DROP F1 metr
pre_training/gen_bert/drop_eval.py:142
↓ 1 callersMethodget_num_containers
(self)
textual_data_generation/generators/state.py:48
↓ 1 callersFunctionget_number_sign
(update, sent_instantiation)
textual_data_generation/generators/generator_utils.py:176
↓ 1 callersMethodinference
(self, input_ids, token_type_ids=None, input_mask=None, start_tok_id=1030, max_decoding_steps=20)
pre_training/gen_bert/modeling.py:1122
↓ 1 callersMethodis_compatible
(self, state, instantiation)
textual_data_generation/generators/qa_generator.py:24
↓ 1 callersFunctionis_whitespace
(c)
pre_training/gen_bert/squad_finetuning/run_squad_dataset_utils.py:110
↓ 1 callersFunctionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
pre_training/gen_bert/modeling.py:98
↓ 1 callersFunctionload_tf_weights_in_bert
Load tf checkpoints in a pytorch model
pre_training/gen_bert/squad_finetuning/modeling.py:94
↓ 1 callersFunctionlower
(text)
pre_training/gen_bert/squad_utils.py:114
↓ 1 callersFunctionlower
(text)
pre_training/gen_bert/squad_finetuning/evaluate-v1.1.py:23
↓ 1 callersFunctionmain
()
pre_training/convert_synthetic_numeric_to_drop.py:40
↓ 1 callersFunctionmain
()
pre_training/convert_synthetic_texual_to_drop.py:32
↓ 1 callersFunctionmain
()
pre_training/gen_train_data_MLM.py:159
↓ 1 callersFunctionmain
()
pre_training/numeric_data_generation/gen_numeric_data.py:149
↓ 1 callersFunctionmain
()
pre_training/gen_bert/create_examples_n_features.py:595
↓ 1 callersFunctionmain
()
pre_training/gen_bert/train_textual_with_numeric.py:202
↓ 1 callersFunctionmain
()
pre_training/gen_bert/finetune_on_drop.py:211
↓ 1 callersFunctionmain
()
pre_training/gen_bert/squad_finetuning/run_squad.py:68
↓ 1 callersFunctionmain
(args)
textual_data_generation/generate_examples.py:123
↓ 1 callersFunctionmake_output_dir
(args, scripts_to_save=[sys.argv[0]])
pre_training/gen_bert/squad_finetuning/run_squad.py:55
↓ 1 callersFunctionmin_max_avg_expression
(args)
pre_training/numeric_data_generation/gen_numeric_data.py:64
↓ 1 callersMethodmlm_task
(self, input_ids, token_type_ids=None, input_mask=None, masked_lm_labels=None, random_shift=
pre_training/gen_bert/modeling.py:1012
↓ 1 callersMethodpassage
(self)
textual_data_generation/generators/generator.py:36
↓ 1 callersFunctionrand_percent
()
pre_training/numeric_data_generation/gen_numeric_data.py:87
↓ 1 callersFunctionremove_articles
(text)
pre_training/gen_bert/squad_utils.py:104
↓ 1 callersFunctionremove_articles
(text)
pre_training/gen_bert/squad_finetuning/evaluate-v1.1.py:13
↓ 1 callersFunctionremove_punc
(text)
pre_training/gen_bert/squad_utils.py:110
↓ 1 callersFunctionremove_punc
(text)
pre_training/gen_bert/squad_finetuning/evaluate-v1.1.py:19
↓ 1 callersFunctionreversed_token_list_to_sentence
(tokens)
textual_data_generation/generators/generator_utils.py:38
↓ 1 callersFunctionsave_model
(args, model, tokenizer)
pre_training/gen_bert/squad_finetuning/run_squad.py:418
↓ 1 callersFunctionselect_update_dependent_element
(token, token_info, last_indep_token, sent_instantiation, sent, use_instan
textual_data_generation/generators/generator_utils.py:51
↓ 1 callersFunctionsigned_expression
(args)
pre_training/numeric_data_generation/gen_numeric_data.py:53
↓ 1 callersFunctionsplit_digits
(wps)
pre_training/gen_train_data_MLM.py:146
↓ 1 callersFunctionsplit_digits
(wps: List[str])
pre_training/gen_bert/create_examples_n_features.py:408
↓ 1 callersFunctionsplit_token_by_delimiter
(token: Token, delimiter: str)
pre_training/gen_bert/create_examples_n_features.py:141
↓ 1 callersMethodtext_to_example
(self, # type: ignore question_text: str, passage_text: str
pre_training/gen_bert/create_examples_n_features.py:227
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pre_training/gen_bert/modeling.py:263
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
pre_training/gen_bert/squad_finetuning/modeling.py:259
↓ 1 callersMethodto_json_file
Save this instance to a json file.
pre_training/gen_bert/modeling.py:272
↓ 1 callersMethodto_json_file
Save this instance to a json file.
pre_training/gen_bert/squad_finetuning/modeling.py:268
↓ 1 callersFunctiontrim
(ids)
pre_training/gen_bert/finetune_on_drop.py:646
↓ 1 callersFunctiontruncate_seq
Truncates a list to a maximum sequence length
pre_training/gen_train_data_MLM.py:134
↓ 1 callersFunctionupdate_existing_instantiation
(token, token_idx, sent_instantiation, sent)
textual_data_generation/generators/generator_utils.py:45
↓ 1 callersFunctionuppercase_first_char
(string)
textual_data_generation/utils/py_utils.py:6
↓ 1 callersFunctionwhite_space_fix
(text)
pre_training/gen_bert/squad_utils.py:107
↓ 1 callersFunctionwhite_space_fix
(text)
pre_training/gen_bert/squad_finetuning/evaluate-v1.1.py:16
↓ 1 callersFunctionword_to_num
(number_sentence)
pre_training/gen_bert/w2n.py:132
↓ 1 callersFunctionwrapped_get_final_text
(example, feature, start_index, end_index, do_lower_case=True, verbose_logging=False, logger=None)
pre_training/gen_bert/finetune_on_drop.py:725
↓ 1 callersFunctionwrite_predictions
Write final predictions to the json file and log-odds of null if needed.
pre_training/gen_bert/squad_finetuning/run_squad_dataset_utils.py:446
Method__getitem__
(self, item)
pre_training/gen_bert/train_textual_with_numeric.py:85
Method__getitem__
(self, item)
pre_training/gen_bert/train_textual_with_numeric.py:158
Method__getitem__
(self, item)
pre_training/gen_bert/finetune_on_drop.py:85
Method__getitem__
(self, item)
pre_training/gen_bert/finetune_on_drop.py:154
Method__init__
(self, qas_id, passage_id, question_tokens,
pre_training/gen_bert/create_examples_n_features.py:27
Method__init__
(self, unique_id, example_index, max_seq_length,
pre_training/gen_bert/create_examples_n_features.py:88
Method__init__
(self, max_n_samples: int = -1, include_more_numbers: bool = False,
pre_training/gen_bert/create_examples_n_features.py:181
Method__init__
(self, training_path, epoch=1, tokenizer=None, num_data_epochs=1)
pre_training/gen_bert/train_textual_with_numeric.py:49
Method__init__
(self, args, split='train', typ='')
pre_training/gen_bert/train_textual_with_numeric.py:117
Method__init__
(self, training_path, epoch=1, tokenizer=None, num_data_epochs=1)
pre_training/gen_bert/finetune_on_drop.py:49
Method__init__
(self, args, split='train')
pre_training/gen_bert/finetune_on_drop.py:117
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
pre_training/gen_bert/modeling.py:184
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
pre_training/gen_bert/modeling.py:284
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:302
Method__init__
(self, config, output_attentions=False, keep_multihead_output=False)
pre_training/gen_bert/modeling.py:335
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:408
Method__init__
(self, config, output_attentions=False, keep_multihead_output=False)
pre_training/gen_bert/modeling.py:422
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:470
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:485
Method__init__
(self, config, output_attentions=False, keep_multihead_output=False)
pre_training/gen_bert/modeling.py:519
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:545
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:560
Method__init__
(self, config, bert_model_embedding_weights)
pre_training/gen_bert/modeling.py:577
Method__init__
(self, config, bert_model_embedding_weights)
pre_training/gen_bert/modeling.py:596
Method__init__
(self, config)
pre_training/gen_bert/modeling.py:606
Method__init__
(self, config, bert_model_embedding_weights)
pre_training/gen_bert/modeling.py:616
Method__init__
(self, config, *inputs, **kwargs)
pre_training/gen_bert/modeling.py:631
← previousnext →101–200 of 329, ranked by callers