MCPcopy Create free account

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

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

Method__init__
(self, replace_nonpositives=-10, **kwargs)
language/nql/nql/__init__.py:1811
Method__init__
(self, rel_name, domain_type, range_type, trainabl
language/nql/nql/__init__.py:1840
Method__init__
(self, group_name, group_members)
language/nql/nql/__init__.py:1875
Method__init__
(self, operation = None, inner = None, other = None,
language/nql/nql/__init__.py:1905
Method__init__
Initialize a SymbolTable.
language/nql/nql/symbol.py:30
Method__init__
(self)
language/nql/nql/util.py:65
Method__init__
Create a Trainer object for a task. Args: session: a tf.Session, used to run the dset's iterator model: a Model feature_ph_dict
language/nql/nql/util.py:317
Method__init__
(self, context, tf_expr, type_name, provenance = N
language/nql/nql/dist.py:74
Method__init__
(self, gpus)
language/nql/nql/dist.py:144
Method__init__
(self, rel_name, domain_type, range_type, trainable, dense)
language/nql/nql/dist.py:383
Method__init__
(self, task, root_dir, data_loader)
language/emql/eval.py:34
Method__init__
Initialize the count-min sketch context. Pre-compute the hashes of all elements if the number of elements is known (n>0). Args: wi
language/emql/cm_sketch.py:39
Method__init__
(self, params, name, root_dir, kb_file,
language/emql/data_loader.py:70
Method__init__
(self, vocab_file = VOCAB_FILE, max_seq_length = MAX_SEQ_LENGTH)
language/emql/util.py:267
Method__init__
(self, name, params, data_loader)
language/emql/model.py:53
Method__init__
(self, max_seq_length, tokenizer)
language/multivec/utils/data_processor.py:54
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. This is
language/multivec/preprocessing/create_training_data.py:335
Method__init__
(self, unique_ids, input_ids, input_masks, segment_ids, label_ids, scores)
language/multivec/preprocessing/create_training_data.py:367
Method__init__
(self, unique_ids, input_ids_1, input_mask_1, segment_ids_1, input_ids_2, input_masks_2, segmen
language/multivec/preprocessing/create_training_data.py:688
Method__init__
(self, answers_path, queries_table, passages_table,
language/multivec/preprocessing/create_training_data.py:704
Method__init__
(self, frame)
language/templama/sling2facts.py:228
Method__init__
(self)
language/templama/sling2facts.py:241
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequence. For sin
language/boolq/run_bert_boolq.py:136
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
language/boolq/run_bert_boolq.py:157
Method__init__
(self)
language/boolq/utils/tokenization.py:36
Method__init__
Construct the exporter. Args: compare_fn: Function that, given the dictionary of output metrics of the previously best an
language/boolq/utils/best_checkpoint_exporter.py:33
Method__init__
(self, documents)
language/quest/bm25/bm25_retriever.py:25
Method__init__
(self, sp_model)
language/quest/common/vocab_utils.py:23
Method__init__
Creates an exporter that compares models on the given eval and metric. While the SavedModel is useful for inference, the checkpoint is useful for
language/common/utils/exporters.py:34
Method__init__
(self, output_size, initializer, **kwargs)
language/common/layers/affine_transform.py:22
Method__init__
Read and store embeddings for a text file up to a maximum number. Args: embeddings_path: String for path to where the pretrained embeddings
language/common/inputs/embedding_utils.py:39
Method__init__
(self, example_id, qas_id, questions, doc_tokens,
language/question_answering/bert_joint/run_nq.py:203
Method__init__
(self, is_training)
language/question_answering/bert_joint/run_nq.py:741
Method__init__
(self, unique_id, example_index, doc_span_index, t
language/question_answering/bert_joint/run_nq.py:789
Method__init__
(self, filename, is_training)
language/question_answering/bert_joint/run_nq.py:1066
Method__init__
(self, example_id, candidates)
language/question_answering/bert_joint/run_nq.py:1110
Method__init__
(self)
language/question_answering/bert_joint/run_nq.py:1119
Method__init__
Constructor for a visually grounded BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false
language/question_answering/b2t2/run_b2t2.py:137
Method__init__
(self, keep_tables, truncate)
language/fruit/beam_pipelines.py:142
Method__init__
(self, use_source_mentions)
language/fruit/beam_pipelines.py:232
Method__init__
( self, vocab_model_file, max_article_length=512, excessive_length_strategy="truncate"
language/fruit/beam_pipelines.py:576
Method__init__
( self, vocab_model_file, task, delimiter_type, include_source=False, incl
language/fruit/beam_pipelines.py:735
Method__init__
( self, constructor, start = 0, end = None, )
language/fruit/rendering_utils.py:143
Method__init__
( self, delimiter, title, section, text, entity_ids = None, )
language/fruit/rendering_utils.py:224
Method__init__
( self, delimiter, text, evidence_marker_type, entity_ids = None, evidence
language/fruit/rendering_utils.py:245
Method__init__
( self, task, delimiter_range_pair, tokenizer, sentence_tokenizer, include
language/fruit/rendering_utils.py:373
Method__init__
Constructs a RelationInputExample. Args: guid: Unique id for the example. wordpieces: string. The untokenized text of the first seque
language/relation_learning/data/fewrel.py:57
Method__init__
Constructs a FewShotRelationInputExample. Args: guid: Unique id for the example. sets: dictionary of examples, aggregated by label.
language/relation_learning/data/fewrel.py:83
Method__init__
(self, tokenizer, max_seq_length, add_entity_markers=False)
language/relation_learning/data/fewrel.py:106
Method__init__
(self, guid, input_ids, input_mask, segment_ids)
language/relation_learning/models/bert_fewshot_classifier.py:82
Method__init__
(self, parent, batch_size=13, dynamic_batch_size=False,
language/canine/modeling_test.py:33
Method__init__
(self, func_name: Text, caller_name: Text, caller_file: Text, caller_line: int)
language/canine/tensor_contracts.py:112
Method__init__
Creates a `NamedDim`. Caller must specify either (`tensor` and `dim`) OR `value_of`. Args: dim_name: The name of the dimension, which
language/canine/tensor_contracts.py:145
Method__init__
(self, name: Optional[Text] = None)
language/canine/tensor_contracts.py:215
Method__init__
Creates `Require` contract spec for use within a `tc.contract` decorator. These same options apply to `Ensure`, but `tensor` must be specified as
language/canine/tensor_contracts.py:222
Method__init__
Constructs a `tc.Dynamic` condition. These are for advanced usage only and typically you should use simpler constructs such as `Require` or `
language/canine/tensor_contracts.py:587
Method__init__
Creates a `RequireTrue` condition. This is used for checking arbitrary conditions on tensors or groups of tensors not supported by `Require`,
language/canine/tensor_contracts.py:637
Method__init__
Constructs a AdamWeightDecayOptimizer.
language/canine/bert_optimization.py:89
Method__init__
Creates a `CanineModel`. This interface mirrors the `BertModel` class from the public BERT code, but abstracts away what type of input is pas
language/canine/modeling.py:77
Method__init__
(self, meaning_of_life=42, pi=3.14)
language/canine/config_utils_test.py:23
Method__init__
( self, hello="world", one=1, truthy=False, nested_thing="not_actually_nested",
language/canine/config_utils_test.py:30
Method__init__
(self, hello="world", meaning="of life")
language/canine/config_utils_test.py:50
Method__init__
Constructs BertConfig. Args: vocab_size: Vocabulary size of `inputs_ids` in `BertModel`. hidden_size: Size of the encoder layers and
language/canine/bert_modeling.py:38
Method__init__
Constructor for BertModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for eval model. Con
language/canine/bert_modeling.py:139
Method__init__
(self)
language/canine/tensor_contracts_test.py:86
Method__init__
(self, t: tf.Tensor)
language/canine/tensor_contracts_test.py:211
Method__init__
(self, model_config: canine_modeling.CanineModelConfig)
language/canine/tydiqa/tydi_modeling.py:203
Method__init__
(self)
language/canine/tydiqa/run_tydi.py:180
Method__init__
(self)
language/canine/tydiqa/postproc.py:32
Method__init__
(self, example_id, candidates)
language/canine/tydiqa/postproc.py:172
Method__init__
(self, filename: Text, is_training: bool)
language/canine/tydiqa/tf_io.py:134
Method__init__
(self, is_training, max_question_length, max_seq_length, doc_stride, include_unknowns,
language/canine/tydiqa/tf_io.py:173
Method__init__
(self, unique_id: int, example_index: int, language_id: data.Lang
language/canine/tydiqa/preproc.py:283
Method__init__
( self, model_config_file: Optional[Text] = None, output_dir: Optional[Text] = None, t
language/canine/tydiqa/run_tydi_lib.py:36
Method__init__
(self, example_id: int, language_id: Language, question: Text,
language/canine/tydiqa/data.py:78
Method__init__
(self)
language/canine/tydiqa/char_splitter.py:31
Method__init__
(self, vocab_file, do_lower_case)
language/capwap/utils/text_utils.py:53
Method__init__
Initialization. Args: image_id: (optional) Identifier for the image. question_ids: (optional) List of unique identifiers for the ques
language/capwap/utils/image_utils.py:44
Method__init__
Constructs TransformerConfig.
language/capwap/utils/transformer_utils.py:51
Method__init__
(self, config, is_training, scope_prefix="")
language/capwap/utils/transformer_utils.py:115
Method__init__
(self, params)
language/capwap/preprocessing/text_synthetic_qa.py:67
Method__init__
(self, params)
language/capwap/preprocessing/text_synthetic_qa.py:98
Method__init__
(self, checkpoint)
language/xsp/model/run_inference.py:265
Method__init__
(self, checkpoint, *unused_args, **unused_kwargs)
language/xsp/model/run_inference.py:277
Method__init__
Constructs a AdamWeightDecayOptimizer.
language/xsp/model/adam_weight_decay.py:30
Method__init__
Constructs the TFSequenceExampleDecoder decoder.
language/xsp/model/sequence_example_decoder.py:36
Method__init__
(self, model_config, generate_output, permute, num_repeats, *unused_args, **unused_kwargs)
language/xsp/data_preprocessing/convert_to_tfrecords.py:109
Method__init__
(self, wordpiece=None, tokenized_index=None, span_start_index=Non
language/xsp/data_preprocessing/language_utils.py:25
Method__init__
(self)
language/xsp/data_preprocessing/schema_utils.py:32
Method__init__
(self)
language/xsp/data_preprocessing/schema_utils.py:78
Method__init__
(self)
language/xsp/data_preprocessing/nl_to_sql_example.py:32
Method__init__
(self)
language/xsp/data_preprocessing/nl_to_sql_example.py:64
Method__init__
(self)
language/xsp/data_preprocessing/sql_utils.py:34
Method__init__
(self, copied_table=None, copied_column=None)
language/xsp/data_preprocessing/sql_utils.py:85
Method__init__
(self, symbol=None, entity_copy=None, utterance_copy=None)
language/xsp/data_preprocessing/sql_utils.py:108
Method__init__
(self)
language/xsp/data_preprocessing/sql_utils.py:145
Method__iter__
(self)
language/fruit/rendering_utils.py:153
Method__len__
(self)
language/search_agents/muzero/state_tree.py:370
Method__len__
(self)
language/gscan/xattn_model/dataset/preprocess.py:94
Method__len__
(self)
language/capwap/utils/text_utils.py:81
← previousnext →3,101–3,200 of 6,154, ranked by callers