MCPcopy Create free account

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

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

Functionmask_mentions_and_tokens_tf
Randomly masks whole mentions and random tokens up to a maximum. First, mentions are masked according to mention mask rate. If a mention is maske
language/mentionmemory/utils/mention_preprocess_utils.py:124
Functionmatmul_2d_index_add
Convenience function for 2D index add. Args: array: [batch, seq, dim] array to be added to. indices: Tuple[[n_index], [n_index]] arrays of
language/mentionmemory/utils/jax_utils.py:100
Functionmatmul_2d_index_select
Function subselects an array with 2D index using matrix multiplication. Args: array: [batch, seq, ...] array to be indexed over. indices: T
language/mentionmemory/utils/jax_utils.py:62
Functionmatmul_index_add
Convenience function for index add that differs along first dimension. Args: array: [batch, seq, dim] array to be added to. indices: [batch
language/mentionmemory/utils/jax_utils.py:82
Functionmatmul_slice
Convenience function for indexing that differs along first dimension. The function supports batched and not-batched input: (1) Input is NOT batc
language/mentionmemory/utils/jax_utils.py:27
Functionmax_scoring_span
Find the maximum-scoring valid span given start and end scores. Args: start_scores: [batch_size, seq_len] end_scores: [batch_size, seq_len]
language/question_answering/decatt_docreader/utils/span_utils.py:24
Functionmean_squared_error
(pred_list)
language/multivec/models/metrics.py:185
Functionmeasure_example_divergence
(examples_1, examples_2, get_compounds_fn,
language/compgen/nqg/tasks/mcd_utils.py:137
Methodmembership_generator
Generate set intersections. Yields: a tuple
language/emql/data_loader.py:640
Functionmerge_files
(output_path: str, files: Sequence[str])
language/wino_dict/utils.py:557
Functionmerge_nested_dicts
Merges `update` nested dict into the `original` dict. Args: original: target nested dictionary to be updated in-place. update: nested dicti
language/mentionmemory/utils/checkpoint_utils.py:87
Functionmerge_shared_tsvs
Merge multiple tsv files into one.
language/compgen/nqg/tasks/tsv_utils.py:57
Methodmetaqa_generator
Generate metaqa question answer pair. Yields: a tuple
language/emql/data_loader.py:908
Functionmetric_compare_fn
(key, compare)
language/common/utils/exporters.py:192
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:679
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:627
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:881
Functionmetric_fn
(per_example_loss, label_ids, membership_logits)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:603
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:520
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:502
Functionmetric_fn
Collect metrics for function.
language/conpono/cpc/run_cc_cpc.py:656
Functionmetric_fn
Collect metrics for function.
language/conpono/cpc/run_bilin_cpc.py:706
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/evals/run_finetune_coherence.py:317
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/conpono/evals/run_hellaswag.py:283
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/evals/classifier_utils.py:938
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/evals/run_classifier.py:788
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/conpono/evals/run_multichoice.py:278
Functionmetric_fn
Collect metrics for function.
language/conpono/evals/run_record.py:378
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/evals/run_concat_classifier.py:904
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/evals/race_utils.py:396
Functionmetric_fn
(per_example_loss, label_ids, logits, is_real_example)
language/conpono/binary_order/run_binary_coherence.py:306
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/conpono/reconstruct/run_paragraph_reconstruct.py:366
Functionmetric_fn
(per_example_loss, label_ids, logits)
language/boolq/run_bert_boolq.py:487
Functionmetrics_summary
Gather metrics summary.
language/gscan/xattn_model/train_utils.py:200
Functionmichigan_db_to_foreign_key_tuples
Returns a list of abstract_sql.ForeignKeyRelation.
language/xsp/data_preprocessing/abstract_sql_converters.py:612
Functionmichigan_db_to_foreign_key_tuples_orcale
Returns a list of abstract_sql.ForeignKeyRelation.
language/xsp/data_preprocessing/abstract_sql_converters.py:340
Functionmichigan_db_to_table_tuples
Returns list of abstract_sql.TableSchema from Michigan schema object.
language/xsp/data_preprocessing/abstract_sql_converters.py:302
Methodmin_remaining_steps
(self)
language/search_agents/muzero/state_tree.py:276
Methodmixture_generator
Generate set intersections. Yields: a tuple with one data for each task
language/emql/data_loader.py:827
Methodmodel_apply
(*args, **kwargs)
language/mentionmemory/encoders/readtwice_encoder_test.py:188
Methodmodel_apply
(*args, **kwargs)
language/mentionmemory/encoders/mention_memory_encoder_test.py:179
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/labs/drkit/run_dualencoder_qa.py:570
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/labs/drkit/run_dualencoder_lsf.py:1425
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/labs/drkit/run_multihop_follow.py:410
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/labs/drkit/hotpotqa/answer_extractor.py:657
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/labs/drkit/hotpotqa/demo.py:382
Functionmodel_fn
Model function.
language/orqa/predict/encode_blocks.py:58
Functionmodel_fn
Model function.
language/orqa/models/ict_model.py:83
Functionmodel_fn
Model function.
language/orqa/models/text_classifier_model.py:120
Functionmodel_fn
Model function.
language/orqa/models/orqa_model.py:396
Functionmodel_fn
Model function.
language/realm/model.py:31
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:596
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:565
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:819
Functionmodel_fn
Create a flex input model and decide the objective function.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:164
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:424
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_squad.py:607
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:526
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:461
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:445
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/cpc/run_cc_cpc.py:563
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/cpc/run_bilin_cpc.py:619
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/cpc/run_cpc.py:285
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_squad.py:594
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_finetune_coherence.py:242
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_hellaswag.py:197
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/classifier_utils.py:874
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_classifier.py:726
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_multichoice.py:197
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_record.py:308
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/run_concat_classifier.py:837
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/evals/race_utils.py:334
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/binary_order/run_binary_coherence.py:243
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/conpono/reconstruct/run_paragraph_reconstruct.py:271
Functionmodel_fn
Wrapper function to select model mode. This function is called by tf.estimator.train_and_evaluate function in the background. Args:
language/emql/model.py:1174
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/multivec/models/ranking_model_experiment_inbatch.py:602
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/boolq/run_bert_boolq.py:430
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/question_answering/bert_joint/run_nq.py:901
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/question_answering/b2t2/run_b2t2.py:258
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/question_answering/b2t2/run_dual_encoder.py:190
Functionmodel_fn
The `model_fn` for tf.Estimator.
language/relation_learning/models/bert_fewshot_classifier.py:336
Functionmodel_fn
A model function satisfying the tf.estimator API.
language/capwap/utils/reward_utils.py:636
Functionmodel_fn
A model function satisfying the tf.estimator API.
language/capwap/synthetic/filter_round_trip.py:99
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/capwap/synthetic/generate_answers.py:311
Functionmodel_fn
The `model_fn` for TPUEstimator.
language/capwap/synthetic/generate_questions.py:236
Functionmodel_fn
Model function that satisfies the Estimator API. Args: features: Dictionary of model input tensors. labels: Ununsed. mode: A tf.estimat
language/capwap/models/reinforce_model.py:33
Functionmodel_fn
Model function that satisfies the Estimator API. Args: features: Dictionary of model input tensors. labels: Ununsed. mode: A tf.estimat
language/capwap/models/supervised_model.py:30
Functionmodel_fn
Model function.
language/capwap/evaluation/infer_wsp_captions.py:73
Methodmodel_fn
Constructs the model used by Estimator.
language/realm/retrieval.py:399
Methodmodel_fn
The `model_fn` for TPUEstimator.
language/canine/tydiqa/tydi_modeling.py:96
Functionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
language/conpono/evals/classifier_utils.py:862
Functionmodel_fn_builder
Returns `model_fn` closure for TPUEstimator.
language/conpono/evals/race_utils.py:329
Functionmodel_fn_passage
Model function.
language/multivec/predict/encode_blocks.py:77
Functionmodel_fn_query
Model function.
language/multivec/predict/encode_blocks.py:61
Functionmodel_function
Model function. Atttention seq2seq model, augmented with an encoder over the targets of the nearest neighbors. Args: features: Dictionary
language/labs/exemplar_decoding/models/model_function.py:72
Functionmodel_function
Builds the `tf.estimator.EstimatorSpec` to train/eval with.
language/boolq/run_recurrent_model_boolq.py:434
Functionmodel_function
A model function satisfying the tf.estimator API. Args: features: Dictionary of feature tensors with keys: - question_tok: <string> [ba
language/question_answering/decatt_docreader/models/nq_long_model.py:49
Functionmodel_function
A model function satisfying the tf.estimator API. Args: features: Dictionary of feature tensors with keys: - question: <string> [batch_
language/question_answering/decatt_docreader/models/nq_short_pipeline_model.py:51
Methodmodel_init
(*args, **kwargs)
language/mentionmemory/encoders/readtwice_encoder_test.py:160
Methodmodel_init
(*args, **kwargs)
language/mentionmemory/encoders/mention_memory_encoder_test.py:142
← previousnext →4,801–4,900 of 6,154, ranked by callers