MCPcopy Create free account

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

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

Methodsize
(self)
language/gscan/xattn_model/dataset/preprocess.py:126
Methodsort_entities
(top_text_entities)
language/mentionmemory/modules/memory_attention_layer_test.py:633
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_europarl.py:174
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_europarl.py:198
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:232
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:259
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:286
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:311
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:248
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:262
Methodsource_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:273
Functionsp_mul
Element-wise multiply two SparseTensors. One SparseTensor has a fixed number of non-zero values, represented in the form of a B x K matrix of ind
language/labs/drkit/model_fns.py:249
Methodspan_tokenize
(self, x)
language/fruit/rendering_utils_test.py:102
Functionsparse_dense_mul
Element-wise multiplication between sparse and dense tensors. Returns a sparse tensor. Limited broadcasting of dense_mat is supported. If rank(de
language/labs/drkit/model_fns.py:124
Functionsparse_reduce
Reduce SparseTensor along the given axis. Args: sp_tensor: SparseTensor of arbitrary rank. rank: Integer rank of the sparse tensor. agg
language/labs/drkit/model_fns.py:225
Methodspecial_convert_tokens_to_ids
Maps all the added tokens to one of the unused tokens.
language/search_agents/muzero/env.py:352
Methodspecial_episode_statistics
(self)
language/search_agents/muzero/env.py:613
Functionspider_foreign_keys_map
Returns map of database id to a list of ForiegnKeyRelation tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:663
Functionspider_table_schemas_map
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:646
Functionspider_template_fn
Anonymize quoted substrings and numbers in SQL.
language/compgen/nqg/tasks/spider/gen_template_split.py:58
Functionsplit_article
Splits article into sections, with special logic for dealing with tables.
language/fruit/wiki_utils.py:222
Functionsplit_by_template
Split examples into two sets with disjoint templates. Args: examples: Collection of (source, target) examples. template_fn: Function mappin
language/compgen/nqg/tasks/template_utils.py:25
Functionsplit_input
(inp, out)
language/labs/consistent_zero_shot_nmt/utils/model_utils.py:178
Functionsplit_on_whitespace
(str_tensor)
language/question_answering/decatt_docreader/datasets/nq_long_dataset.py:40
Functionsplit_sections
Splits an article into sections, treating tables separately.
language/fruit/beam_pipelines.py:124
Methodsplit_top_k
(split_queries)
language/mentionmemory/modules/topk_similarity_layer.py:79
Methodsplit_top_k
(split_queries: Array)
language/mentionmemory/modules/sparse_topk_similarity_layer.py:83
Functionsql_to_sql_spans
Parse sql_string to a list of SqlSpan tuples. Args: sql_string: The SQL query to convert. table_schemas: List of TableSchema tuples. lo
language/xsp/data_preprocessing/abstract_sql.py:411
Functionstacked_bilstm
Encode inputs via stacked bidirectional LSTMs with residual connections. Args: input_emb: <float32> [batch_size, sequence_length, emb] inpu
language/common/layers/cudnn_layers.py:77
Functionstacked_highway
Construct multiple `highway` layers stacked on top of one another. Args: input_emb: tensor<float> [..., embedding_size] hidden_sizes: list<
language/common/layers/common_layers.py:82
Methodstart_adjustment
(self)
language/search_agents/muzero/state_tree.py:267
Methodstart_bundle
(self)
language/search_agents/muzero/run_inference_beam.py:198
Methodstart_bundle
(self)
language/search_agents/t5/run_inference_beam.py:147
Methodstart_idx
(self)
language/gscan/xattn_model/dataset/preprocess.py:118
Functionstate_from_documents
Produces a string representation of the search results. Args: results: A number of documents to be included in the state max_title_tokens:
language/search_agents/t5/t5_agent_lib.py:97
Methodstate_size
(self)
language/labs/exemplar_decoding/models/output_wrapper.py:102
Methodstate_size
(self)
language/labs/exemplar_decoding/models/attention.py:208
Methodstate_size
(self)
language/labs/exemplar_decoding/models/hyperlstm.py:302
Methodstep
(self, action: int, training_steps: int = 0, results: Optional[Sequence[envir
language/search_agents/muzero/env.py:890
Methodstep_fn
( params, encoded_input, mention_batch_positions, mention_start_positions,
language/mentionmemory/modules/batch_memory_attention_layer_test.py:159
Methodstep_fn
( params, encoded_input, mention_batch_positions, mention_start_positions,
language/mentionmemory/modules/memory_attention_layer_test.py:320
Methodstop_action
(self)
language/search_agents/muzero/state_tree.py:125
Functionstring_feature
(value)
language/capwap/utils/io_utils.py:55
Functionstring_feature_list
(values)
language/capwap/utils/io_utils.py:71
Functionstring_to_int_mapper
Creates a mapping function to convert strings to ints in a tf.data.Dataset. For `dataset` outputs of type `str`, uses the list of strings in the gi
language/common/inputs/dataset_utils.py:57
Functionsubmit_generator_to_queue
Submits items from a generator into a queue.
language/realm/parallel.py:49
Functionsurface_recall
Measures recall of generatable surfaces in predictions.
language/fruit/metrics.py:76
Functionswap_examples
Swaps examples between examples_1 and examples_2 to maximize divergence. This approach first balances atoms to ensure that every atom that appears
language/compgen/nqg/tasks/mcd_utils.py:420
Functionsymbols_to_logits_fn
Go from ids to logits for next symbol.
language/capwap/utils/transformer_utils.py:571
Functionsynonym_first_strategy
Strategy to add the word definition to the beginning of the prompt.
language/wino_dict/utils.py:705
Functionsynonym_last_strategy
Strategy to add the word definition to the end of the prompt.
language/wino_dict/utils.py:712
Functiontarget_from_terms
(addition_term: Term, subtraction_term: Term, or_term: Term)
language/search_agents/t5/t5_agent_lib.py:167
Functiontemplate_to_ids
Converts template to a list of input ids and its corresponding mask.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:328
Functiontemplate_to_input_tensor
This function converts a template to a corresponding input tensor.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:395
Functiontensor_to_numpy
Convert numpy if not already numpy array.
language/mentionmemory/utils/test_utils.py:55
Functiontensorize
(x)
language/boolq/run_recurrent_model_boolq.py:409
Methodterminals
(self)
language/search_agents/muzero/state_tree.py:150
MethodtestSafe
(self)
language/nql/nql/dataset_test.py:218
Methodtest_accuracy_as_expected
(self)
language/mentionmemory/utils/metric_utils_test.py:124
Methodtest_add_adversarial_converter
Tests the add_adversarial converter.
language/casper/augment/casper_converters_test.py:222
Methodtest_add_entity_tokens
(self, seed, batch_size, new_length, p_mention_to_mask)
language/mentionmemory/utils/mention_preprocess_utils_test.py:561
Methodtest_add_oracle_converter
Tests the add_oracle converter.
language/casper/augment/casper_converters_test.py:153
Methodtest_add_oracle_fail_converter
Tests the add_oracle converter when there are no good index entries.
language/casper/augment/casper_converters_test.py:201
Methodtest_add_oracle_special_cases_converter
Tests the add_oracle converter on special cases.
language/casper/augment/casper_converters_test.py:180
Methodtest_add_sampled_3_converter
Tests the add_sampled converter.
language/casper/augment/casper_converters_test.py:127
Methodtest_add_top_1_converter
Tests the add_top converter.
language/casper/augment/casper_converters_test.py:90
Methodtest_add_top_3_converter
Tests the add_top converter.
language/casper/augment/casper_converters_test.py:107
Methodtest_add_values_float
(self, bsz, seq_len, index_len, dim)
language/mentionmemory/utils/jax_utils_test.py:123
Methodtest_add_values_int
(self, bsz, seq_len, index_len, dim)
language/mentionmemory/utils/jax_utils_test.py:141
Methodtest_analyze
(self)
language/wino_dict/utils_test.py:187
Methodtest_and_or_jump_notation
(self)
language/nql/nql/nql_test.py:797
Methodtest_anonymize
Tests anonymization.
language/casper/augment/casper_formatters_test.py:159
Methodtest_application_scores
(self)
language/compgen/nqg/model/parser/nqg_model_test.py:26
Methodtest_as_nql_after_type_defined
(self)
language/nql/nql/nql_test.py:82
Methodtest_as_nql_before_type_defined
(self)
language/nql/nql/nql_test.py:77
Methodtest_as_nql_before_type_frozen
(self)
language/nql/nql/nql_test.py:88
Methodtest_as_nql_with_rank_2
(self)
language/nql/nql/nql_test.py:106
Methodtest_as_nql_with_wrong_rank
(self)
language/nql/nql/nql_test.py:100
Methodtest_as_nql_with_wrong_size
(self)
language/nql/nql/nql_test.py:94
Methodtest_ascii_word
(self)
language/common/inputs/char_utils_test.py:33
Methodtest_attention_block
Testing attention block.
language/mentionmemory/modules/attention_test.py:37
Methodtest_attention_layer
Testing entity attention layer.
language/mentionmemory/modules/entity_attention_layer_test.py:61
Methodtest_attention_layer
Testing entity attention layer.
language/mentionmemory/modules/retrieval_update_layers_test.py:90
Methodtest_bad_constructor_raises_error
(self)
language/fruit/rendering_utils_test.py:33
Methodtest_batching_has_remainder
Tests if batching does not drop any example.
language/casper/retrieve/query_retrievers_test.py:160
Methodtest_batching_no_remainder
Tests if batching does not drop any example.
language/casper/retrieve/query_retrievers_test.py:143
Methodtest_bert_tokenizer
(self)
language/emql/util_test.py:84
Methodtest_bleu_eval
Tests whether we are seeing the expected BLEU score.
language/totto/eval_pipeline_test.py:95
Methodtest_bool_false
(self)
language/canine/config_utils_test.py:184
Methodtest_bool_false_string
(self)
language/canine/config_utils_test.py:194
Methodtest_bool_true
(self)
language/canine/config_utils_test.py:179
Methodtest_bool_true_string
(self)
language/canine/config_utils_test.py:189
Methodtest_bucket_by_quantiles
(self)
language/boolq/utils/ops_test.py:37
Methodtest_build_coref_positive_negative_mask
(self)
language/mentionmemory/modules/mention_losses_test.py:67
Methodtest_build_few_shot_prompts
(self)
language/wino_dict/utils_test.py:166
Methodtest_can_derive_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:26
Methodtest_can_derive_2
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:37
Methodtest_can_derive_after_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:75
Methodtest_can_derive_after_2
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:88
Methodtest_can_derive_and_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:62
← previousnext →5,301–5,400 of 6,154, ranked by callers