Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/language
/ functions
Functions
6,154 in github.com/google-research/language
⨍
Functions
6,154
◇
Types & classes
800
↳
Endpoints
12
Method
size
(self)
language/gscan/xattn_model/dataset/preprocess.py:126
Method
sort_entities
(top_text_entities)
language/mentionmemory/modules/memory_attention_layer_test.py:633
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_europarl.py:174
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_europarl.py:198
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:232
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:259
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:286
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_uncorpus.py:311
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:248
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:262
Method
source_data_files
Files to be passed to compile_data.
language/labs/consistent_zero_shot_nmt/data_generators/translate_iwslt17.py:273
Function
sp_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
Method
span_tokenize
(self, x)
language/fruit/rendering_utils_test.py:102
Function
sparse_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
Function
sparse_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
Method
special_convert_tokens_to_ids
Maps all the added tokens to one of the unused tokens.
language/search_agents/muzero/env.py:352
Method
special_episode_statistics
(self)
language/search_agents/muzero/env.py:613
Function
spider_foreign_keys_map
Returns map of database id to a list of ForiegnKeyRelation tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:663
Function
spider_table_schemas_map
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:646
Function
spider_template_fn
Anonymize quoted substrings and numbers in SQL.
language/compgen/nqg/tasks/spider/gen_template_split.py:58
Function
split_article
Splits article into sections, with special logic for dealing with tables.
language/fruit/wiki_utils.py:222
Function
split_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
Function
split_input
(inp, out)
language/labs/consistent_zero_shot_nmt/utils/model_utils.py:178
Function
split_on_whitespace
(str_tensor)
language/question_answering/decatt_docreader/datasets/nq_long_dataset.py:40
Function
split_sections
Splits an article into sections, treating tables separately.
language/fruit/beam_pipelines.py:124
Method
split_top_k
(split_queries)
language/mentionmemory/modules/topk_similarity_layer.py:79
Method
split_top_k
(split_queries: Array)
language/mentionmemory/modules/sparse_topk_similarity_layer.py:83
Function
sql_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
Function
stacked_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
Function
stacked_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
Method
start_adjustment
(self)
language/search_agents/muzero/state_tree.py:267
Method
start_bundle
(self)
language/search_agents/muzero/run_inference_beam.py:198
Method
start_bundle
(self)
language/search_agents/t5/run_inference_beam.py:147
Method
start_idx
(self)
language/gscan/xattn_model/dataset/preprocess.py:118
Function
state_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
Method
state_size
(self)
language/labs/exemplar_decoding/models/output_wrapper.py:102
Method
state_size
(self)
language/labs/exemplar_decoding/models/attention.py:208
Method
state_size
(self)
language/labs/exemplar_decoding/models/hyperlstm.py:302
Method
step
(self, action: int, training_steps: int = 0, results: Optional[Sequence[envir
language/search_agents/muzero/env.py:890
Method
step_fn
( params, encoded_input, mention_batch_positions, mention_start_positions,
language/mentionmemory/modules/batch_memory_attention_layer_test.py:159
Method
step_fn
( params, encoded_input, mention_batch_positions, mention_start_positions,
language/mentionmemory/modules/memory_attention_layer_test.py:320
Method
stop_action
(self)
language/search_agents/muzero/state_tree.py:125
Function
string_feature
(value)
language/capwap/utils/io_utils.py:55
Function
string_feature_list
(values)
language/capwap/utils/io_utils.py:71
Function
string_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
Function
submit_generator_to_queue
Submits items from a generator into a queue.
language/realm/parallel.py:49
Function
surface_recall
Measures recall of generatable surfaces in predictions.
language/fruit/metrics.py:76
Function
swap_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
Function
symbols_to_logits_fn
Go from ids to logits for next symbol.
language/capwap/utils/transformer_utils.py:571
Function
synonym_first_strategy
Strategy to add the word definition to the beginning of the prompt.
language/wino_dict/utils.py:705
Function
synonym_last_strategy
Strategy to add the word definition to the end of the prompt.
language/wino_dict/utils.py:712
Function
target_from_terms
(addition_term: Term, subtraction_term: Term, or_term: Term)
language/search_agents/t5/t5_agent_lib.py:167
Function
template_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
Function
template_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
Function
tensor_to_numpy
Convert numpy if not already numpy array.
language/mentionmemory/utils/test_utils.py:55
Function
tensorize
(x)
language/boolq/run_recurrent_model_boolq.py:409
Method
terminals
(self)
language/search_agents/muzero/state_tree.py:150
Method
testSafe
(self)
language/nql/nql/dataset_test.py:218
Method
test_accuracy_as_expected
(self)
language/mentionmemory/utils/metric_utils_test.py:124
Method
test_add_adversarial_converter
Tests the add_adversarial converter.
language/casper/augment/casper_converters_test.py:222
Method
test_add_entity_tokens
(self, seed, batch_size, new_length, p_mention_to_mask)
language/mentionmemory/utils/mention_preprocess_utils_test.py:561
Method
test_add_oracle_converter
Tests the add_oracle converter.
language/casper/augment/casper_converters_test.py:153
Method
test_add_oracle_fail_converter
Tests the add_oracle converter when there are no good index entries.
language/casper/augment/casper_converters_test.py:201
Method
test_add_oracle_special_cases_converter
Tests the add_oracle converter on special cases.
language/casper/augment/casper_converters_test.py:180
Method
test_add_sampled_3_converter
Tests the add_sampled converter.
language/casper/augment/casper_converters_test.py:127
Method
test_add_top_1_converter
Tests the add_top converter.
language/casper/augment/casper_converters_test.py:90
Method
test_add_top_3_converter
Tests the add_top converter.
language/casper/augment/casper_converters_test.py:107
Method
test_add_values_float
(self, bsz, seq_len, index_len, dim)
language/mentionmemory/utils/jax_utils_test.py:123
Method
test_add_values_int
(self, bsz, seq_len, index_len, dim)
language/mentionmemory/utils/jax_utils_test.py:141
Method
test_analyze
(self)
language/wino_dict/utils_test.py:187
Method
test_and_or_jump_notation
(self)
language/nql/nql/nql_test.py:797
Method
test_anonymize
Tests anonymization.
language/casper/augment/casper_formatters_test.py:159
Method
test_application_scores
(self)
language/compgen/nqg/model/parser/nqg_model_test.py:26
Method
test_as_nql_after_type_defined
(self)
language/nql/nql/nql_test.py:82
Method
test_as_nql_before_type_defined
(self)
language/nql/nql/nql_test.py:77
Method
test_as_nql_before_type_frozen
(self)
language/nql/nql/nql_test.py:88
Method
test_as_nql_with_rank_2
(self)
language/nql/nql/nql_test.py:106
Method
test_as_nql_with_wrong_rank
(self)
language/nql/nql/nql_test.py:100
Method
test_as_nql_with_wrong_size
(self)
language/nql/nql/nql_test.py:94
Method
test_ascii_word
(self)
language/common/inputs/char_utils_test.py:33
Method
test_attention_block
Testing attention block.
language/mentionmemory/modules/attention_test.py:37
Method
test_attention_layer
Testing entity attention layer.
language/mentionmemory/modules/entity_attention_layer_test.py:61
Method
test_attention_layer
Testing entity attention layer.
language/mentionmemory/modules/retrieval_update_layers_test.py:90
Method
test_bad_constructor_raises_error
(self)
language/fruit/rendering_utils_test.py:33
Method
test_batching_has_remainder
Tests if batching does not drop any example.
language/casper/retrieve/query_retrievers_test.py:160
Method
test_batching_no_remainder
Tests if batching does not drop any example.
language/casper/retrieve/query_retrievers_test.py:143
Method
test_bert_tokenizer
(self)
language/emql/util_test.py:84
Method
test_bleu_eval
Tests whether we are seeing the expected BLEU score.
language/totto/eval_pipeline_test.py:95
Method
test_bool_false
(self)
language/canine/config_utils_test.py:184
Method
test_bool_false_string
(self)
language/canine/config_utils_test.py:194
Method
test_bool_true
(self)
language/canine/config_utils_test.py:179
Method
test_bool_true_string
(self)
language/canine/config_utils_test.py:189
Method
test_bucket_by_quantiles
(self)
language/boolq/utils/ops_test.py:37
Method
test_build_coref_positive_negative_mask
(self)
language/mentionmemory/modules/mention_losses_test.py:67
Method
test_build_few_shot_prompts
(self)
language/wino_dict/utils_test.py:166
Method
test_can_derive_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:26
Method
test_can_derive_2
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:37
Method
test_can_derive_after_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:75
Method
test_can_derive_after_2
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:88
Method
test_can_derive_and_1
(self)
language/compgen/nqg/model/induction/derivation_utils_test.py:62
← previous
next →
5,301–5,400 of 6,154, ranked by callers