MCPcopy Create free account

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

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

Functionuniform_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
Functionunion_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
Functionunravel_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
Functionupdate_metrics_dtype
Convert metrics to more precise types.
language/mentionmemory/utils/metric_utils.py:277
Functionupdate_value_dtype
Convert value to more precise type.
language/mentionmemory/utils/metric_utils.py:270
Methodupdated_stack_leaves
(stack, leaves, action)
language/search_agents/muzero/types.py:347
Methodvalidate
Validate that the arguments to the config are correct, error if not.
language/serene/training.py:99
Functionvalidate_config_flags
(flag_dict: Mapping[Text, Any])
language/mentionmemory/experiments/jax_runner.py:50
Functionvalidate_config_flags
(flag_dict: Mapping[Text, Any])
language/mentionmemory/experiments/memory_generation_main.py:265
Methodvalidate_flags_or_throw
Validate the input FLAGS or throw an exception.
language/canine/tydiqa/run_tydi.py:220
Functionvariable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
language/labs/memory/model_utils.py:77
Functionvariable_summaries
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
language/common/utils/model_utils.py:76
Functionvisit_softmax_temperature
(num_moves, training_steps, is_training=True)
language/search_agents/muzero/agent_lib.py:56
Functionvisualize_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
Methodvisualize_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
Functionvmap_index_add
Convenience function for index add that differs along first dimension.
language/mentionmemory/utils/jax_utils.py:131
Functionvmap_slice
Convenience function for indexing that differs along first dimension .
language/mentionmemory/utils/jax_utils.py:125
Methodvocab_size
(self)
language/serene/preprocessing.py:275
Methodvocab_size
(self)
language/serene/preprocessing.py:630
Methodvocab_size
(self)
language/serene/training.py:275
Methodvocab_type
(self)
language/labs/consistent_zero_shot_nmt/data_generators/translate_multilingual.py:52
Functionvqa_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
Functionwarmup_constant
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:36
Functionwarmup_cosine
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:31
Functionwarmup_linear
(x, warmup=0.002)
language/labs/exemplar_decoding/models/adam.py:41
Methodwebqsp_generator
Generate set intersections. Yields: a tuple of features and label
language/emql/data_loader.py:977
Functionwhere
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
Functionwiki_pipeline
Read WikiText103 filenames and create Beam pipeline.
language/conpono/cpc/preproc/wiki_preproc_pipeline.py:185
Functionwiki_pipeline
Read WikiText103 filenames and create Beam pipeline.
language/conpono/create_pretrain_data/wiki_preproc_pipeline.py:153
Functionwikimovie_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
Functionwikisql_table_schemas_map
Returns map of database id to a list of TableSchema tuples.
language/xsp/data_preprocessing/abstract_sql_converters.py:653
Functionword_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
Functionwrap_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
Functionwrapped
(*args, **kwargs)
language/realm/profile.py:37
Functionwrite
Write a List of Dicts to jsonl file.
language/quest/common/jsonl_utils.py:40
Functionwrite_array_to_checkpoint
Write np array to checkpoint.
language/orqa/utils/scann_utils.py:26
Functionwrite_documents
(filepath, documents)
language/quest/common/document_utils.py:36
Functionwrite_examples
(filepath, examples)
language/quest/common/example_utils.py:69
Functionwrite_json
Write json object to the path. Args: obj: Object to write path: path to write
language/serene/util.py:117
Functionwrite_metrics
(writer, metrics_dict, step)
language/compgen/csl/common/writer_utils.py:24
Functionwrite_prompt_files
Creates in-context learning given a strategy to write the prompts.
language/wino_dict/utils.py:624
Functionwrite_ragged_to_checkpoint
Write scipy CSR matrix to checkpoint for loading to ragged tensor.
language/labs/drkit/search_utils.py:106
Functionwrite_rules
Write rules to txt file.
language/compgen/csl/qcfg/qcfg_file.py:33
Functionwrite_rules
Write rules to txt file.
language/compgen/nqg/model/qcfg/qcfg_file.py:34
Functionwrite_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
Functionwrite_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
Functionwrite_sparse_to_checkpoint
Write scipy sparse CSR matrix to checkpoint.
language/labs/drkit/search_utils.py:134
Functionwrite_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
Functionwrite_text_files
Dumpts dataset to csv and text.
language/wino_dict/utils.py:583
Functionwrite_to_checkpoint
Write np array to checkpoint.
language/labs/drkit/search_utils.py:94
Functionwrite_to_tsv
Write examples to tsv file.
language/compir/utils/io_utils.py:64
Functionwrite_tsv
Write rows to tsv file.
language/quest/common/tsv_utils.py:32
Functionwrite_txt
Write examples to tsv file.
language/compgen/csl/common/txt_utils.py:31
Functionwrite_txt
Write newline separated text file.
language/quest/common/tsv_utils.py:41
← previous6,101–6,154 of 6,154, ranked by callers