MCPcopy Create free account

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

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

Functionget_inference_wrapper
Construct and return InferenceWrapper.
language/compgen/csl/model/inference/inference_utils.py:39
Functionget_init_inputs
Initialize model inputs.
language/gscan/xattn_model/train_utils.py:41
Methodget_initializers
Tensorflow initializers for all relation parameters. Returns: a list of Tensorflow ops.
language/nql/nql/__init__.py:1232
Methodget_initializers
Tensorflow initializers for all relation parameters. Returns: a list of Tensorflow ops.
language/nql/nql/dist.py:352
Functionget_input_embeddings
Returns tensor representing inputs for the given batch.
language/xsp/model/embeddings.py:94
Methodget_input_fn
Return an input_fn which accepts a generator.
language/labs/drkit/bert_utils.py:181
Methodget_input_fn
Return an input_fn which accepts a generator.
language/labs/drkit/bert_utils_v2.py:176
Methodget_input_fn
Return an input_fn which accepts a generator.
language/labs/drkit/hotpotqa/demo.py:517
Methodget_input_fn
Return an input_fn which accepts a generator.
language/labs/drkit/hotpotqa/demo.py:739
Functionget_input_mask
Returns input mask for input to BERT model.
language/xsp/model/bert_utils.py:26
Functionget_labels
Returns labels dict given DecodeSteps.
language/xsp/model/decode_utils.py:186
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:236
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:292
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:232
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:284
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:258
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:285
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:334
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:373
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:417
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:467
Methodget_labels
See base class.
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:536
Methodget_labels
Gets the list of labels for this data set.
language/conpono/evals/classifier_utils.py:102
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:143
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:200
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:241
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:283
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:325
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:366
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:414
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:455
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:496
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:528
Methodget_labels
See base class.
language/conpono/evals/classifier_utils.py:570
Methodget_labels
Gets the list of labels for this data set.
language/conpono/evals/run_classifier.py:200
Methodget_labels
See base class.
language/conpono/evals/run_classifier.py:258
Methodget_labels
See base class.
language/conpono/evals/run_classifier.py:282
Methodget_labels
See base class.
language/conpono/evals/run_classifier.py:322
Methodget_labels
See base class.
language/conpono/evals/run_classifier.py:362
Methodget_labels
See base class.
language/conpono/evals/run_classifier.py:431
Methodget_labels
Gets the list of labels for this data set.
language/conpono/evals/run_concat_classifier.py:205
Methodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:263
Methodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:287
Methodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:327
Methodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:367
Methodget_labels
See base class.
language/conpono/evals/run_concat_classifier.py:436
Methodget_last_hist_node
(node)
language/search_agents/muzero/types.py:378
Functionget_learning_rate
Get learning rate schedule.
language/gscan/xattn_model/train_utils.py:99
Functionget_length
(original_sequence, thief_lengths_pool, lengths_scheme)
language/bert_extraction/steal_bert_classifier/data_generation/preprocess_util.py:100
Functionget_lengths_pool
(sents_data)
language/bert_extraction/steal_bert_classifier/data_generation/preprocess_util.py:88
Methodget_lir_examples
(examples)
language/compir/dataset_parsers/dataset_parser.py:117
Functionget_masked_lm_output
Get loss and log probs for the masked LM.
language/conpono/cpc/bilin_model_builder.py:85
Functionget_masked_lm_output
Get loss and log probs for the masked LM.
language/conpono/cpc/model_builder.py:142
Functionget_masked_lm_output
Get loss and log probs for the masked LM.
language/conpono/reconstruct/model_builder.py:183
Functionget_merged_node
Return node corresponding to all parses.
language/compgen/nqg/model/parser/data/parsing_utils.py:132
Functionget_metrics
Rouge-metrics. Args: predictions: prediction to be evaluated. prediction_len: lengths of the predictions. labels: reference sentences.
language/labs/exemplar_decoding/utils/rouge_utils.py:189
Functionget_model_checkpoint
Select a checkpoint to use for a given model directory. Args: model_dir: the directory containing the target model Raises: ValueError: if
language/boolq/utils/py_utils.py:66
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask for details.
language/mentionmemory/tasks/mention_classifier_task.py:201
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask.
language/mentionmemory/tasks/example_task.py:111
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask.
language/mentionmemory/tasks/entity_qa_task.py:31
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask for details.
language/mentionmemory/tasks/relation_classifier_task.py:332
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask.
language/mentionmemory/tasks/text_classifier.py:257
Methodget_name_to_features
Return feature dict for decoding purposes. See BaseTask.
language/mentionmemory/tasks/mention_encoder_task.py:182
Functionget_nearest_neighbour
Get the nearest neighbour for every vector in source from reference.
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:219
Functionget_nonzero_ids
Get k ids of nonzero values in the v_hot vector. If less than k nonzero values exist, pad with -1. Args: v_hot: v hot vector (batch_size, di
language/emql/util.py:142
Functionget_nq_server
()
language/search_agents/muzero/server.py:31
Functionget_num_common_unique_items
Get the number of unique entity IDs shared between samples in the batch. The function produces two matrices `num_common_ids_between_samples` of sha
language/mentionmemory/utils/mention_utils.py:119
Methodget_oracle_neighbors
Look-up the neighbors in the oracle table.
language/multivec/preprocessing/create_training_data.py:733
Methodget_original_num_labels
(self)
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:240
Methodget_original_num_labels
(self)
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:296
Functionget_output_vocab_embeddings_table
Returns the embedding table used for the target sequence.
language/xsp/model/embeddings.py:136
Functionget_page_sentence
()
language/serene/web_api.py:34
Functionget_parser
Gets the parser that corresponds to a specific dataset.
language/compir/utils/dataset_parser_utils.py:32
Methodget_passage_marker
Returns a marker for the start of passage `i`. Args: i: The passage index. This method will be called to create the strings that w
language/canine/tydiqa/tydi_tokenization_interface.py:50
Functionget_pattern_dataset
Generates a dataset of sequences of patterns and retrieval targets. Args: n: Number of examples num_patterns: Number of unique patterns in
language/labs/memory/synthetic_dataset.py:153
Functionget_predictions
Returns predictions dict given DecodeSteps.
language/xsp/model/decode_utils.py:193
Functionget_predictor
Build a text classifier predictor. See orqa_model for details.
language/orqa/models/text_classifier_model.py:205
Functionget_predictor
Build a ORQA predictor. Can't use SavedModel here due to the py_func.
language/orqa/models/orqa_model.py:530
Methodget_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_v2.py:289
Functionget_random_span
Get random subspan from text token sequence, following heuristics. Heuristics: 1) Should not start or end mid-wordpiece. 2) Must contain at
language/capwap/utils/text_utils.py:182
Functionget_registered_encoder
Takes in encoder name and returns corresponding encoder from registry.
language/mentionmemory/encoders/encoder_registry.py:62
Functionget_registered_task
Takes in task name and returns corresponding task from registry.
language/mentionmemory/tasks/task_registry.py:60
Functionget_retrieval_examples
Make retrieval examples.
language/orqa/datasets/ict_dataset.py:22
Methodget_rir_examples
(examples)
language/compir/dataset_parsers/dataset_parser.py:87
Functionget_rule_unifiers
Returns `rule_c` that can be combined with `rule_b` to equal `rule_a`. Here we interpret rules as functions over strings, with arity equal to the
language/compgen/csl/induction/unification_utils.py:427
Functionget_sampler_wrapper
Construct and return SamplerWrapper.
language/compgen/csl/augment/sampler_utils.py:30
Methodget_scores_unstable
Same as get_scores but is less numerically stable.
language/compgen/csl/model/weighted_model.py:130
Functionget_sent_dict
Get decontextualized sentences from a decontext label.
language/decontext/eval_util.py:76
Methodget_sequence_output
(self)
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:109
Functionget_source_len
(keys_to_tensors)
language/xsp/model/input_utils.py:30
Functionget_source_len_fn
(key)
language/xsp/model/input_utils.py:28
Functionget_spacy_frost_processor_fn
Gets Spacy Frost processor.
language/frost/spacy_frost_annotator_lib.py:32
Functionget_sql_spans_from_query
Get list of SqlSpan tuples from NLToSQLExample object.
language/xsp/data_preprocessing/abstract_sql_converters.py:263
Functionget_squad_question_starters
()
language/bert_extraction/steal_bert_qa/data_generation/preprocess_util.py:24
Functionget_stopwords
()
language/capwap/utils/nltk_utils.py:28
Methodget_subj_rel_to_objects
Merges conjuncts that share the same subject and relation.
language/compir/dataset_parsers/cfq_parser.py:82
Functionget_subtable_parent_format
Convert subtable to PARENT format. Do not include section text.
language/totto/table_to_text_utils.py:68
Functionget_summary_writer
(write_dir)
language/compgen/csl/common/writer_utils.py:20
Functionget_symbolic_dataset
Generates a dataset of sequences of key-value pairs and retrieval targets. Args: n: Number of examples num_pairs: Number of pairs in each s
language/labs/memory/synthetic_dataset.py:194
Methodget_symbols
Retrieve all symbols for a given type. Args: type_name: string name of declared type Returns: a list of symbols of the given typ
language/nql/nql/__init__.py:1646
← previousnext →4,101–4,200 of 6,154, ranked by callers