MCPcopy Create free account

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

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

↓ 1 callersFunctionget_eval_metrics
(labels: Array, logits: Array)
language/mentionmemory/tasks/ultra_fine_entity_typing_task.py:129
↓ 1 callersFunctionget_examples
Return list of example tuples.
language/compgen/nqg/tasks/geoquery/write_dataset.py:36
↓ 1 callersFunctionget_examples
(input_jsonl_pattern)
language/question_answering/bert_joint/prepare_nq_data.py:56
↓ 1 callersMethodget_examples_v2
Generating examples by grouping the canidates into records.
language/multivec/preprocessing/create_training_data.py:796
↓ 1 callersMethodget_examples_v2_iterate
Get examples as a sequence of grouped candidates.
language/multivec/preprocessing/create_training_data.py:809
↓ 1 callersFunctionget_fallback_predictions
Return List of fallback predictions or List of `None` if not provided.
language/compgen/nqg/model/parser/inference/generate_predictions.py:107
↓ 1 callersMethodget_features
Convert list of tokens to a feature dict.
language/labs/drkit/hotpotqa/demo.py:621
↓ 1 callersFunctionget_fever_dataset
Gets a tf.data.Dataset for FEVER.
language/orqa/datasets/text_classification_dataset.py:60
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
language/labs/drkit/run_dualencoder_qa.py:957
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
language/labs/drkit/run_dualencoder_lsf.py:1889
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
language/bert_extraction/steal_bert_qa/models/run_squad.py:940
↓ 1 callersFunctionget_final_text
Project the tokenized prediction back to the original text.
language/conpono/evals/run_squad.py:927
↓ 1 callersFunctionget_first_annotation
Returns the first short or long answer in the example. Args: e: (dict) annotated example. Returns: annotation: (dict) selected annotatio
language/question_answering/bert_joint/run_nq.py:238
↓ 1 callersMethodget_from_start
Get entries based on start index only.
language/compgen/csl/cky/cfg_parser.py:106
↓ 1 callersMethodget_from_start
Get entries based on start index only.
language/compgen/nqg/common/cky/trie_utils.py:102
↓ 1 callersFunctionget_funql
(example_root)
language/compgen/nqg/tasks/geoquery/xml_file_utils.py:48
↓ 1 callersFunctionget_globally_consistent_batch_positions
Adjust batch positions to be unique in the global batch. If the function is executed only on a single device (outside of `pmap`) then the results
language/mentionmemory/utils/mention_utils.py:58
↓ 1 callersMethodget_gold_passage_id
Get the id of a gold passage.
language/multivec/preprocessing/create_training_data.py:753
↓ 1 callersFunctionget_hashed_counts
Returns hash bucket counts for ngrams in sequence.
language/labs/drkit/search_utils.py:40
↓ 1 callersFunctionget_hover_dataset
Gets a tf.data.Dataset for FEVER.
language/orqa/datasets/text_classification_dataset.py:74
↓ 1 callersFunctionget_html_header
(title)
language/totto/table_to_text_html_utils.py:86
↓ 1 callersMethodget_index_correct
(passage_infos)
language/multivec/preprocessing/create_training_data.py:790
↓ 1 callersMethodget_index_entry
Returns the index entry for the specified id.
language/casper/retrieve/query_retrievers.py:202
↓ 1 callersFunctionget_inference_wrapper
Construct and return InferenceWrapper.
language/compgen/nqg/model/parser/inference/eval_model.py:182
↓ 1 callersFunctionget_inference_wrapper
Construct and return InferenceWrapper.
language/compgen/nqg/model/parser/inference/generate_predictions.py:73
↓ 1 callersMethodget_initialized_params
Returns a variable with the embeddings. Unlike `get_params` this does not require running a Scaffold to initialize the variable, however this
language/common/inputs/embedding_utils.py:198
↓ 1 callersFunctionget_input_features
Return tuple of input features as lists.
language/compgen/csl/model/data/example_converter.py:91
↓ 1 callersMethodget_insert_id
Get the numeric id of a symbol. If the symbol is not present and the SymbolTable is not frozen, it is inserted. Then a valid id is returned,
language/nql/nql/symbol.py:150
↓ 1 callersMethodget_instance
(path: str)
language/search_agents/muzero/utils.py:243
↓ 1 callersFunctionget_intermediate_entities
Get all tail entities of a topic entity following a chain of relations. Args: kb: dictionary to store the KB {subject: {relation: objects}}
language/labs/drkit/metaqa/preprocessing/metaqa_preprocess.py:104
↓ 1 callersFunctionget_intermediate_entities
Get all tail entities of a topic entity following a chain of relations. Args: kb: dictionary to store the KB {subject: {relation: objects}}
language/emql/preprocess/metaqa_preprocess.py:104
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:197
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:200
↓ 1 callersMethodget_labels
See base class.
language/conpono/evals/run_classifier.py:403
↓ 1 callersMethodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:408
↓ 1 callersMethodget_labels
Gets the list of labels for this data set.
language/conpono/evals/race_utils.py:88
↓ 1 callersMethodget_labels
See base class.
language/multivec/preprocessing/create_training_data.py:927
↓ 1 callersFunctionget_lang_counts
Gets the number of examples for each language.
language/canine/tydiqa/prepare_tydi_data.py:106
↓ 1 callersFunctionget_language_id
Maps string language id into integer.
language/canine/tydiqa/data.py:252
↓ 1 callersMethodget_lhs_cfg_nts
(self)
language/compgen/csl/augment/joint_sampler.py:57
↓ 1 callersFunctionget_lhs_emb_idx_map
(rules)
language/compgen/csl/model/data/example_converter.py:82
↓ 1 callersMethodget_lhs_nonterminal_bias
Returns nonterminal bias for each lhs rule embedding.
language/compgen/csl/model/inference/inference_wrapper.py:41
↓ 1 callersMethodget_linked_entity
Returns the string ID of the linked entity for this mention.
language/labs/drkit/wikidata/preprocessing/distantly_supervise.py:108
↓ 1 callersFunctionget_match_score
(model_predictions, example_id)
language/serene/analysis.py:83
↓ 1 callersFunctionget_model_config
Config for Transformer.
language/gscan/xattn_model/configs/compositional.py:48
↓ 1 callersFunctionget_model_config
Config for Transformer.
language/gscan/xattn_model/configs/spatial_relation.py:48
↓ 1 callersMethodget_model_fn
(self, num_train_steps: Optional[int], num_warmup_steps: Optional[int])
language/canine/tydiqa/run_tydi_lib.py:157
↓ 1 callersFunctionget_model_test_config
Returns the test config for model.
language/gscan/xattn_model/test_utils.py:48
↓ 1 callersFunctionget_mrr
Mean reciprocal rank in https://www.aclweb.org/anthology/P18-1009.pdf.
language/mentionmemory/tasks/ultra_fine_entity_typing_task.py:71
↓ 1 callersFunctionget_multi_vectors
Get multi-vector representations. Args: model: BERT model input_masks: [batch_size, sequence_length] num_vec: scalar Returns: ou
language/multivec/models/ranking_model_experiment_inbatch.py:450
↓ 1 callersMethodget_name
Return name for given wikidata id.
language/labs/drkit/wikidata/preprocessing/distantly_supervise.py:165
↓ 1 callersMethodget_name
Robustly get a string naming frame x.
language/templama/sling2facts.py:312
↓ 1 callersFunctionget_ngrams
Yields n-grams upto order n.
language/labs/drkit/search_utils.py:28
↓ 1 callersFunctionget_node_fn
Return node_fn.
language/compgen/csl/model/inference/inference_parser.py:70
↓ 1 callersFunctionget_node_fn
Return node_fn.
language/compgen/nqg/model/parser/inference/inference_parser.py:63
↓ 1 callersMethodget_nt
Return NT if prefix matches.
language/compgen/csl/tasks/smcalflow/tools/generate_target_cfg.py:196
↓ 1 callersFunctionget_num_nts
Return the number of NTs in the list.
language/compgen/csl/qcfg/qcfg_rule.py:120
↓ 1 callersFunctionget_num_nts
(symbols)
language/compgen/csl/cky/cfg_rule.py:50
↓ 1 callersFunctionget_num_total_memories
Computes the total number of mentions in the corpus.
language/mentionmemory/experiments/memory_generation_main.py:87
↓ 1 callersFunctionget_number_rules
Return number seed rules based on exact match.
language/compgen/csl/tasks/smcalflow/tools/generate_identity_rules.py:68
↓ 1 callersMethodget_object
Get the object of a slot - the value or primary slot filler.
language/templama/sling2facts.py:329
↓ 1 callersMethodget_original_num_labels
(self)
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:201
↓ 1 callersFunctionget_output_dir
Appends hyperparameter info to output_base_dir.
language/multivec/models/ranking_model_experiment_inbatch.py:906
↓ 1 callersFunctionget_output_vocab_size
(output_vocab_filepath)
language/xsp/model/embeddings.py:43
↓ 1 callersFunctionget_padded_value
(datatype)
language/xsp/model/input_utils.py:66
↓ 1 callersMethodget_page_sentence
Get the text for a sentence on the given wikipedia page. Args: wikipedia_url: Url to lookup sentence_id: The sentence to retrieve
language/serene/wiki_db.py:105
↓ 1 callersFunctionget_parent_tables
Get tables in PARENT format for each json example.
language/totto/prepare_references_for_eval.py:57
↓ 1 callersMethodget_passage_marker
(self, i: int)
language/canine/tydiqa/char_splitter.py:66
↓ 1 callersMethodget_pooled_output
(self)
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:106
↓ 1 callersFunctionget_postprocess_cell_fn
Return postprocess_cell_fn.
language/compgen/csl/model/inference/inference_parser.py:79
↓ 1 callersFunctionget_predict_fn
Setup and initialize function to get answers.
language/labs/drkit/hotpotqa/demo.py:1056
↓ 1 callersFunctionget_predicted_target
(wrapper, source, fallback_prediction)
language/compgen/nqg/model/parser/inference/generate_predictions.py:99
↓ 1 callersFunctionget_prediction
Gets predicted outputs for a specific input to the model.
language/xsp/model/run_inference.py:227
↓ 1 callersMethodget_prediction
Run BERT to get answer prediction.
language/labs/drkit/hotpotqa/demo.py:657
↓ 1 callersFunctionget_prediction_recall_metrics
Computes metrics over precision and recall over different groups.
language/mentionmemory/tasks/ultra_fine_entity_typing_task.py:111
↓ 1 callersFunctionget_predictions
Get predictions.
language/orqa/models/orqa_model.py:262
↓ 1 callersFunctionget_predictions
Prediction according to https://www.aclweb.org/anthology/P18-1009.pdf.
language/mentionmemory/tasks/ultra_fine_entity_typing_task.py:54
↓ 1 callersFunctionget_predictions_max
Predict entity ID based on a memory with the largest attention weight.
language/mentionmemory/tasks/mention_based_entity_qa_task.py:30
↓ 1 callersFunctionget_predictions_sum
Get entity with the largest sum of attention weights over its mentions.
language/mentionmemory/tasks/mention_based_entity_qa_task.py:46
↓ 1 callersFunctionget_predictor_for_model_fn
Build a predictor. Can't use SavedModel here due to the py_func.
language/orqa/models/orqa_model.py:502
↓ 1 callersFunctionget_production_by_str
(production_str)
language/search_agents/muzero/bert_state_lib_test.py:47
↓ 1 callersFunctionget_production_by_str
(production_str)
language/search_agents/muzero/state_tree_test.py:33
↓ 1 callersMethodget_qry_embeddings
Run BERT to get features for queries. Args: qrys: List of list of tokens. ents: List of list of tokens. Returns: st_embedd
language/labs/drkit/bert_utils.py:294
↓ 1 callersMethodget_qualifiers
Get the a list of (slot, filler) pairs that qualify a primary slot filler.
language/templama/sling2facts.py:336
↓ 1 callersMethodget_query
Get query by index. Args: index: int, Index of the query. dataset_type: str, Dataset to choose from in ['TRAIN', 'DEV', 'TEST'].
language/search_agents/muzero/server.py:108
↓ 1 callersMethodget_random
(self, num_random)
language/multivec/preprocessing/create_training_data.py:727
↓ 1 callersFunctionget_raw_scores
Get raw EM and F1 scores.
language/bert_extraction/steal_bert_qa/utils/evaluate_squad_2.py:94
↓ 1 callersFunctionget_references
Get references from json example.
language/totto/prepare_references_for_eval.py:32
↓ 1 callersFunctionget_rhs_and_extract_rules
Extract rules from nested_lists.
language/compgen/csl/tasks/smcalflow/tools/generate_target_cfg.py:213
↓ 1 callersMethodget_rhs_cfg_nts
(self, lhs_nts, nt_idx)
language/compgen/csl/augment/joint_sampler.py:60
↓ 1 callersFunctionget_rhs_emb_idx_map
Return map from (rule, nt_idx) to integer rhs_emb_idx.
language/compgen/csl/model/data/example_converter.py:62
↓ 1 callersFunctionget_root_dir
Return the corresponding root dir given taks name. Args: name: task name Returns: root dir
language/emql/main.py:78
↓ 1 callersFunctionget_root_score
(wrapper, child)
language/compgen/csl/model/inference/inference_parser.py:39
↓ 1 callersFunctionget_rule_to_idx_map
(rules)
language/compgen/nqg/model/parser/data/example_converter.py:40
↓ 1 callersFunctionget_schema_entities
Gets the schema entities (column and table names) for a schema.
language/xsp/data_preprocessing/schema_utils.py:191
↓ 1 callersFunctionget_sentence_splitter
()
language/orqa/preprocessing/preprocess_wiki_extractor.py:54
↓ 1 callersFunctionget_sentencepiece_tokenizer
(vocab_path)
language/decontext/eval.py:64
↓ 1 callersFunctionget_sequence_features
Gets sequence features (i.e., for input/output sequence to the model).
language/xsp/model/input_pipeline.py:83
↓ 1 callersFunctionget_shape_list
Returns a list of the shape of tensor, preferring static dimensions. Args: tensor: A tf.Tensor object to find the shape of. Returns: A l
language/xsp/model/common_layers.py:24
↓ 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/labs/drkit/metaqa/preprocessing/metaqa_preprocess.py:76
← previousnext →2,101–2,200 of 6,154, ranked by callers