MCPcopy Create free account

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

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

Functionhotpot_eval_fn
Compute evaluation metrics for HotpotQADataset. Args: dataset: An object of type HotpotQADataset. results: A list of result dicts from runn
language/labs/drkit/evaluate.py:214
Methodhparams
Update hyper parameters.
language/labs/consistent_zero_shot_nmt/data_generators/translate_multilingual.py:75
Methodid_to_string
(self, i: int)
language/canine/tydiqa/tydi_tokenization_interface.py:69
Functionids_to_strings
(input_ids, tokenizer)
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:494
Methodimage_order_table
(self)
language/capwap/utils/transformer_utils.py:174
Methodimage_region_table
(self)
language/capwap/utils/transformer_utils.py:170
Functioninduce_rules
Return set of induced rules for a given set of examples.
language/compgen/nqg/model/induction/induction_utils.py:266
Functioninfer
Constructs encoder and decoder transformation for training and eval. In the shapes described below, B is batch size, L is sequence length, D is t
language/xsp/model/transformer.py:613
Functioninference
Runs inference locally. Args: input_path: The TFRecord file with the input examples. predictions_path: The filepath to save example predict
language/xsp/model/run_inference.py:461
Functioninit
(key: PRNGKey, shape: Shape, dtype: Dtype = jnp.float32)
language/mentionmemory/utils/initializers.py:26
Functioninit_cache
(inputs, config)
language/gscan/xattn_model/predict.py:120
Functioninit_from_checkpoint
Initializes all of the variables using `init_checkpoint.
language/capwap/utils/checkpoint_utils.py:30
Functioninit_model_from_checkpoint
Initializes whitelisted parameters from pretrained checkpoint dir. Args: checkpoint_dir: Path to the checkpoint dir. use_tpu: Whether to us
language/xsp/model/load_from_checkpoint.py:55
Methodinitial_state
Creates the initial state values for the `AttentionWrapper` class. This is important for AttentionMechanisms that use the previous alignment
language/labs/exemplar_decoding/models/attention.py:230
Methodinitialize
Used to construct LSTM parameters.
language/labs/exemplar_decoding/models/output_wrapper.py:222
Methodinitialize
(self, env, predictor)
language/labs/drkit/hotpotqa/demo.py:1002
Methodinitialize
(self, env, predictor)
language/orqa/predict/orqa_demo.py:40
Methodinitializer
(self)
language/capwap/utils/transformer_utils.py:178
Functioninner_loop
Decoder function invoked on each while loop iteration.
language/xsp/model/transformer.py:513
Functioninput_fn
The actual input function.
language/labs/drkit/run_dualencoder_qa.py:735
Functioninput_fn
The actual input function.
language/labs/drkit/input_fns.py:242
Functioninput_fn
The actual input function.
language/labs/drkit/run_dualencoder_lsf.py:1625
Functioninput_fn
The actual input function.
language/labs/drkit/hotpotqa/answer_extractor.py:803
Functioninput_fn
An input function satisfying the tf.estimator API.
language/orqa/predict/encode_blocks.py:93
Functioninput_fn
An input function satisfying the tf.estimator API.
language/orqa/models/ict_model.py:177
Functioninput_fn
An input function satisfying the tf.estimator API.
language/orqa/models/text_classifier_model.py:188
Functioninput_fn
An input function satisfying the tf.estimator API.
language/orqa/models/orqa_model.py:485
Functioninput_fn
Input_fn satisfying TF Estimator spec.
language/realm/model.py:268
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:483
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:478
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:730
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:337
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_qa/models/run_squad.py:728
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:664
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:374
Functioninput_fn
The actual input function.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:356
Functioninput_fn
The actual input function.
language/conpono/cpc/run_cc_cpc.py:510
Functioninput_fn
The actual input function.
language/conpono/cpc/run_bilin_cpc.py:561
Functioninput_fn
The actual input function.
language/conpono/cpc/run_cpc.py:243
Functioninput_fn
The actual input function.
language/conpono/evals/run_squad.py:715
Functioninput_fn
The actual input function.
language/conpono/evals/run_finetune_coherence.py:198
Functioninput_fn
The actual input function.
language/conpono/evals/run_hellaswag.py:170
Functioninput_fn
The actual input function.
language/conpono/evals/classifier_utils.py:769
Functioninput_fn
The actual input function.
language/conpono/evals/run_classifier.py:637
Functioninput_fn
The actual input function.
language/conpono/evals/run_multichoice.py:170
Functioninput_fn
The actual input function.
language/conpono/evals/run_record.py:280
Functioninput_fn
The actual input function.
language/conpono/evals/run_concat_classifier.py:642
Functioninput_fn
The actual input function.
language/conpono/binary_order/run_binary_coherence.py:177
Functioninput_fn
The actual input function.
language/conpono/reconstruct/run_paragraph_reconstruct.py:236
Functioninput_fn
An input function satisfying the tf.estimator API.
language/multivec/predict/encode_blocks.py:128
Functioninput_fn
The actual input function.
language/multivec/models/ranking_model_experiment_inbatch.py:250
Functioninput_fn
The actual input function.
language/boolq/run_bert_boolq.py:341
Functioninput_fn
The actual input function.
language/question_answering/bert_joint/run_nq.py:1036
Functioninput_fn
The actual input function.
language/question_answering/b2t2/run_b2t2.py:564
Functioninput_fn
The actual input function.
language/question_answering/b2t2/run_dual_encoder.py:314
Functioninput_fn
The actual input function.
language/relation_learning/models/bert_fewshot_classifier.py:205
Functioninput_fn
The actual input function.
language/canine/tydiqa/tf_io.py:109
Functioninput_fn
tf.data.Dataset.
language/capwap/synthetic/filter_round_trip.py:69
Functioninput_fn
The actual input function.
language/capwap/synthetic/generate_answers.py:405
Functioninput_fn
The actual input function.
language/capwap/synthetic/generate_questions.py:406
Functioninput_fn
Wrapper for getting a dataset and batching it.
language/capwap/datasets/__init__.py:95
Functioninput_fn
()
language/xsp/model/input_pipeline.py:302
Methodinput_fn
Constructs the dataset fed to Estimator.
language/realm/retrieval.py:351
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:709
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:659
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:910
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:514
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:551
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:533
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_classifier.py:817
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/conpono/evals/run_concat_classifier.py:933
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/boolq/run_bert_boolq.py:512
Functioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/canine/tydiqa/tf_io.py:79
Functioninput_function
Input function.
language/labs/exemplar_decoding/utils/data.py:103
Functioninput_function
Pulls in pattern dataset. Args: is_train: A boolean indicating whether we are constructing the dataset for the train set or the eval set.
language/labs/memory/run_models.py:239
Functioninput_function
An input function satisfying the tf.estimator API.
language/question_answering/decatt_docreader/models/nq_long_model.py:257
Functioninput_function
An input function satisfying the tf.estimator API.
language/question_answering/decatt_docreader/models/nq_short_pipeline_model.py:250
Functioninput_to_template
Convenience function to convert input into likely template.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:305
Methodinstantiate
(self, *args, **kwargs)
language/gscan/data/grammar.py:145
Methodinstantiate
(self, meta=None, **kwargs)
language/gscan/data/grammar.py:162
Methodinstantiate
(self, child, **kwargs)
language/gscan/data/grammar.py:178
Methodinstantiate
(self, rb, vp, unused_meta, **kwargs)
language/gscan/data/grammar.py:188
Methodinstantiate
(self, vv, dp, meta, **kwargs)
language/gscan/data/grammar.py:202
Methodinstantiate
(self, vv, dp, meta, **kwargs)
language/gscan/data/grammar.py:216
Methodinstantiate
(self, noun_p, **kwargs)
language/gscan/data/grammar.py:232
Methodinstantiate
(self, jj, noun_p, unused_meta=None, **kwargs)
language/gscan/data/grammar.py:246
Methodinstantiate
(self, nn, **kwargs)
language/gscan/data/grammar.py:261
Methodinstantiate
(self, noun_p, pp, unused_meta=None, **kwargs)
language/gscan/data/grammar.py:271
Methodinstantiate
(self, loc, dp, unused_meta=None, **kwargs)
language/gscan/data/grammar.py:289
Functionint64_feature_list
(values)
language/capwap/utils/io_utils.py:59
Functionint_feature
(values)
language/realm/generate_retrieval_corpus.py:101
Functionintersection_op
Compute intersection between two sets. Args: set1_embs: dense embeddings of set1. set1_sketch: sparse count-min sketch of set1. set2_em
language/emql/module.py:258
Functionis_allowed
Returns True if the token is a nonterminal or an allowed terminal.
language/compgen/csl/qcfg/qcfg_rule.py:125
Functionis_candidate_new
(candidate: Mapping[str, str])
language/wino_dict/utils.py:192
Functionis_correct_answer
(answer: str, gold_answer: List[str])
language/search_agents/muzero/utils.py:187
Methodis_frozen
Determine if the table is frozen. Returns: True if the table is frozen.
language/nql/nql/symbol.py:212
Functionis_nt_fast
Return whether the token is NT or not if token is a string..
language/compgen/csl/qcfg/qcfg_rule.py:105
Functionis_single_nt
Return whether the symbols are single NT.
language/compgen/csl/qcfg/qcfg_rule.py:110
Methodis_stop_action
(self, action: int)
language/search_agents/muzero/state_tree.py:261
Functionis_valid_unicode
Check if a string is valid unicode. Did we slice on an invalid boundary?
language/canine/tydiqa/debug.py:34
← previousnext →4,301–4,400 of 6,154, ranked by callers