MCPcopy Create free account

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

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

↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:212
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
language/conpono/evals/run_classifier.py:478
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
language/conpono/evals/run_concat_classifier.py:483
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
language/boolq/run_bert_boolq.py:197
↓ 2 callersFunctionconvert_single_example
Converts a single NqExample into a list of InputFeatures.
language/question_answering/bert_joint/run_nq.py:562
↓ 2 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
language/relation_learning/models/bert_fewshot_classifier.py:89
↓ 2 callersMethodcopy_replace
Replaces delimiters in a piece of text with corresponding strings.
language/fruit/rendering_utils.py:198
↓ 2 callersMethodcreate
(self)
language/serene/wiki_db.py:60
↓ 2 callersFunctioncreate_byte_feature
(value)
language/frost/create_frost_finetuning_data.py:48
↓ 2 callersFunctioncreate_cm_sketch
Create cm sketches for a set of weighted entities. Args: topk_obj_ids: batch_size, topk topk_obj_weights: batch_size, topk all_entity_s
language/emql/module.py:178
↓ 2 callersFunctioncreate_completion
(question, ent)
language/conpono/evals/model_builder.py:414
↓ 2 callersMethodcreate_delimiter
(self, uid)
language/fruit/rendering_utils.py:99
↓ 2 callersFunctioncreate_float_feature
(values)
language/multivec/preprocessing/create_training_data.py:1010
↓ 2 callersFunctioncreate_hparams
()
language/labs/consistent_zero_shot_nmt/bin/t2t_decoder.py:71
↓ 2 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
language/conpono/cpc/preproc/preprocessing_utils.py:137
↓ 2 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
language/conpono/create_pretrain_data/preprocessing_utils.py:142
↓ 2 callersFunctioncreate_model
Creates a QGen model.
language/capwap/synthetic/generate_questions.py:203
↓ 2 callersFunctioncreate_optimizer
Creates an optimizer training op.
language/xsp/model/adam_weight_decay.py:134
↓ 2 callersFunctioncreate_paragraph_order_from_document
Create TrainingInstances for paragraph reconstruction.
language/conpono/create_pretrain_data/preprocessing_utils.py:104
↓ 2 callersFunctioncreate_rnn_cell
Returns an instance of an RNN cell. Args: unit_type: A string that specifies the type of the recurrent unit. Must be one of {"lstm", "gru
language/labs/consistent_zero_shot_nmt/utils/model_utils.py:195
↓ 2 callersFunctioncreate_task
Creates a task w/ correct filenames and postprocessing.
language/fruit/tasks.py:108
↓ 2 callersFunctiondcg_score
DCG score computation. Args: relevances: List[float], The list of relevance scores. Returns: The discounted cumulative gain for k == len
language/search_agents/muzero/utils.py:129
↓ 2 callersFunctiondense_layer_2d
A dense layer with 2D kernel. Args: input_tensor: Float tensor with rank 3. output_size: The size of output dimension. initializer: Ker
language/canine/bert_modeling.py:661
↓ 2 callersFunctiondense_layer_2d
A dense layer with 2D kernel. Args: input_tensor: Float tensor with rank 3. output_size: The size of output dimension. initializer: Ker
language/capwap/utils/transformer_utils.py:381
↓ 2 callersMethoddownsample_attention_mask
Downsample one dimension of an attention mask.
language/canine/modeling.py:497
↓ 2 callersMethodembed_claim_dataset
Embed the claim only dataset and save them with claim_ids. Args: dataset: The claims only dataset (e.g. claim_tfds.py) Returns:
language/serene/training.py:698
↓ 2 callersFunctionembed_text
Build embeddings using the word/char ids from `build_tensorize_text_fn`.
language/boolq/run_recurrent_model_boolq.py:191
↓ 2 callersFunctionempty_db
Empty DB.
language/xsp/data_utils/empty_database.py:26
↓ 2 callersMethodencode
(self, s)
language/serene/preprocessing.py:242
↓ 2 callersFunctionencode_block
Encode text and get multi-vector representations.
language/multivec/models/ranking_model_experiment_inbatch.py:470
↓ 2 callersMethodencode_image
(self, batch)
language/gscan/xattn_model/model/models.py:119
↓ 2 callersMethodencode_txt
(self, batch)
language/gscan/xattn_model/model/models.py:101
↓ 2 callersMethodenforce_article_length
Subroutine for enforcing article length.
language/fruit/beam_pipelines.py:600
↓ 2 callersFunctionentity_emb
Get BOW embeddings for entities.
language/labs/drkit/model_fns.py:361
↓ 2 callersFunctionevaluate_dataset_preds
Evaluate word level metrics.
language/bert_extraction/steal_bert_qa/utils/evaluate_squad_watermark.py:35
↓ 2 callersMethodexample_from_json_line
(self, key, text)
language/multivec/utils/data_processor.py:73
↓ 2 callersMethodexpand
(self, tokens_to_id_fn)
language/search_agents/muzero/utils.py:278
↓ 2 callersFunctionexport_paths
Gets a list of exported paths, ordered by timestamp (ascending). The two patterns are necessary since glob doesn't support general regexes that a
language/common/utils/export_utils.py:26
↓ 2 callersMethodf_lossy
Transforms a single program to its lossy IR.
language/compir/dataset_parsers/dataset_parser.py:39
↓ 2 callersFunctionfeature_list_from_input_feature
(input_feature)
language/relation_learning/models/bert_fewshot_classifier.py:138
↓ 2 callersMethodfeaturize_query
Featurizes a Query. Args: query: a Query instance. fmt: can be either 'dict' or 'bert_inputs'. Default is 'dict'. Returns:
language/realm/featurization.py:166
↓ 2 callersMethodfeed_dict_iterator
Iterator over feed_dict dictionaries. Args: dset: a tf.data.Dataset Yields: for each value produced by the datasets read's head,
language/nql/nql/util.py:355
↓ 2 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
language/conpono/evals/run_finetune_coherence.py:367
↓ 2 callersFunctionfile_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
language/boolq/run_bert_boolq.py:289
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/cpc/run_cc_cpc.py:373
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/cpc/run_bilin_cpc.py:424
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/cpc/run_cpc.py:155
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_finetune_coherence.py:159
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_hellaswag.py:136
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_multichoice.py:136
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_record.py:230
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/binary_order/run_binary_coherence.py:143
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/reconstruct/run_paragraph_reconstruct.py:158
↓ 2 callersFunctionfile_based_input_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/boolq/run_bert_boolq.py:316
↓ 2 callersMethodfilter_legal_actions_for_vsh_node
(legal_actions: Tuple[int], is_recursive: bool,
language/search_agents/muzero/state_tree.py:443
↓ 2 callersMethodfilter_legal_actions_for_vw_node
(legal_actions: Tuple[int], is_recursive: bool,
language/search_agents/muzero/state_tree.py:420
↓ 2 callersFunctionfind_nearest_wordpiece_index
According to offset_to_wp dictionary, find the wordpiece index for offset. Some offsets do not have mapping to word piece index if they are delimit
language/canine/tydiqa/preproc.py:377
↓ 2 callersFunctionfind_span
Find span corresponding to actual subj or obj strings.
language/mentionmemory/data/prepare_webred.py:82
↓ 2 callersFunctionfind_substitutions_for_b
Return substituions for `tuple_b` to match `tuple_a`.
language/compgen/csl/induction/unification_utils.py:290
↓ 2 callersFunctionfind_used_entities_in_string
Heuristically finds schema entities included in a SQL query.
language/xsp/evaluation/official_evaluation.py:137
↓ 2 callersFunctionflatten_beam_dim
Flattens the first two dimensions of a non-scalar array.
language/gscan/xattn_model/model/decode.py:60
↓ 2 callersFunctionflatten_bert_inputs
Flatten all tensors in a BertInput and also return the inverse.
language/realm/model.py:235
↓ 2 callersFunctionflatten_nested_dict
Transforms nested dictionary into a flat dictionary.
language/mentionmemory/utils/checkpoint_utils.py:46
↓ 2 callersFunctionforest_score_function
Iterate over nodes in forest and return score for root. Note that the returned score is not exponentiated, i.e. it is equivalent to the log o
language/compgen/csl/model/training/forest_utils.py:30
↓ 2 callersMethodframes
Iterate over all frames, or maybe just english-language ones.
language/templama/sling2facts.py:250
↓ 2 callersMethodfrom_file
Init JointSampler from JSON file.
language/compgen/csl/augment/joint_sampler.py:380
↓ 2 callersMethodfrom_flags
()
language/capwap/synthetic/generate_answers.py:168
↓ 2 callersMethodfrom_joint_rules
Init JointSampler from QCFG rules and Target CFG rules. Args: joint_rules: A list of JointRule instances. max_recursion: Attempt to l
language/compgen/csl/augment/joint_sampler.py:343
↓ 2 callersMethodfrom_json
Sets the properties of the column from a dictionary representation.
language/xsp/data_preprocessing/schema_utils.py:56
↓ 2 callersMethodfrom_json
Loads the NLToSQLInput attributes from a dictionary.
language/xsp/data_preprocessing/nl_to_sql_example.py:47
↓ 2 callersMethodfrom_json_file
Constructs a `TransformerConfig` from a json file of parameters.
language/capwap/utils/transformer_utils.py:91
↓ 2 callersMethodfrom_lossy
Prepares data to recover original programs from lossy IRs by seq2seq_2. Args: predictions: test set predictions, to be concatenated to the
language/compir/dataset_parsers/dataset_parser.py:136
↓ 2 callersFunctiongather_dataset_statistics
Gather dataset statistics and save them for each split.
language/gscan/data/main.py:134
↓ 2 callersMethodgen_one_follow_data
(self, subj_factids, rel_factids)
language/emql/data_loader.py:1217
↓ 2 callersMethodgen_one_membership_data
(self, objs)
language/emql/data_loader.py:1179
↓ 2 callersMethodgen_one_pair_data
Generate one data point for set intersection. Args: name: 'intersection' or 'union' set1: a list of entities in set 1 set2: a l
language/emql/data_loader.py:1190
↓ 2 callersMethodgenerate
(self, context: _Context, args_dict: Dict[Text, Any])
language/canine/tensor_contracts.py:612
↓ 2 callersMethodgenerate_distinct_objects
Similar to parent's function but generate more disntict for the general case.
language/gscan/data/dataset.py:320
↓ 2 callersFunctionget_all_encodings_and_target_ids
Gather encodings and IDs from all devices.
language/mentionmemory/modules/mention_losses.py:162
↓ 2 callersMethodget_atoms
(self, example)
language/compgen/nqg/tasks/spider/gen_tmcd_split.py:55
↓ 2 callersMethodget_auxiliary_output
Extract features from `loss_helpers` to be used as `auxiliary_output`.
language/mentionmemory/tasks/downstream_encoder_task.py:76
↓ 2 callersFunctionget_batch_emb_idxs
Get unique embedding idxs within the batch.
language/compgen/csl/model/training/training_utils.py:21
↓ 2 callersFunctionget_best_indexes
Get the n-best logits from a list.
language/question_answering/bert_joint/run_nq.py:1152
↓ 2 callersFunctionget_best_indexes
Get the n-best logits from a list.
language/canine/tydiqa/postproc.py:49
↓ 2 callersFunctionget_best_indexes
Gets the indices of the n-best logits from a list.
language/capwap/synthetic/generate_answers.py:551
↓ 2 callersFunctionget_bytes_feature
(ex, name)
language/realm/retrieval.py:179
↓ 2 callersFunctionget_bytes_feature
(ex, name)
language/realm/example_generator.py:283
↓ 2 callersMethodget_candidate_penalty_delta
Computes delta based on rule penalties.
language/compgen/csl/induction/objective_utils.py:136
↓ 2 callersMethodget_candidate_size_delta
Computes the delta in grammar size.
language/compgen/csl/induction/objective_utils.py:128
↓ 2 callersFunctionget_candidate_type_and_position
Returns type and position info for the candidate at the given index.
language/question_answering/bert_joint/run_nq.py:321
↓ 2 callersFunctionget_cell_html
Get html string for a table cell.
language/totto/table_to_text_html_utils.py:41
↓ 2 callersFunctionget_char_span
(start_word_idx: int, end_word_idx: int)
language/mentionmemory/data/prepare_tacred.py:90
↓ 2 callersFunctionget_checkpoint
Return checkpoint path and step, or (None, None).
language/compgen/nqg/model/parser/inference/eval_model.py:168
↓ 2 callersFunctionget_ckpt_number
(ckpt)
language/xsp/training/train_model.py:73
↓ 2 callersMethodget_compounds
(self, example)
language/compgen/nqg/tasks/spider/gen_tmcd_split.py:62
↓ 2 callersFunctionget_data_iterator
Get iterator over the dataset.
language/mentionmemory/experiments/memory_generation_main.py:53
↓ 2 callersFunctionget_dense_is_inside_for_dense_spans
Dense mask whether position is inside span given dense starts / ends.
language/mentionmemory/utils/mention_preprocess_utils.py:44
↓ 2 callersFunctionget_device_id
(axis_name: str)
language/mentionmemory/utils/mention_utils.py:51
↓ 2 callersMethodget_equivalent_ids
Return a list of equivalent ids between two splits.
language/gscan/data/dataset.py:165
↓ 2 callersMethodget_example_info
(self, example)
language/gscan/data/dataset.py:145
← previousnext →901–1,000 of 6,154, ranked by callers