MCPcopy Create free account

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

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

↓ 1 callersMethod__init__
(self, embedding, start_tokens, end_token, num_steps)
language/labs/consistent_zero_shot_nmt/modules/helpers.py:181
↓ 1 callersMethod__init__
(self)
language/serene/losses.py:26
↓ 1 callersMethod__init__
(self, max_sentence_id = None, wiki_db_path = None, data_dir = No
language/serene/wiki_tfds.py:66
↓ 1 callersMethod__init__
(self, batch_size, config, training, verbose=False)
language/compgen/csl/model/weighted_model.py:149
↓ 1 callersMethod__init__
(self, batch_size, config, bert_config, training, verbose=False)
language/compgen/nqg/model/parser/nqg_model.py:158
↓ 1 callersMethod__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sin
language/conpono/evals/classifier_utils.py:31
↓ 1 callersMethod__init__
(self, example_id, context_sentence, start_ending,
language/conpono/evals/race_utils.py:34
↓ 1 callersMethod__init__
r"""Context Free Grammar for the NQ environment. Args: grammar_str: A grammar string in the form required by nltk.CFG.fromstring. E
language/search_agents/muzero/state_tree.py:83
↓ 1 callersMethod__init__
Creates a BestModuleExporter to use with tf.estimator.EvalSpec. Args: name: unique name of this Exporter, which will be used in the export
language/common/utils/exporters.py:152
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/run_dualencoder_qa.py:1174
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/input_fns.py:53
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/run_dualencoder_lsf.py:414
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/hotpotqa/answer_extractor.py:199
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/hotpotqa/preprocessing/create_tfrecords.py:99
↓ 1 callersMethod__repr__
(self)
language/labs/drkit/preprocessing/preprocess_qa.py:99
↓ 1 callersMethod__repr__
(self)
language/bert_extraction/steal_bert_qa/models/run_squad.py:193
↓ 1 callersMethod__repr__
(self)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:186
↓ 1 callersMethod__repr__
(self)
language/conpono/evals/run_squad.py:181
↓ 1 callersMethod__repr__
(self)
language/conpono/evals/race_utils.py:49
↓ 1 callersMethod__str__
(self)
language/compgen/csl/model/data/parsing_utils.py:46
↓ 1 callersMethod__str__
(self)
language/compgen/csl/model/inference/inference_parser.py:58
↓ 1 callersMethod__str__
(self)
language/compgen/csl/induction/derivation_utils.py:47
↓ 1 callersMethod__str__
(self)
language/compgen/csl/augment/qcfg_sampler.py:80
↓ 1 callersMethod__str__
(self)
language/compgen/csl/augment/joint_sampler.py:51
↓ 1 callersMethod__str__
(self)
language/compgen/csl/augment/joint_sampler.py:420
↓ 1 callersMethod__str__
(self)
language/compgen/nqg/model/parser/data/parsing_utils.py:33
↓ 1 callersMethod__str__
(self)
language/compgen/nqg/model/parser/inference/inference_parser.py:56
↓ 1 callersMethod__str__
(self)
language/conpono/cpc/preproc/preprocessing_utils.py:39
↓ 1 callersMethod__str__
(self)
language/conpono/create_pretrain_data/preprocessing_utils.py:34
↓ 1 callersMethod__str__
(self)
language/search_agents/muzero/types.py:169
↓ 1 callersFunction_action_id_to_table_name_map
Returns a map of action_ids to table names for columns.
language/xsp/model/run_inference.py:92
↓ 1 callersFunction_add_column_copy
(table_name, column_name, example)
language/xsp/data_preprocessing/abstract_sql_converters.py:58
↓ 1 callersFunction_add_column_spans
Returns True if sqlparse_token represents a column.
language/xsp/data_preprocessing/abstract_sql.py:236
↓ 1 callersFunction_add_entities
(match, text, entities)
language/labs/drkit/metaqa/preprocessing/process_wiki.py:54
↓ 1 callersFunction_add_generate_action
(token, example)
language/xsp/data_preprocessing/abstract_sql_converters.py:64
↓ 1 callersFunction_add_river_constant
Add entities for rivers.
language/compgen/nqg/tasks/geoquery/geobase_utils.py:65
↓ 1 callersFunction_add_state_constant
(name, identifiers_to_entities)
language/compgen/nqg/tasks/geoquery/geobase_utils.py:57
↓ 1 callersFunction_add_table_copy
(table_name, example)
language/xsp/data_preprocessing/abstract_sql_converters.py:52
↓ 1 callersFunction_add_underspecified_city_constant
(city_name, identifiers_to_entities)
language/compgen/nqg/tasks/geoquery/geobase_utils.py:34
↓ 1 callersFunction_add_usa
Add constant for usa.
language/compgen/nqg/tasks/geoquery/geobase_utils.py:83
↓ 1 callersFunction_add_value_literal
Adds a value action to the output.
language/xsp/data_preprocessing/abstract_sql_converters.py:69
↓ 1 callersFunction_aggregate
Returns list of nodes aggregated by target string.
language/compgen/csl/model/data/parsing_utils.py:100
↓ 1 callersFunction_aggregate
Returns list of nodes aggregated by target string.
language/compgen/nqg/model/parser/data/parsing_utils.py:73
↓ 1 callersFunction_aggregate_subset_scores
Computes the average of each metric over the provided subset. Note that BLEURT and Query Similarity will be skipped if any of the values are None
language/diffqg/metrics.py:339
↓ 1 callersFunction_annotate_dataset
Load examples to annotate. Args: context_export_dir: String for context model export directory. entity_export_dir: String for entity model
language/question_answering/decatt_docreader/experiments/nq_export_scorer.py:130
↓ 1 callersFunction_annotate_long_answer
Applies the model to the (question, contexts) and returns long answer. Args: predict_fn: Predictor from tf.contrib.predictor.from_saved_model.
language/question_answering/decatt_docreader/experiments/nq_export_scorer.py:85
↓ 1 callersFunction_annotate_short_answer
Applies the model to the (question, contexts) and returns long answer. Args: predict_fn: Predictor from tf.contrib.predictor.from_saved_model.
language/question_answering/decatt_docreader/experiments/nq_export_scorer.py:107
↓ 1 callersMethod_append
(self, node: nltk.Tree, children)
language/search_agents/muzero/state_tree.py:355
↓ 1 callersFunction_apply
Applies rule_b to rule_a, returning set of derived rules.
language/compgen/nqg/model/induction/derivation_utils.py:55
↓ 1 callersMethod_apply_action
(self, action)
language/search_agents/muzero/env.py:689
↓ 1 callersFunction_attend_to_question
Compute similarity scores with the dot product of two linear layers. Args: context_emb: <float32> [batch_size, max_context_len, hidden_size]
language/question_answering/decatt_docreader/layers/document_reader.py:26
↓ 1 callersFunction_attention_pool
Reduce variable length question embeddings to fixed length via attention. Args: question_emb: <float32> [batch_size, max_question_len, hidden_s
language/question_answering/decatt_docreader/layers/document_reader.py:56
↓ 1 callersMethod_batch_dataset
Batch the dataset depending on what model is used. Args: dataset: A dataset to batch Returns: A batched dataset with correct pad
language/serene/training.py:767
↓ 1 callersMethod_batch_size_checks
(self, batch_size, error_message)
language/labs/consistent_zero_shot_nmt/modules/attention_wrappers.py:162
↓ 1 callersFunction_beam_decode
Beam decode.
language/labs/exemplar_decoding/models/hypernet.py:526
↓ 1 callersFunction_beam_decode
Beam decode.
language/labs/exemplar_decoding/models/baselines.py:437
↓ 1 callersFunction_beam_decode
Beam search decoding.
language/xsp/model/transformer.py:361
↓ 1 callersFunction_bert_embeddings
Get embeddings from BERT.
language/xsp/model/embeddings.py:63
↓ 1 callersMethod_bert_stack
Encode the molecules using a deep transformer stack.
language/canine/modeling.py:318
↓ 1 callersFunction_bounding_shape
Returns the bounding shape of a Tensor, which is possibly Ragged.
language/canine/tensor_contracts.py:916
↓ 1 callersMethod_build
Must be implemented by a subclass.
language/labs/consistent_zero_shot_nmt/modules/base.py:48
↓ 1 callersMethod_build
Must be implemented by a subclass.
language/labs/consistent_zero_shot_nmt/models/losses.py:54
↓ 1 callersFunction_build_all_examples
(lexicon: Set[str])
language/wino_dict/create_new_words.py:97
↓ 1 callersMethod_build_attention
Builds attention mechanism for attending over the hiddens.
language/labs/consistent_zero_shot_nmt/modules/decoders.py:92
↓ 1 callersMethod_build_callbacks
Build the callbacks used during training.
language/serene/training.py:727
↓ 1 callersMethod_build_decoder
Builds a decoder instance.
language/labs/consistent_zero_shot_nmt/modules/decoders.py:207
↓ 1 callersMethod_build_dense
Build cross entropy loss assuming the targets are probabilities.
language/labs/consistent_zero_shot_nmt/models/losses.py:113
↓ 1 callersMethod_build_encoded_sequences
Must be implemented by a subclass.
language/labs/consistent_zero_shot_nmt/modules/encoders.py:71
↓ 1 callersMethod_build_encoded_sequences
(self, sequences, length, mode, hparams, trainable=True)
language/labs/consistent_zero_shot_nmt/modules/language_models.py:52
↓ 1 callersMethod_build_encoder
Build the encoder using the given vocab and tokenizer. Args: vocab: Vocab to build encoder from tokenizer: Tokenizer to build encoder
language/serene/training.py:317
↓ 1 callersFunction_build_example
Creates a tf.Example for prediction with T5 from the input query. Args: query: a dict mapping query features to their values. Returns: a
language/templama/templama.py:326
↓ 1 callersFunction_build_few_shot_prompts
Builds a few-shot prompt given samples.
language/wino_dict/utils.py:534
↓ 1 callersMethod_build_helper
Builds a helper instance for BasicDecoder.
language/labs/consistent_zero_shot_nmt/modules/decoders.py:159
↓ 1 callersMethod_build_init_state
Builds initial states for the given RNN cells.
language/labs/consistent_zero_shot_nmt/modules/decoders.py:136
↓ 1 callersMethod_build_inputs_and_targets
Given from and to sequences and tags, construct inputs and targets.
language/labs/consistent_zero_shot_nmt/models/agreement.py:50
↓ 1 callersMethod_build_sparse
Build cross entropy loss assuming the targets are indices.
language/labs/consistent_zero_shot_nmt/models/losses.py:98
↓ 1 callersMethod_build_vocab
Build the vocabulary and encoder from the dataset. Args: dataset: The dataset to build vocab from. Returns: The vocabulary in th
language/serene/training.py:805
↓ 1 callersFunction_bytes_feature
(value)
language/question_answering/decatt_docreader/preprocessing/create_nq_short_pipeline_examples.py:43
↓ 1 callersFunction_bytes_list_feature
(values)
language/question_answering/decatt_docreader/preprocessing/create_nq_long_examples.py:47
↓ 1 callersMethod_chars_to_molecules
Convert char seq to initial molecule seq.
language/canine/modeling.py:276
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/labs/drkit/run_dualencoder_lsf.py:1040
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/labs/drkit/hotpotqa/answer_extractor.py:615
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/labs/drkit/hotpotqa/preprocessing/create_tfrecords.py:276
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/labs/drkit/preprocessing/preprocess_qa.py:276
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/bert_extraction/steal_bert_qa/models/run_squad.py:525
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:424
↓ 1 callersFunction_check_is_max_context
Check if this is the 'max context' doc span for the token.
language/conpono/evals/run_squad.py:512
↓ 1 callersFunction_check_postconditions
Check postconditions, mutating `result` to include dynamic checks.
language/canine/tensor_contracts.py:1118
↓ 1 callersFunction_check_spans_against_schema
Raises exception if sql_spans contains bad table or column name.
language/xsp/data_preprocessing/abstract_sql.py:379
↓ 1 callersFunction_check_static_shape
Checks the shape of a tensor argument, if it's possible statically.
language/canine/tensor_contracts.py:830
↓ 1 callersFunction_check_type
(name, value, expected_type)
language/nql/nql/__init__.py:1722
↓ 1 callersMethod_collect_ancestors
Augment the set 'ancestors' with superclasses of elements of types.
language/templama/sling2facts.py:297
↓ 1 callersFunction_combine_multi_example_logits
Combine per-example logits into a per-class logit.
language/relation_learning/models/bert_fewshot_classifier.py:284
↓ 1 callersFunction_compare_metrics
Compare metrics of result x to result y.
language/capwap/utils/experiment_utils.py:230
↓ 1 callersFunction_compute_attention
Computes the attention and alignments for a given attention_mechanism.
language/labs/consistent_zero_shot_nmt/modules/attention_wrappers.py:110
↓ 1 callersMethod_compute_copy_prob
(self, rnn_out, prob_gen, alignment)
language/labs/exemplar_decoding/models/output_wrapper.py:113
↓ 1 callersFunction_compute_exact
Check whether two strings are equal up to normalization. Args: a_gold: string one a_pred: string two Returns: 1 if two strings are e
language/asqa/scoring.py:260
↓ 1 callersFunction_compute_f1
Compute F1 score between two strings. Args: a_gold: string one a_pred: string two Returns: f1 score
language/asqa/scoring.py:229
↓ 1 callersMethod_compute_logits
(self, rnn_out)
language/labs/exemplar_decoding/models/output_wrapper.py:135
↓ 1 callersFunction_compute_loss
Computes loss given batch of model outputs and labels.
language/xsp/model/model_builder.py:34
← previousnext →1,201–1,300 of 6,154, ranked by callers