MCPcopy Create free account

hub / github.com/google-research/language / functions

Functions6,154 in github.com/google-research/language

↓ 1 callersFunction_compute_new_divergence_1
Returns the updated compound divergence if compounds are moved. This function calculates the new compound divergence if the specified compounds a
language/compgen/nqg/tasks/mcd_utils.py:46
↓ 1 callersFunction_compute_new_divergence_2
Returns the updated compound divergence if compounds are moved. This function calculates the new compound divergence if the specified compounds a
language/compgen/nqg/tasks/mcd_utils.py:88
↓ 1 callersFunction_compute_raw_sari_score
Compute SARI score. The score is introduced in the following paper to measure sentence similarity. Optimizing Statistical Machine Transl
language/decontext/eval_util.py:148
↓ 1 callersMethod_compute_scores
(self, query)
language/quest/bm25/bm25_retriever.py:40
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
language/labs/drkit/run_dualencoder_qa.py:1064
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
language/labs/drkit/run_dualencoder_lsf.py:1996
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
language/bert_extraction/steal_bert_qa/models/run_squad.py:1048
↓ 1 callersFunction_compute_softmax
Compute softmax probability over raw logits.
language/conpono/evals/run_squad.py:1035
↓ 1 callersMethod_compute_token_boundaries
Computes the byte offset boundaries for each token in a text. Uses greedy left-to-right string-matching to align each token with a position i
language/realm/featurization.py:496
↓ 1 callersFunction_convert_examples
(pipeline)
language/compgen/csl/model/data/write_examples_beam.py:79
↓ 1 callersFunction_convert_ids_to_onehot
Returns a k-hot vector for the given input ids in vocab. Args: input_ids: (tf.int32) batch_size x seq_length input_mask: (tf.int32) batch_s
language/labs/drkit/run_dualencoder_lsf.py:1373
↓ 1 callersMethod_convert_input_to_indexed_sequence
(self, model_input, random_permutation)
language/xsp/data_preprocessing/convert_to_tfrecords.py:285
↓ 1 callersMethod_convert_input_to_sequence_example
(self, input_tokens, features)
language/xsp/data_preprocessing/convert_to_tfrecords.py:206
↓ 1 callersFunction_convert_nt
Convert rule to `rhs` argument for CFGRule.
language/compgen/csl/qcfg/qcfg_parser.py:29
↓ 1 callersMethod_convert_output_to_indexed_sequence
(self, example, table_index_map, column_index_map, base_idx)
language/xsp/data_preprocessing/convert_to_tfrecords.py:374
↓ 1 callersMethod_convert_output_to_sequence_example
(self, output_actions, features)
language/xsp/data_preprocessing/convert_to_tfrecords.py:247
↓ 1 callersFunction_convert_qcfg_nt
Convert QCFG non-terminal to TargetCFG non-terminal.
language/compgen/csl/qcfg/qcfg_target_parser.py:24
↓ 1 callersFunction_convert_rhs
Convert rule to `rhs` argument for CFGRule.
language/compgen/nqg/model/qcfg/qcfg_parser.py:23
↓ 1 callersFunction_convert_to_int_tensor
(values, padded_length)
language/compgen/nqg/model/parser/inference/inference_wrapper.py:26
↓ 1 callersFunction_convert_to_parser_rule
Convert Rule to CFGRule.
language/compgen/nqg/model/parser/inference/targets/target_grammar.py:87
↓ 1 callersFunction_convert_to_qcfg
Convert nested JointRule to QCFG source and target.
language/compgen/csl/augment/qcfg_sampler.py:23
↓ 1 callersFunction_convert_to_qcfg
Convert nested JointRule to QCFG source and target.
language/compgen/csl/augment/joint_sampler.py:135
↓ 1 callersFunction_convert_to_rhs
Convert rule to `rhs` argument for CFGRule.
language/compgen/nqg/tasks/spider/sql_parser.py:93
↓ 1 callersMethod_convert_to_sequence_example
(self, input_tokens, output_actions, utterance)
language/xsp/data_preprocessing/convert_to_tfrecords.py:259
↓ 1 callersFunction_convert_to_tf_example
Return tf.Example generated for input (source, target).
language/compgen/csl/model/data/example_converter.py:119
↓ 1 callersFunction_convert_to_tf_example
Return tf.Example generated for input (source, target).
language/compgen/nqg/model/parser/data/example_converter.py:97
↓ 1 callersFunction_copy_model
Copy model checkpoint for future use.
language/labs/drkit/run_dualencoder_lsf.py:2134
↓ 1 callersFunction_copy_model
Copy model checkpoint for future use.
language/labs/drkit/run_multihop_follow.py:566
↓ 1 callersFunction_create_implicit_query
(subj, tmpl)
language/templama/templama.py:385
↓ 1 callersFunction_create_int_feature
(values, padded_length)
language/compgen/csl/model/data/example_converter.py:41
↓ 1 callersFunction_create_question
Find answer in context and create question.
language/labs/drkit/hotpotqa/preprocessing/convert_hotpot_to_mrqa.py:37
↓ 1 callersMethod_create_train_examples
(self, claim_json)
language/serene/fever_tfds.py:373
↓ 1 callersMethod_current_lucene_query
Flattens the `action tree` into a query for the environment.
language/search_agents/muzero/env.py:860
↓ 1 callersMethod_debug_metrics
(self, logs)
language/serene/callbacks.py:338
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/labs/drkit/run_dualencoder_qa.py:721
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/labs/drkit/input_fns.py:228
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/labs/drkit/run_dualencoder_lsf.py:1611
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/labs/drkit/hotpotqa/answer_extractor.py:789
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/compgen/csl/model/training/input_utils.py:23
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/compgen/nqg/model/parser/training/input_utils.py:23
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:469
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:464
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:716
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:323
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_qa/models/run_squad.py:714
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:650
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:360
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:342
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/cpc/run_cc_cpc.py:393
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/cpc/run_bilin_cpc.py:444
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/cpc/run_cpc.py:179
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_squad.py:701
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_finetune_coherence.py:184
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_hellaswag.py:156
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/classifier_utils.py:755
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_classifier.py:623
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_multichoice.py:156
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_record.py:253
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/evals/run_concat_classifier.py:628
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/binary_order/run_binary_coherence.py:162
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/conpono/reconstruct/run_paragraph_reconstruct.py:177
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/boolq/run_bert_boolq.py:327
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/question_answering/bert_joint/run_nq.py:1022
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/question_answering/b2t2/run_b2t2.py:518
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/question_answering/b2t2/run_dual_encoder.py:292
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/relation_learning/models/bert_fewshot_classifier.py:187
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/canine/tydiqa/tf_io.py:95
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/capwap/synthetic/generate_answers.py:388
↓ 1 callersFunction_decode_record
Decodes a record to a TensorFlow example.
language/capwap/synthetic/generate_questions.py:377
↓ 1 callersMethod_dict_to_sparse
Convert a dict back into a SciPy sparse COO matrix.
language/nql/nql/__init__.py:606
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
language/canine/bert_optimization.py:158
↓ 1 callersMethod_do_use_weight_decay
Whether to use L2 weight decay for `param_name`.
language/xsp/model/adam_weight_decay.py:115
↓ 1 callersMethod_embed_chars
Lookup character embeddings given integer Unicode codepoints.
language/canine/modeling.py:211
↓ 1 callersMethod_embed_hash_buckets
Converts IDs (e.g. codepoints) into embeddings via multiple hashing. Args: ids: The codepoints or other IDs to be hashed. embedding_s
language/canine/modeling.py:560
↓ 1 callersMethod_embed_index
Embeds the entire retrieval index.
language/casper/retrieve/query_retrievers.py:299
↓ 1 callersMethod_encode_dataset
Convert the tfds dataset to numbers by tokenizing/embedding.
language/serene/training.py:788
↓ 1 callersMethod_encode_final_chars
Run a shallow/low-dim transformer to get a final character encoding.
language/canine/modeling.py:386
↓ 1 callersMethod_encode_initial_chars
Encode characters using shallow/low dim transformer.
language/canine/modeling.py:242
↓ 1 callersFunction_equal_sparse
(a, b)
language/nql/nql/io_test.py:23
↓ 1 callersFunction_eval_model
(pipeline)
language/compgen/csl/model/inference/eval_model_beam.py:133
↓ 1 callersFunction_exact_presence
Verify if any of the answers is present in the given context. Args: short_answers: list of short answers to look for in the context context
language/asqa/scoring.py:140
↓ 1 callersFunction_example_losses
Compute the loss for examples.
language/xsp/model/loss.py:43
↓ 1 callersFunction_example_to_rule
Convert (source, target) example to a QCFGRule.
language/compgen/csl/induction/induction_utils.py:23
↓ 1 callersFunction_examples_compatible
Assesses whether to exampels are compatible for in-context learning.
language/wino_dict/utils.py:520
↓ 1 callersMethod_expand
Recursively expand `nt_symbol`.
language/compgen/csl/augment/qcfg_sampler.py:99
↓ 1 callersMethod_expand
Recursively expand `nt_symbol`.
language/compgen/csl/augment/joint_sampler.py:465
↓ 1 callersFunction_expand_dynamic_conditions
(conditions: Sequence[Condition], args_dict: Dict[Text, Any],
language/canine/tensor_contracts.py:1171
↓ 1 callersFunction_expand_vocab_type_grammar
Expands the `Word` non-terminal to question|answer|document subtypes. Args: grammar_productions: Current grammar with the basic `Word` non-term
language/search_agents/muzero/grammar_lib.py:122
↓ 1 callersFunction_f_lcs
Computes the LCS-based F-measure score. Source: https://www.microsoft.com/en-us/research/publication/ rouge-a-package-for-automatic-evaluation-of
language/labs/exemplar_decoding/utils/rouge_utils.py:77
↓ 1 callersFunction_filter_docs
(example, relevant_query_docs)
language/quest/xattn/filter_predictions.py:52
↓ 1 callersFunction_filter_rules
(rules, goal_rule)
language/compgen/nqg/model/induction/derivation_utils.py:102
↓ 1 callersFunction_filter_unbalanced_paren_candidates
(rules)
language/compgen/nqg/model/induction/induction_utils.py:89
↓ 1 callersMethod_final_reward
Computes the final step reward, r_T = S(d_T | q) - S(d_0 | q). Returns: The final reward.
language/search_agents/muzero/env.py:782
↓ 1 callersFunction_find_additional_rules_to_remove
Return other rules that `candidate_rule` enables removing.
language/compgen/csl/induction/greedy_policy.py:56
↓ 1 callersFunction_find_affected_rules
(rules, new_rule)
language/compgen/nqg/model/induction/induction_utils.py:56
↓ 1 callersFunction_find_answer
(text, answer)
language/labs/drkit/hotpotqa/answer_extractor.py:285
↓ 1 callersFunction_find_column
Find schema entity for column.
language/xsp/data_preprocessing/abstract_sql_converters.py:33
↓ 1 callersFunction_find_exact_matches
Returns longest non-overlapping sub-strings shared by source and target.
language/compgen/csl/tasks/exact_match_utils.py:37
↓ 1 callersFunction_find_exact_matches
Returns longest non-overlapping sub-strings shared by source and target.
language/compgen/nqg/model/induction/exact_match_utils.py:28
↓ 1 callersFunction_find_from_table
Finds the table that is being queried. Args: item: position in the SQL parse where the search will start. example: the QuikExample containi
language/xsp/data_preprocessing/sql_parsing.py:330
← previousnext →1,301–1,400 of 6,154, ranked by callers