MCPcopy Create free account

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

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

Function_nli_line_to_tensors
Map a tensor line from a NLI file to tensor dictionary.
language/boolq/run_recurrent_model_boolq.py:122
Function_node_fn
Nodes will represent target strings.
language/compgen/csl/qcfg/qcfg_parser_test.py:22
Function_node_fn
(span_begin, span_end, rule, children)
language/compgen/csl/qcfg/qcfg_target_parser_test.py:30
Function_node_fn
Nodes will represent target strings.
language/compgen/nqg/model/qcfg/qcfg_parser_test.py:23
Method_nonzero
(a)
language/canine/tensor_contracts_test.py:122
Function_official_exact_match
(predicted_answer, references)
language/orqa/models/orqa_model.py:374
Method_parse
Parse TFRecord example.
language/gscan/xattn_model/dataset/gscan_dataset.py:43
Function_parse_example
(serialized_example)
language/realm/model.py:329
Function_parse_example
Parse a serialized example proto.
language/capwap/synthetic/filter_round_trip.py:72
Function_parse_fn
Parses an example from the WikiDiff dataset.
language/fruit/tf_utils.py:48
Function_platinum_config_preset
Modifies the config to add a PLATINUM token before each exemplar.
language/casper/augment/casper_formatters.py:50
Function_pop_and_filter_valid
(addresses)
language/realm/preprocessing.py:149
Function_populate_fn
( unused_span_begin, unused_span_end, unused_parser_rule, unused_children )
language/compgen/csl/targets/target_grammar.py:85
Function_populate_fn
(span_begin, span_end, rule, substitutions)
language/compgen/csl/cky/cfg_parser_test.py:31
Function_populate_fn
(unused_span_begin, unused_span_end, unused_parser_rule, unused_children)
language/compgen/nqg/model/parser/inference/targets/target_grammar.py:105
Function_populate_fn
(span_begin, span_end, rule, substitutions)
language/compgen/nqg/common/cky/cfg_parser_test.py:33
Function_positive_example_loss_mask
(is_pos, target_len_mask)
language/xsp/model/loss.py:37
Function_postprocess_cell_fn
(nodes)
language/compgen/csl/qcfg/qcfg_parser_test.py:27
Function_postprocess_cell_fn
(nodes)
language/compgen/nqg/model/qcfg/qcfg_parser_test.py:28
Function_postprocess_fn
(nodes)
language/compgen/csl/qcfg/qcfg_target_parser_test.py:37
Function_postprocess_fn
Merge any nodes.
language/compgen/csl/targets/target_grammar.py:93
Function_postprocess_fn
(nodes)
language/compgen/csl/cky/cfg_parser_test.py:40
Function_postprocess_fn
Merge any nodes.
language/compgen/nqg/model/parser/inference/targets/target_grammar.py:112
Function_postprocess_fn
Grammar should be unambiguous, so nodes should never be > 1.
language/compgen/nqg/tasks/spider/sql_parser.py:109
Function_postprocess_fn
(nodes)
language/compgen/nqg/common/cky/cfg_parser_test.py:42
Function_predict
(question)
language/orqa/models/orqa_model.py:523
Function_print_dict
Can be used on, e.g. a `json_dict` or `result`.
language/canine/tydiqa/preproc_test.py:29
Function_print_node
Print out a ScoredChartNode recursively for debugging.
language/compgen/csl/model/inference/inference_parser.py:43
Function_print_separator
()
language/labs/exemplar_decoding/models/common.py:102
Function_process_url
Get textual identifier from URL and quote it.
language/labs/drkit/hotpotqa/preprocessing/link_questions.py:215
Function_punctuation_config_preset
Populates the config to use punctuations as separators in the prompt.
language/casper/augment/casper_formatters.py:30
Function_register_w_defaults
Register a WikiDiff task w/ default params.
language/fruit/tasks.py:70
Function_safe_add
(a: tf.Tensor, b: tf.Tensor)
language/canine/modeling.py:66
Function_search
(query)
language/labs/drkit/search_utils.py:271
Method_select_exemplars
Yields a single empty list (no exemplars).
language/casper/augment/casper_converters.py:200
Method_select_exemplars
Yields a single list containing the top `max_exemplars` exemplars.
language/casper/augment/casper_converters.py:209
Method_select_exemplars
Yields `num_samples` lists with `max_exemplars` sampled exemplars.
language/casper/augment/casper_converters.py:219
Method_select_exemplars
Yields `num_samples` lists with `max_exemplars` oracle exemplars.
language/casper/augment/casper_converters.py:233
Method_select_exemplars
Yields `num_samples` lists with `max_exemplars` adversarial exemplars.
language/casper/augment/casper_converters.py:274
Method_simple_input_function
(self, params)
language/common/utils/experiment_utils_test.py:48
Method_simple_model_fn
(self, features, labels, mode, params)
language/common/utils/experiment_utils_test.py:33
Function_single_cell
Create an instance of a single RNN cell.
language/labs/consistent_zero_shot_nmt/utils/model_utils.py:42
Function_skipped_dataset
Get skipped dataset.
language/orqa/datasets/ict_dataset.py:112
Function_split_generators
Returns SplitGenerators.
language/serene/fever_tfds.py:788
Method_split_generators
(self, dl_manager)
language/serene/claim_tfds.py:65
Method_split_generators
Returns SplitGenerators.
language/serene/boolq_tfds.py:90
Method_split_generators
(self, dl_manager)
language/serene/wiki_tfds.py:88
Function_tensorize
(line)
language/boolq/run_recurrent_model_boolq.py:124
Method_term_type_from_action_sequence
Get the term_type from a step action sequence.
language/search_agents/muzero/state_tree.py:179
Method_top_single
Top transformation that ensures correct reuse of target embeddings.
language/labs/consistent_zero_shot_nmt/models/basic.py:134
Function_tpu_summary_no_op
(*args, **kwargs)
language/xsp/model/tpu_utils.py:27
Function_unflatten
(flat_t)
language/common/utils/tensor_utils.py:191
Function_uniform_score_fn
(unused_parent_rule, unused_nt_idx, unused_child_rule)
language/compgen/csl/augment/qcfg_sampler.py:49
Function_uniform_score_fn
(unused_parent_rule, unused_nt_idx, unused_child_rule)
language/compgen/csl/augment/joint_sampler.py:278
Function_unstack_ta
(inp)
language/labs/consistent_zero_shot_nmt/modules/helpers.py:32
Function_verbal_config_preset
Populates the config to use the T5-style verbalized prompt.
language/casper/augment/casper_formatters.py:40
Function_wrap
Decorator inner wrapper needed to support `name` argument.
language/mentionmemory/encoders/encoder_registry.py:43
Function_wrap
Decorator inner wrapper needed to support `name` argument.
language/mentionmemory/tasks/task_registry.py:42
Functionaccuracy
Sequence accuracy averaged over sequence length.
language/gscan/xattn_model/evaluation.py:36
Functionadam
Custom Adam optimzizer for weight decay and learning rate schedule. Implementation adapted from https://github.com/openai/finetune-transformer-lm.
language/labs/exemplar_decoding/models/adam.py:52
Functionadd_PreprocessingServicer_to_server
(servicer, server)
language/realm/preprocessing_pb2_grpc.py:51
Functionadd_entity_tokens
Adds entity start / end tokens around mentions. Inserts `entity_start_token_id` and `entity_end_token_id` tokens around each mention and update m
language/mentionmemory/utils/mention_preprocess_utils.py:585
Functionadd_float_feature
(key, values, example)
language/common/utils/nest_utils.py:36
Functionadd_int_feature
(key, values, example)
language/common/utils/nest_utils.py:31
Methodadd_memory_auxiliary_output
(prefix='')
language/mentionmemory/tasks/downstream_encoder_task.py:85
Functionadd_scope
(*args: Any, **kwargs: Dict[Text, Any])
language/canine/tensor_contracts.py:1379
Functionadd_space_separation
Split funql and join with space separator.
language/compgen/nqg/tasks/geoquery/funql_normalization.py:222
Functionadd_string_feature
(key, values, example)
language/common/utils/nest_utils.py:26
Functionadd_to_dict
(documents: Sequence[environment_pb2.Document], all_docs: Dict[str, environment_pb2.Document])
language/search_agents/t5/t5_agent_lib.py:42
Methodadditional_reserved_tokens
Returns a list of language tags.
language/labs/consistent_zero_shot_nmt/data_generators/translate_multilingual.py:60
Functionaffine
Affine transformation of the input `x`. Args: x: <float32>[..., x_dim] output_size: size of the last output dimension weight_name: Name
language/boolq/utils/ops.py:29
Functionag_gnmt_bahdanau_att_lm
Hparams for LSTM with bahdanau attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:647
Functionag_gnmt_bahdanau_att_multi_lm
Hparams for LSTM with bahdanau attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:679
Functionag_gnmt_luong_att_lm
Hparams for LSTM with luong attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:663
Functionag_gnmt_luong_att_multi_lm
Hparams for LSTM with bahdanau attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:695
Functionag_nmt_bilstm_bahdanau_att_lm
Hparams for LSTM with bahdanau attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:580
Functionag_nmt_bilstm_bahdanau_att_multi_lm
Hparams for LSTM with bahdanau attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:612
Functionag_nmt_bilstm_luong_att_lm
Hparams for LSTM with luong attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:596
Functionag_nmt_bilstm_luong_att_multi_lm
Hparams for LSTM with luong attention.
language/labs/consistent_zero_shot_nmt/models/agreement.py:628
Functionagent_config_from_flags
()
language/search_agents/muzero/agent_lib.py:42
Functionaggregate_actions
Returns an action that aggregates all actions.
language/compgen/csl/induction/induction_utils.py:82
Methodalignments_size
(self)
language/labs/exemplar_decoding/models/attention.py:204
Methodannotate_corpus
Run silver annotations from SLING.
language/labs/drkit/wikidata/preprocessing/distantly_supervise.py:95
Functionannotate_mentions
Annotate reciprocal mentions.
language/fruit/beam_pipelines.py:442
Functionanswer_in_retrieval
Check for which batch elements an answer is retrieved.
language/labs/drkit/model_fns.py:595
Functionappend_feature
(feature)
language/labs/drkit/run_dualencoder_lsf.py:2465
Functionappend_feature
(feature)
language/labs/drkit/hotpotqa/answer_extractor.py:1352
Functionappend_feature
(feature)
language/labs/drkit/hotpotqa/preprocessing/create_tfrecords.py:570
Functionappend_feature
(feature)
language/labs/drkit/preprocessing/preprocess_qa.py:570
Functionappend_feature
(feature)
language/bert_extraction/steal_bert_qa/models/run_squad.py:1241
Functionappend_feature
(feature)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:855
Functionappend_feature
(feature)
language/conpono/evals/run_squad.py:1226
Functionappend_feature
(feature)
language/question_answering/bert_joint/run_nq.py:1393
Functionappend_feature_doc
(feature)
language/labs/drkit/run_dualencoder_lsf.py:2542
Functionappend_feature_qry
(feature)
language/labs/drkit/run_dualencoder_lsf.py:2590
Methodapply_encoder_block
(encoder_block, encoding)
language/mentionmemory/encoders/readtwice_encoder.py:233
Methodapply_memory_attention
(memory_layer, encoding, prefix='')
language/mentionmemory/encoders/mention_memory_encoder.py:412
Methodapply_memory_layer
(attention_layer, encoding, prefix='')
language/mentionmemory/encoders/readtwice_encoder.py:317
Methodapply_same_entity_retrieval_loss
(loss, metrics, loss_wei
language/mentionmemory/tasks/readtwice_task.py:209
Functionapply_target
Return target string with non-terminals replaced with substitutions.
language/compgen/csl/qcfg/qcfg_rule.py:155
← previousnext →3,401–3,500 of 6,154, ranked by callers