MCPcopy Create free account

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

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

↓ 1 callersFunctionget_shortest_path
Get all shortest path from topic entity to answers. Args: kb: dictionary to store the KB {subject: {relation: objects}} topic_ent: topic en
language/emql/preprocess/metaqa_preprocess.py:76
↓ 1 callersFunctionget_string_rules
Return string seed rules based on exact match.
language/compgen/csl/tasks/smcalflow/tools/generate_identity_rules.py:32
↓ 1 callersFunctionget_sub_paras
Split paragraph object into sub-paragraphs with maximum length.
language/labs/drkit/hotpotqa/index.py:80
↓ 1 callersFunctionget_summary_writer
()
language/compgen/nqg/model/parser/inference/eval_model.py:156
↓ 1 callersMethodget_symbol
Map index to symbol with that id. Args: index: integer id of an entity Returns: string for that symbol Raises: Runtim
language/nql/nql/symbol.py:118
↓ 1 callersFunctionget_symbolic_vocab
Gets the vocabulary for the symbolic task. Returns: A list with a-z, 0-9, and ?.
language/labs/memory/synthetic_dataset.py:221
↓ 1 callersFunctionget_table_html
Get html for a table and a subset of highlighted cells.
language/totto/table_to_text_html_utils.py:67
↓ 1 callersFunctionget_table_style
()
language/totto/table_to_text_html_utils.py:18
↓ 1 callersFunctionget_target_tokens_for_apply
(token_ids, mask_indices)
language/conpono/reconstruct/preprocess.py:381
↓ 1 callersFunctionget_term_types
Returns the vocabulary types for a `Word` non-terminal (_W_).
language/search_agents/muzero/grammar_lib.py:65
↓ 1 callersFunctionget_test
()
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:214
↓ 1 callersFunctionget_test
()
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:204
↓ 1 callersFunctionget_test
()
language/boolq/run_bert_boolq.py:193
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:193
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:196
↓ 1 callersMethodget_test_examples
See base class.
language/conpono/evals/run_classifier.py:398
↓ 1 callersMethodget_test_examples
See base class.
language/conpono/evals/run_concat_classifier.py:403
↓ 1 callersMethodget_test_examples
Gets a collection of `InputExample`s for prediction.
language/conpono/evals/race_utils.py:84
↓ 1 callersFunctionget_text_span
Returns the text in the example's document in the given span.
language/canine/tydiqa/data.py:184
↓ 1 callersFunctionget_text_summary
Get a text summary of the question and the predicted answer.
language/question_answering/decatt_docreader/models/nq_short_pipeline_model.py:204
↓ 1 callersMethodget_tf_prediction
(self, name, features, tensors)
language/emql/model.py:1146
↓ 1 callersMethodget_tf_tensor
Get the Tensor that represents a relation. Args: rel_name: string naming a declared relation shard_id: the i'th shard of the matrix.
language/nql/nql/dist.py:309
↓ 1 callersFunctionget_tokenization_info
(module_handle)
language/multivec/utils/data_processor.py:93
↓ 1 callersFunctionget_tokenization_info
(module_handle)
language/multivec/preprocessing/create_training_data.py:103
↓ 1 callersFunctionget_tokenizer
(module_handle)
language/multivec/utils/data_processor.py:100
↓ 1 callersFunctionget_tokenizer
(module_handle)
language/multivec/preprocessing/create_training_data.py:110
↓ 1 callersFunctionget_top_outputs
Return highest-k scoring target strings if can be parsed by target grammar.
language/compgen/csl/model/inference/inference_parser.py:161
↓ 1 callersFunctionget_topic_ent
(question)
language/labs/drkit/metaqa/preprocessing/metaqa_preprocess.py:69
↓ 1 callersFunctionget_topic_ent
(question)
language/emql/preprocess/metaqa_preprocess.py:69
↓ 1 callersMethodget_tpu_run_config
Creates the RunConfig object.
language/canine/tydiqa/run_tydi_lib.py:182
↓ 1 callersFunctionget_train
()
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:210
↓ 1 callersFunctionget_train
()
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:200
↓ 1 callersFunctionget_train
()
language/boolq/run_bert_boolq.py:189
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:185
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:188
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:188
↓ 1 callersMethodget_train_examples
See base class.
language/conpono/evals/run_classifier.py:388
↓ 1 callersMethodget_train_examples
See base class.
language/conpono/evals/run_concat_classifier.py:393
↓ 1 callersMethodget_train_examples
Gets a collection of `InputExample`s for the train set.
language/conpono/evals/race_utils.py:76
↓ 1 callersFunctionget_train_op
Build the gradient descent op for the model on `loss`.
language/boolq/run_recurrent_model_boolq.py:389
↓ 1 callersFunctionget_training_step
Get training step function.
language/compgen/csl/model/training/training_utils.py:42
↓ 1 callersFunctionget_training_step
Get training step function.
language/compgen/nqg/model/parser/training/training_utils.py:22
↓ 1 callersMethodget_tydi_model_builder
(self)
language/canine/tydiqa/run_tydi_lib.py:168
↓ 1 callersMethodget_underlying_parameters
The list of parameters that will be learned for a trainable relation. Args: rel_name: a string naming a declared relation. Returns:
language/nql/nql/dist.py:186
↓ 1 callersFunctionget_unreachable_ops
Finds all of the tensors in graph that are unreachable from outputs.
language/canine/modeling_test.py:236
↓ 1 callersFunctionget_updated_default_flags
(**kwargs)
language/search_agents/muzero/bert_state_lib_test.py:37
↓ 1 callersFunctionget_utterance
(example_root)
language/compgen/nqg/tasks/geoquery/xml_file_utils.py:41
↓ 1 callersFunctionget_var_shape
(checkpoint_dir, var_name)
language/emql/util.py:208
↓ 1 callersFunctionget_variable_by_name
(model: Union[tf.keras.Model, tf.keras.layers.Layer], name: Text)
language/search_agents/muzero/transformer_encoder.py:352
↓ 1 callersFunctionget_verify_scores
(model_predictions, example_id)
language/serene/analysis.py:91
↓ 1 callersMethodget_vocab_size_with_oov
Returns the total number of ids including OOV buckets.
language/common/inputs/embedding_utils.py:250
↓ 1 callersFunctionget_vocabularies
Get input and target vocabularies. If will read vocabularies from file if exists. Otherwise, it will generating vocabulary from examples. Args
language/gscan/xattn_model/dataset/preprocess.py:187
↓ 1 callersMethodget_wrapper
(self)
language/compgen/csl/model/inference/eval_model_beam.py:101
↓ 1 callersFunctiongold_answer_present
(passage: str, gold_answer: Sequence[str])
language/search_agents/muzero/utils.py:180
↓ 1 callersFunctiongreedy_updates
Construct new beams with greedy updates based on gradient differences.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/discrete_invert_embeddings.py:117
↓ 1 callersFunctiongroup_claim_predictions
Group predictions by their claim_id, sorted by score. Args: verify_predictions: Predictions from the model, [[p0], [p1],...] evidence_predi
language/serene/callbacks.py:201
↓ 1 callersFunctionhas_long_answer
(a)
language/question_answering/bert_joint/run_nq.py:222
↓ 1 callersFunctionhas_passage_answer
(a)
language/canine/tydiqa/data.py:131
↓ 1 callersFunctionhave_neighbors
(q_id, neighbors)
language/multivec/preprocessing/create_training_data.py:99
↓ 1 callersFunctionhighway
A single highway layer as described here: https://arxiv.org/abs/1505.00387. This is used as a generalization of a single hidden layer in a standard
language/common/layers/common_layers.py:104
↓ 1 callersFunctionhistory_state_part
Computes the history part of the BERT state.
language/search_agents/muzero/bert_state_lib.py:165
↓ 1 callersFunctionhotpot_model_fn_builder
Returns `model_fn` closure for TPUEstimator.
language/labs/drkit/hotpotqa/demo.py:376
↓ 1 callersMethodid2word
(self, word_id)
language/labs/exemplar_decoding/utils/data.py:401
↓ 1 callersFunctionindicator_score
Compute indicator score of answer and context. Checks if the answer tokens are a subspan of the context. Args: answer_ids: <int32> [batch_si
language/capwap/utils/reward_utils.py:339
↓ 1 callersFunctionindicator_score
Compute indicator score (1 if answer is contained in the caption, else 0). Args: captions: Dictionary of image_id --> question_id --> list(capt
language/capwap/utils/metric_utils.py:268
↓ 1 callersFunctioninduce_and_write_rules
Induce and write set of rules.
language/compgen/nqg/model/induction/induce_rules.py:52
↓ 1 callersFunctioninduce_rules_for_partition
Grammar induction for one partition.
language/compgen/csl/induction/search_main.py:61
↓ 1 callersFunctioninference_wrapper
Wrapper for running inference.
language/xsp/model/run_inference.py:316
↓ 1 callersMethodinit_stats
Initialize dicts to hold relation counts.
language/labs/drkit/wikidata/preprocessing/distantly_supervise.py:315
↓ 1 callersMethodinit_tables
(self)
language/multivec/preprocessing/create_training_data.py:720
↓ 1 callersMethodinit_weights
(self, ckpt_directory: Text)
language/search_agents/muzero/transformer_encoder.py:252
↓ 1 callersMethodinitial_alignments
Creates the initial alignment values for the `AttentionWrapper` class. This is important for AttentionMechanisms that use the previous alignment
language/labs/exemplar_decoding/models/attention.py:211
↓ 1 callersMethodinitialize
Construct RNN params.
language/labs/exemplar_decoding/models/hyperlstm.py:318
↓ 1 callersMethodinitialize
Initialzie sampler.
language/compgen/csl/augment/sampler_utils.py:108
↓ 1 callersMethodinitialize
Initialize vocabulary.
language/gscan/data/vocabulary.py:57
↓ 1 callersMethodinitialize_world_from_spec
Intialize the world. Return True if initialization is valid.
language/gscan/data/dataset.py:507
↓ 1 callersFunctioninput_fn_builder
Creates an `input_fn` closure to be passed to TPUEstimator.
language/capwap/synthetic/generate_answers.py:374
↓ 1 callersFunctioniou_score
Token intersection over union score between two sentences.
language/fruit/rendering_utils.py:325
↓ 1 callersFunctionis_correct
(answers, prediction, is_regex)
language/orqa/utils/eval_utils.py:67
↓ 1 callersFunctionis_cross_domain
(target)
language/compgen/csl/tasks/smcalflow/tools/split_examples.py:31
↓ 1 callersMethodis_distinct
Check whether other object is distinct from the referred actual object.
language/gscan/data/dataset.py:341
↓ 1 callersMethodis_id_slot
Test if the slot is for an external identifier.
language/templama/sling2facts.py:321
↓ 1 callersFunctionis_int_list
Checks if a value's type is a list of integers.
language/canine/tydiqa/debug.py:22
↓ 1 callersFunctionis_nt
(symbol)
language/compgen/csl/cky/cfg_rule.py:46
↓ 1 callersFunctionis_number
Check if token is a SQL number literal.
language/compgen/nqg/tasks/spider/gen_template_split.py:48
↓ 1 callersMethodis_paired_anno_duplicate
(self, paired_anno: annotation.PairedAnnotation)
language/diffqg/metrics.py:110
↓ 1 callersMethodis_positive
(self)
language/diffqg/metrics.py:33
↓ 1 callersMethodis_qualified_relation_frame
Test if x is a CVT-node-like frame with a main object.
language/templama/sling2facts.py:355
↓ 1 callersMethodis_sentence_duplicate
(self, sentence1: str, sentence2: str)
language/diffqg/metrics.py:91
↓ 1 callersMethodis_token
(self, w)
language/labs/exemplar_decoding/utils/data.py:407
↓ 1 callersFunctionis_training_done
Checks if model training has completed.
language/realm/refresh_doc_embeds.py:62
↓ 1 callersFunctionis_unicode_list
Checks if a value's type is a list of Unicode strings.
language/canine/tydiqa/debug.py:27
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/bert_utils.py:29
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/bert_utils_v2.py:29
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/hotpotqa/answer_extractor.py:254
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/hotpotqa/demo.py:455
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/hotpotqa/preprocessing/create_tfrecords.py:117
↓ 1 callersFunctionis_whitespace
(c)
language/labs/drkit/preprocessing/preprocess_qa.py:117
↓ 1 callersFunctionis_whitespace
(c)
language/bert_extraction/steal_bert_qa/models/run_squad.py:243
↓ 1 callersFunctionis_whitespace
(c)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:228
← previousnext →2,201–2,300 of 6,154, ranked by callers