MCPcopy Create free account

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

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

Method_can_construct
(pieces, valid_actions)
language/search_agents/muzero/state_tree.py:593
Function_check_dims
(m)
language/labs/exemplar_decoding/models/attention.py:67
Function_compare_fn
(best_eval_result, current_eval_result)
language/common/utils/exporters.py:194
Function_compile_data
Concatenate all `datasets` and save to `filename`.
language/labs/consistent_zero_shot_nmt/data_generators/translate_europarl.py:107
Function_compile_data
Concatenate all `datasets` and save to `filename`.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:194
Function_compile_data
Concatenate all `datasets` and save to `filename`.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:159
Function_compute_attention
Computes the attention and alignments for a given attention_mechanism.
language/labs/exemplar_decoding/models/attention.py:509
Method_compute_crossed_search_boundary
()
language/search_agents/muzero/state_tree.py:555
Method_condition_generator
(a, b)
language/canine/tensor_contracts_test.py:172
Function_convert_qa_pairs
Generate TF examples.
language/orqa/preprocessing/convert_to_nq_open.py:38
Method_convert_tokens_to_actions
(valid_words_list: List[ValidWords])
language/search_agents/muzero/env.py:388
Method_convert_word_tokens_to_full_words
(valid_words_list: List[ValidWords])
language/search_agents/muzero/env.py:383
Function_cooccur_probability
Returns probability of ngram being entailed by the table. Uses the co-occurrence counts given along with the lexical entailment model describ
language/table_text_eval/table_text_eval.py:125
Function_copy_model
Copy model checkpoint for future use.
language/labs/drkit/run_dualencoder_qa.py:1138
Method_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:435
Method_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_classifier.py:459
Method_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:440
Method_create_examples
Creates examples for the training and dev sets.
language/conpono/evals/run_concat_classifier.py:464
Method_create_generator
(self)
language/labs/drkit/bert_utils.py:93
Method_create_generator
(self)
language/labs/drkit/bert_utils_v2.py:93
Method_create_generator
(self)
language/labs/drkit/hotpotqa/demo.py:314
Function_create_int_feature
(length)
language/compgen/csl/model/training/input_utils.py:46
Function_create_long_answer_examples
Create long answer examples.
language/question_answering/decatt_docreader/preprocessing/create_nq_long_examples.py:100
Function_create_short_answer_examples
Create short examples.
language/question_answering/decatt_docreader/preprocessing/create_nq_short_pipeline_examples.py:83
Function_cumulative_max
(accumulation, score)
language/question_answering/decatt_docreader/utils/span_utils.py:37
Function_datekey
(fact)
language/templama/templama.py:278
Function_decode_batch_input_fn
Generator to produce batches of inputs.
language/labs/consistent_zero_shot_nmt/utils/t2t_tweaks.py:39
Function_decode_input_tensor_to_features_dict
Convert the interactive input format (see above) to a dictionary. Args: feature_map: dict with inputs. hparams: model hyperparameters Re
language/labs/consistent_zero_shot_nmt/utils/t2t_tweaks.py:78
Method_default_compare_fn
Returns True if the current metric is better than the best metric.
language/common/utils/exporters.py:66
Method_discard_full_word
(full_word: str, valid_words_list: List[ValidWords])
language/search_agents/muzero/env.py:394
Function_do_parse
(line)
language/orqa/datasets/text_classification_dataset.py:47
Function_do_parse
(line)
language/orqa/datasets/orqa_dataset.py:25
Function_do_print
(n, sequence, lengths, to_txt)
language/labs/exemplar_decoding/models/common.py:107
Method_encode_observation
(self, observation, training=True)
language/search_agents/muzero/network.py:47
Method_enumerate_to_dict
(result_idx, tensor_dict)
language/realm/retrieval.py:381
Method_episode_reward
(self, metric: str)
language/search_agents/muzero/env.py:692
Function_extract_labels
(d)
language/orqa/models/text_classifier_model.py:197
Function_extract_labels
(d)
language/orqa/models/orqa_model.py:494
Method_extract_vocabulary
(bert_state, token_ids)
language/search_agents/muzero/env.py:405
Method_field_names
Returns this config's field names as a set.
language/canine/config_utils.py:179
Method_filter_fn
(x)
language/fruit/beam_pipelines.py:636
Function_find_best_span
Compute the best span.
language/question_answering/decatt_docreader/utils/span_utils.py:46
Method_find_operator
()
language/search_agents/muzero/state_tree.py:581
Method_find_word_action
()
language/search_agents/muzero/state_tree.py:565
Method_find_word_prefix
()
language/search_agents/muzero/state_tree.py:533
Function_fingerprint
(node)
language/compgen/csl/model/data/parsing_utils.py:94
Method_fn
(x, y)
language/common/utils/tensor_utils_test.py:250
Method_follow_named_rel
Follow a specific relation in the KG. A relation-set following on a reified KB consists of two executions of _follow_named_rel(), one in the
language/nql/nql/dist.py:82
Method_follow_relation_set
(self, rel_expr, inverted)
language/nql/demos/gridworld_scaling/scaling_eval.py:61
Method_follow_relation_set
(self, rel_expr, inverted)
language/nql/demos/gridworld_scaling/scaling_eval.py:92
Method_follow_relation_set
(self, rel_expr, inverted)
language/nql/demos/gridworld_scaling/scaling_eval.py:136
Function_gen_compare_retrievals_with_numpy_list
()
language/mentionmemory/modules/memory_attention_layer_test.py:34
Method_generate_examples
(self, filepath, **kwargs)
language/serene/claim_tfds.py:77
Method_generate_examples
(self, boolq_filepath, fold)
language/serene/boolq_tfds.py:40
Function_get_atoms_fn
(example)
language/compgen/nqg/tasks/mcd_utils_test.py:23
Function_get_compounds_fn
(example)
language/compgen/nqg/tasks/mcd_utils_test.py:28
Function_get_domain
(ex: query_retrievers.Example)
language/casper/retrieve/cache_query_retrievals.py:50
Function_get_final_text
(pred_text, orig_text)
language/orqa/models/orqa_model.py:297
Function_get_frame
(ex: query_retrievers.Example)
language/casper/retrieve/cache_query_retrievals.py:54
Function_get_input_output_names
Records input and output features of decode_fn and preprocess_fn. Args: patterns: patterns for the input files. decode_fn: a function that
language/mentionmemory/utils/data_utils.py:91
Function_get_intent
(ex: query_retrievers.Example)
language/casper/retrieve/cache_query_retrievals.py:58
Function_get_prediction_text
Get the prediction text for a single row in the batch.
language/question_answering/decatt_docreader/models/nq_short_pipeline_model.py:208
Method_get_restricted_trie
(rule: str, trie: pygtrie.Trie)
language/search_agents/muzero/state_tree.py:598
Function_get_rules_for_other_examples
Add rules for examples outside of sample that cannot be derived.
language/compgen/nqg/model/induction/induction_utils.py:235
Function_get_single_server_dataset
(server)
language/realm/preprocessing.py:156
Function_get_target_action_ids
(keys_to_tensors)
language/xsp/model/input_pipeline.py:57
Function_get_target_action_types
(keys_to_tensors)
language/xsp/model/input_pipeline.py:50
Function_get_target_len
(keys_to_tensors)
language/xsp/model/input_pipeline.py:65
Function_get_test_add_entity_tokens
()
language/mentionmemory/utils/mention_preprocess_utils_test.py:76
Function_get_test_mask_mentions_and_tokens_iterable
()
language/mentionmemory/utils/mention_preprocess_utils_test.py:28
Function_get_test_preprocess_mention_targets_iterable
()
language/mentionmemory/utils/mention_preprocess_utils_test.py:44
Function_get_test_process_batchwise_mention_targets_iterable
()
language/mentionmemory/utils/mention_preprocess_utils_test.py:59
Method_greater
(a, b)
language/canine/tensor_contracts_test.py:98
Function_hash_fn
(x)
language/orqa/preprocessing/create_data_splits.py:110
Function_info
(self)
language/serene/fever_tfds.py:761
Method_info
(self)
language/serene/claim_tfds.py:40
Method_info
(self)
language/serene/boolq_tfds.py:65
Method_info
(self)
language/serene/wiki_tfds.py:76
Function_init_fn
(_, sess)
language/boolq/run_recurrent_model_boolq.py:459
Method_init_fn
(_, session)
language/common/inputs/embedding_utils.py:189
Function_inner_loop
Inner beam seach loop. There are three groups of tensors, alive, finished, and topk. The alive group contains information about the current a
language/xsp/model/beam_search.py:319
Method_input_fn
Convert input into features.
language/labs/drkit/bert_utils.py:184
Method_input_fn
Convert input into features.
language/labs/drkit/bert_utils_v2.py:179
Method_input_fn
Convert input into features.
language/labs/drkit/hotpotqa/demo.py:520
Method_input_fn
Convert input into features.
language/labs/drkit/hotpotqa/demo.py:742
Method_ipython_display_
(self)
language/nql/nql/__init__.py:311
Function_is_valid_codepoint
(codepoints: tf.Tensor)
language/canine/modeling.py:70
Function_link_question
Add entity links for this question.
language/labs/drkit/metaqa/preprocessing/metaqa_preprocess.py:166
Function_link_question
Add entity links for this question.
language/emql/preprocess/metaqa_preprocess.py:166
Function_load_json
(filename)
language/xsp/data_preprocessing/estimate_asql_coverage_michigan.py:65
Method_log_error
(error: str)
language/search_agents/muzero/state_tree.py:618
Function_loop_cond
Checking termination condition. We terminate when we decoded up to decode_length or the lowest scoring item in finished has a greater score t
language/xsp/model/beam_search.py:381
Function_lowercase
(x)
language/boolq/utils/ops.py:114
Function_mapper
(dataset)
language/common/inputs/dataset_utils.py:50
Function_mapper
(dataset)
language/common/inputs/char_utils.py:103
Function_mapper
Tokenizes strings using tf.string_split and truncates by length.
language/question_answering/decatt_docreader/models/nq_long_model.py:191
Function_mention_probability
Returns the probability that the table entry is mentioned in the sentence. A simple implementation which checks the longest common subsequence betw
language/table_text_eval/table_text_eval.py:215
Function_mention_probability
Returns the probability that the table entry is mentioned in the sentence. A simple implementation which checks the longest common subsequence betw
language/totto/totto_parent_eval.py:195
Function_mock_application_idx_fn
(unused_span_begin, unused_span_end, unused_rule)
language/compgen/nqg/model/parser/data/forest_serialization_test.py:25
Method_mock_normalize_fn
(x, y)
language/fruit/postprocessors_test.py:33
← previousnext →3,301–3,400 of 6,154, ranked by callers