MCPcopy Create free account

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

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

Methodscore_pair
Scores paired annotation for standard metrics. Note that the query similarity based metrics are not included here. Args: paired_anno:
language/diffqg/metrics.py:205
Methodsegment_table
(self)
language/capwap/utils/transformer_utils.py:158
Functionsend_recurrent_inference_request
Recurrent inference for the agent, used during MCTS.
language/search_agents/muzero/run_inference_beam.py:99
Functionsequence_accuracy
Compute a sequence accuracy. This follows the original evaluation in https://github.com/LauraRuis/ gscan_seq2seq/blob/master/seq2seq/helpers.py
language/gscan/xattn_model/evaluation.py:49
Functionsequence_loss
Calculates the cross-entropy loss for examples. Args: logits: A float32 Tensor of logits of shape [B, T, vocab_size], where T is the maxi
language/xsp/model/loss.py:49
Functionsequence_mask
Returns a sequence mask, like tf.sequence_mask(). Unlike tf.sequence_mask(), this can also generate a transposed mask, which is convenient for wo
language/common/utils/tensor_utils.py:224
Methodserialize_dictionaries
Saves all symbol tables to a file preserving their ids. Args: output_file: Filename string or FileLike object. restrict_to: If define
language/nql/nql/__init__.py:1497
Functionserving_input_fn
Dummy serving input function. Returns: dummy: A dummy tuple that looks like a ServingInputReceiver as far as LatestModuleExpor
language/realm/model.py:298
Functionserving_input_receiver_function
Returns a placeholder-driven input_fn for SavedModel.
language/question_answering/decatt_docreader/models/nq_long_model.py:228
Functionserving_input_receiver_function
Returns a placeholder-driven input_fn for SavedModel.
language/question_answering/decatt_docreader/models/nq_short_pipeline_model.py:290
MethodsetUp
Creates examples for the retrieval index.
language/casper/retrieve/query_retrievers_test.py:25
MethodsetUp
(self)
language/compgen/csl/model/training/training_utils_test.py:77
MethodsetUp
(self)
language/compgen/csl/augment/sampler_utils_test.py:40
MethodsetUp
(self)
language/compgen/nqg/model/parser/training/training_utils_test.py:86
MethodsetUp
(self)
language/search_agents/muzero/bert_state_lib_test.py:59
MethodsetUp
(self)
language/search_agents/muzero/state_tree_test.py:135
MethodsetUp
(self)
language/search_agents/muzero/env_test.py:100
MethodsetUp
(self)
language/gscan/xattn_model/train_test.py:27
MethodsetUp
(self)
language/gscan/xattn_model/predict_test.py:26
MethodsetUp
(self)
language/mentionmemory/modules/kmeans_test.py:55
MethodsetUp
(self)
language/mentionmemory/modules/entity_attention_layer_test.py:38
MethodsetUp
(self)
language/mentionmemory/modules/mention_losses_test.py:49
MethodsetUp
(self)
language/mentionmemory/modules/retrieval_update_layers_test.py:70
MethodsetUp
(self)
language/mentionmemory/utils/mention_utils_test.py:33
MethodsetUp
(self)
language/mentionmemory/utils/data_utils_test.py:47
MethodsetUp
(self)
language/mentionmemory/encoders/mauto_encoder_test.py:94
MethodsetUp
(self)
language/mentionmemory/training/trainer_test.py:27
MethodsetUp
(self)
language/mentionmemory/tasks/mention_based_entity_qa_task_test.py:161
MethodsetUp
(self)
language/mentionmemory/tasks/ultra_fine_entity_typing_task_test.py:50
MethodsetUp
(self)
language/mentionmemory/tasks/text_classifier_test.py:70
MethodsetUp
(self)
language/mentionmemory/tasks/mention_memory_task_test.py:108
MethodsetUp
(self)
language/mentionmemory/tasks/mauto_task_test.py:99
MethodsetUp
(self)
language/nql/nql/util_test.py:175
MethodsetUp
(self)
language/nql/nql/util_test.py:299
MethodsetUp
(self)
language/nql/nql/nql_test.py:32
MethodsetUp
(self)
language/nql/nql/nql_test.py:251
MethodsetUp
(self)
language/nql/nql/nql_test.py:514
MethodsetUp
(self)
language/nql/nql/nql_test.py:544
MethodsetUp
(self)
language/nql/nql/nql_test.py:615
MethodsetUp
(self)
language/nql/nql/dataset_test.py:211
MethodsetUp
(self)
language/nql/nql/io_test.py:58
MethodsetUp
(self)
language/emql/util_test.py:24
MethodsetUp
(self)
language/emql/model_test.py:30
MethodsetUp
(self)
language/emql/eval_test.py:27
MethodsetUp
(self)
language/emql/cm_sketch_test.py:24
MethodsetUp
(self)
language/emql/module_test.py:24
MethodsetUp
(self)
language/question_answering/bert_joint/run_nq_test.py:72
MethodsetUp
(self)
language/fruit/metrics_test.py:156
MethodsetUp
(self)
language/fruit/rendering_utils_test.py:42
FunctionsetUpModule
()
language/compgen/csl/model/training/training_utils_test.py:117
FunctionsetUpModule
()
language/compgen/nqg/model/parser/training/training_utils_test.py:111
Functionset_file_contents
Overwrites `path` with `data.
language/common/utils/file_utils.py:40
Methodset_has_inverse_fact
()
language/emql/data_loader.py:144
Methodset_intersection_generator
Generate set intersections. Yields: a tuple
language/emql/data_loader.py:704
Methodset_inv_suffix
()
language/emql/data_loader.py:156
Methodset_negative_scores
(scores, indices)
language/mentionmemory/tasks/relation_classifier_task.py:242
Methodset_reorder
()
language/emql/data_loader.py:150
Functionset_summarize_num_elements
Sets number of tensor elements to print in `Assert`s.
language/canine/tensor_contracts.py:103
Methodsetup
(self)
language/serene/fever_tfds.py:151
Methodsetup
(self)
language/serene/wiki_tfds.py:34
Methodsetup
(self)
language/gscan/xattn_model/model/models.py:277
Methodsetup
(self)
language/mentionmemory/modules/entity_attention_layer.py:42
Methodsetup
(self)
language/mentionmemory/modules/retrieval_update_layers.py:78
Methodsetup
(self)
language/mentionmemory/modules/retrieval_update_layers.py:163
Methodsetup
(self)
language/mentionmemory/modules/mlm_layer.py:39
Methodsetup
(self)
language/mentionmemory/modules/memory_retrieval_layer.py:59
Methodsetup
(self)
language/mentionmemory/modules/memory_attention_layer.py:78
Methodsetup
(self)
language/mentionmemory/modules/batch_memory_attention_layer.py:64
Methodsetup
(self)
language/mentionmemory/modules/attention.py:44
Methodsetup
(self)
language/mentionmemory/modules/mlp.py:42
Methodsetup
(self)
language/mentionmemory/modules/transformer.py:50
Methodsetup
(self)
language/mentionmemory/modules/transformer.py:111
Methodsetup
(self)
language/mentionmemory/modules/transformer.py:145
Methodsetup
(self)
language/mentionmemory/modules/memory_extraction_layer.py:45
Methodsetup
(self)
language/mentionmemory/modules/embedding.py:42
Methodsetup
(self)
language/mentionmemory/encoders/bert_encoder.py:72
Methodsetup
(self)
language/mentionmemory/encoders/mauto_encoder.py:85
Methodsetup
(self)
language/mentionmemory/encoders/mention_memory_encoder.py:230
Methodsetup
(self)
language/mentionmemory/encoders/readtwice_encoder.py:122
Methodsetup
(self)
language/mentionmemory/encoders/eae_encoder.py:81
Methodsetup
(self)
language/mentionmemory/tasks/mention_classifier_task.py:49
Methodsetup
(self)
language/mentionmemory/tasks/mention_memory_task.py:43
Methodsetup
(self)
language/mentionmemory/tasks/eae_task.py:40
Methodsetup
(self)
language/mentionmemory/tasks/embedding_based_entity_qa_task.py:36
Methodsetup
(self)
language/mentionmemory/tasks/readtwice_task.py:41
Methodsetup
(self)
language/mentionmemory/tasks/mauto_task.py:45
Methodsetup
(self)
language/mentionmemory/tasks/example_task.py:33
Methodsetup
(self)
language/mentionmemory/tasks/relation_classifier_task.py:67
Methodsetup
(self)
language/mentionmemory/tasks/text_classifier.py:56
Methodsetup
(self)
language/mentionmemory/tasks/memory_generation_task.py:48
Methodsetup
(self)
language/mentionmemory/tasks/mention_based_entity_qa_task.py:72
Methodsetup
(self)
language/fruit/beam_pipelines.py:596
Methodsetup
(self)
language/fruit/beam_pipelines.py:757
Methodsetup
(self)
language/fruit/beam_pipelines.py:789
Functionshaped_py_func
Wrapper around tf.py_func that adds static shape information to the output. Args: func: Python function to call. inputs: List of input tens
language/common/utils/tensor_utils.py:142
Functionshift_left
Shift the input to the left by padding in the front on axis 1.
language/gscan/xattn_model/model/model_utils.py:29
Functionshift_right
Shift the input to the right by padding in the end on axis 1.
language/gscan/xattn_model/model/model_utils.py:20
Methodshould_include
(parser_rule)
language/compgen/csl/qcfg/qcfg_target_parser.py:221
Methodshould_include
(parser_rule)
language/compgen/csl/augment/joint_sampler.py:235
Functionsingle_tohost
(x)
language/gscan/xattn_model/predict.py:52
← previousnext →5,201–5,300 of 6,154, ranked by callers