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
Function
uniform_sampling_paragraph
Sample words uniformly randomly from a vocabulary to build a paragraph.
language/bert_extraction/steal_bert_qa/data_generation/preprocess_util.py:98
Function
union_op
Compute union between two sets. Args: set1_embs: dense embeddings of set1. set1_sketch: sparse count-min sketch of set1. set2_embs: den
language/emql/module.py:276
Function
unravel_index_2d
Unravel index, for 2D inputs only. See Numpy's unravel. Args: indices: <int32> [num_elements], coordinates into 2D row-major tensor. dim
language/capwap/utils/tensor_utils.py:85
Function
update_metrics_dtype
Convert metrics to more precise types.
language/mentionmemory/utils/metric_utils.py:277
Function
update_value_dtype
Convert value to more precise type.
language/mentionmemory/utils/metric_utils.py:270
Method
updated_stack_leaves
(stack, leaves, action)
language/search_agents/muzero/types.py:347
Method
validate
Validate that the arguments to the config are correct, error if not.
language/serene/training.py:99
Function
validate_config_flags
(flag_dict: Mapping[Text, Any])
language/mentionmemory/experiments/jax_runner.py:50
Function
validate_config_flags
(flag_dict: Mapping[Text, Any])
language/mentionmemory/experiments/memory_generation_main.py:265
Method
validate_flags_or_throw
Validate the input FLAGS or throw an exception.
language/canine/tydiqa/run_tydi.py:220
Function
variable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
language/labs/memory/model_utils.py:77
Function
variable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
language/common/utils/model_utils.py:76
Function
visit_softmax_temperature
(num_moves, training_steps, is_training=True)
language/search_agents/muzero/agent_lib.py:56
Function
visualize_mcts
Visualize the MCTS corresponding to `root` and `history`. The returned string can be visualized using the `forest` LaTex package (https://ctan.or
language/search_agents/muzero/types.py:400
Method
visualize_mcts
Visualize the MCTS corresponding to `root` and `history`. The returned string can be visualized using the `forest` LaTex package (https://cta
language/search_agents/muzero/env.py:983
Function
vmap_index_add
Convenience function for index add that differs along first dimension.
language/mentionmemory/utils/jax_utils.py:131
Function
vmap_slice
Convenience function for indexing that differs along first dimension .
language/mentionmemory/utils/jax_utils.py:125
Method
vocab_size
(self)
language/serene/preprocessing.py:275
Method
vocab_size
(self)
language/serene/preprocessing.py:630
Method
vocab_size
(self)
language/serene/training.py:275
Method
vocab_type
(self)
language/labs/consistent_zero_shot_nmt/data_generators/translate_multilingual.py:52
Function
vqa_example
Convert visual qa data into an Example proto. Args: image: An ImageMetadata instance. Returns: example: An Example proto with serialized
language/capwap/utils/io_utils.py:101
Function
warmup_constant
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:36
Function
warmup_cosine
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:31
Function
warmup_linear
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:41
Method
webqsp_generator
Generate set intersections. Yields: a tuple of features and label
language/emql/data_loader.py:977
Function
where
Selects slices of `if_true` and `if_false` based on `condition`. This is a wrapper around tf.where() that allows it to select slices at any level
language/common/utils/tensor_utils.py:50
Function
wiki_pipeline
Read WikiText103 filenames and create Beam pipeline.
language/conpono/cpc/preproc/wiki_preproc_pipeline.py:185
Function
wiki_pipeline
Read WikiText103 filenames and create Beam pipeline.
language/conpono/create_pretrain_data/wiki_preproc_pipeline.py:153
Function
wikimovie_eval_fn
Compute evaluation metrics for OneHopDataset or TwoHopDataset. Args: dataset: An object of type OneHopDataset. results: A list of result di
language/labs/drkit/evaluate.py:62
Function
wikisql_table_schemas_map
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:653
Function
word_to_char_ids
Convert a string to a padded vector of character ids. If the true length of the word is less than `word_length`, padding is added. If the true le
language/common/inputs/char_utils.py:35
Function
wrap_numpy_function
Wraps python function into Tensorflow op. Args: preprocess_input_names: names of all input features to the `preprocess_fn` function.
language/mentionmemory/utils/data_utils.py:127
Function
wrapped
(*args, **kwargs)
language/realm/profile.py:37
Function
write
Write a List of Dicts to jsonl file.
language/quest/common/jsonl_utils.py:40
Function
write_array_to_checkpoint
Write np array to checkpoint.
language/orqa/utils/scann_utils.py:26
Function
write_documents
(filepath, documents)
language/quest/common/document_utils.py:36
Function
write_examples
(filepath, examples)
language/quest/common/example_utils.py:69
Function
write_json
Write json object to the path. Args: obj: Object to write path: path to write
language/serene/util.py:117
Function
write_metrics
(writer, metrics_dict, step)
language/compgen/csl/common/writer_utils.py:24
Function
write_prompt_files
Creates in-context learning given a strategy to write the prompts.
language/wino_dict/utils.py:624
Function
write_ragged_to_checkpoint
Write scipy CSR matrix to checkpoint for loading to ragged tensor.
language/labs/drkit/search_utils.py:106
Function
write_rules
Write rules to txt file.
language/compgen/csl/qcfg/qcfg_file.py:33
Function
write_rules
Write rules to txt file.
language/compgen/nqg/model/qcfg/qcfg_file.py:34
Function
write_spans
Write spans to disk using RC model. Args: caption_file: Path to caption predictions. question_file: Path to question. output_file: Path
language/capwap/utils/reward_utils.py:624
Function
write_sparse_tensor_dict
Write a dictionary of tf.SparseTensor values to a file. Args: output_file: Filename string or FileLike object. sparse_tensor_dict: Map from
language/nql/nql/io.py:114
Function
write_sparse_to_checkpoint
Write scipy sparse CSR matrix to checkpoint.
language/labs/drkit/search_utils.py:134
Function
write_symbol_table_dict
Write a dictionary of SymbolTable values to a file. Args: output_file: Filename string or FileLike object. symbol_table_dict: Map from type
language/nql/nql/io.py:149
Function
write_text_files
Dumpts dataset to csv and text.
language/wino_dict/utils.py:583
Function
write_to_checkpoint
Write np array to checkpoint.
language/labs/drkit/search_utils.py:94
Function
write_to_tsv
Write examples to tsv file.
language/compir/utils/io_utils.py:64
Function
write_tsv
Write rows to tsv file.
language/quest/common/tsv_utils.py:32
Function
write_txt
Write examples to tsv file.
language/compgen/csl/common/txt_utils.py:31
Function
write_txt
Write newline separated text file.
language/quest/common/tsv_utils.py:41
← previous
6,101–6,154 of 6,154, ranked by callers