MCPcopy Create free account

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

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

Method__init__
(self, lhs, rhs, children)
language/compgen/nqg/tasks/spider/sql_parser.py:60
Method__init__
(self, symbol=None)
language/compgen/nqg/common/cky/trie_utils.py:33
Method__init__
(self, populate_fn, postprocess_fn)
language/compgen/nqg/common/cky/trie_utils.py:79
Method__init__
(self, sentence_splitter, max_block_length, tokenizer)
language/orqa/preprocessing/wiki_preprocessor.py:42
Method__init__
(self, num_neighbors)
language/realm/retrieval.py:51
Method__init__
Constructs BruteForceRetriever. Args: query_embedder: an instance of QueryEmbedder. documents: a list of Document objects. doc_
language/realm/retrieval.py:82
Method__init__
(self, embedder_model_or_path, featurizer)
language/realm/retrieval.py:257
Method__init__
Constructs the DocumentEmbedder.
language/realm/retrieval.py:297
Method__init__
(self, max_queue_size, *args, **kwargs)
language/realm/preprocessing.py:37
Method__init__
(self, create_worker, queue_size, num_workers=None,
language/realm/parallel.py:78
Method__init__
(self, vocab_path, do_lower_case)
language/realm/generate_retrieval_corpus.py:57
Method__init__
Constructor. Args: channel: A grpc.Channel.
language/realm/preprocessing_pb2_grpc.py:26
Method__init__
(self, name)
language/realm/profile.py:47
Method__init__
(self, query_seq_len, candidate_seq_len, num_candidates, max_masks, tokenizer, separate_candida
language/realm/featurization.py:85
Method__init__
(self, vocab_path, do_lower_case)
language/realm/featurization.py:415
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/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:135
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/bert_extraction/steal_bert_classifier/models/run_classifier_membership.py:169
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/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:138
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/bert_extraction/steal_bert_classifier/models/run_classifier_distillation.py:172
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/bert_extraction/steal_bert_classifier/models/run_classifier.py:138
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:172
Method__init__
(self)
language/bert_extraction/steal_bert_classifier/models/run_classifier.py:218
Method__init__
Constructor for BertFlexEmbeddingModel. Args: config: `BertConfig` instance. is_training: bool. true for training model, false for ev
language/bert_extraction/steal_bert_classifier/embedding_perturbations/embedding_util.py:29
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/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:115
Method__init__
(self, input_ids, input_mask, segment_ids, label_id, probs)
language/bert_extraction/steal_bert_qa/utils/run_bert_boolq_diff.py:138
Method__init__
(self, qas_id, question_text, doc_tokens, orig_ans
language/bert_extraction/steal_bert_qa/models/run_squad.py:174
Method__init__
(self, unique_id, example_index, doc_span_index, t
language/bert_extraction/steal_bert_qa/models/run_squad.py:211
Method__init__
(self, filename, is_training)
language/bert_extraction/steal_bert_qa/models/run_squad.py:1074
Method__init__
(self, qas_id, question_text, doc_tokens, label_id=None)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:177
Method__init__
(self, unique_id, example_index, doc_span_index, t
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:200
Method__init__
(self, filename, is_training)
language/bert_extraction/steal_bert_qa/models/run_squad_membership.py:689
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/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:147
Method__init__
(self, input_ids, input_mask, segment_ids, label_id, probs)
language/bert_extraction/steal_bert_qa/models/run_bert_boolq_distill.py:170
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/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:147
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
language/bert_extraction/steal_bert_qa/models/run_bert_boolq.py:168
Method__init__
(self, train_examples_raw, test_examples_raw)
language/compir/dataset_parsers/cfq_parser.py:26
Method__init__
(self, train_examples_raw, test_examples_raw)
language/compir/dataset_parsers/dataset_parser.py:30
Method__init__
(self, train_examples_raw, test_examples_raw)
language/compir/dataset_parsers/scan_parser.py:25
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/cpc/run_cc_cpc.py:166
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/cpc/run_bilin_cpc.py:172
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/cpc/run_cpc.py:142
Method__init__
(self, tokens, segment_ids, label, label_types)
language/conpono/cpc/preproc/preprocessing_utils.py:33
Method__init__
(self, tokens, segment_ids, label)
language/conpono/create_pretrain_data/preprocessing_utils.py:29
Method__init__
(self, qas_id, question_text, doc_tokens, orig_ans
language/conpono/evals/run_squad.py:162
Method__init__
(self, unique_id, example_index, doc_span_index, t
language/conpono/evals/run_squad.py:199
Method__init__
(self, filename, is_training)
language/conpono/evals/run_squad.py:1061
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/evals/run_finetune_coherence.py:146
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/evals/classifier_utils.py:65
Method__init__
(self, use_spm, do_lower_case)
language/conpono/evals/classifier_utils.py:85
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/conpono/evals/run_classifier.py:138
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/evals/run_classifier.py:172
Method__init__
(self)
language/conpono/evals/run_classifier.py:218
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/evals/run_record.py:141
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/conpono/evals/run_concat_classifier.py:143
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/evals/run_concat_classifier.py:177
Method__init__
(self)
language/conpono/evals/run_concat_classifier.py:223
Method__init__
(self, use_spm, do_lower_case, high_only, middle_only)
language/conpono/evals/race_utils.py:69
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/binary_order/run_binary_coherence.py:130
Method__init__
(self, input_ids, input_mask, segment_ids, label_i
language/conpono/reconstruct/run_paragraph_reconstruct.py:145
Method__init__
( self, model_name: str = "cross-encoder/quora-roberta-large", threshold: float = 0.5, )
language/diffqg/metrics.py:83
Method__init__
( self, bleurt_checkpoint: Optional[str] = None, qsim_model: Optional[QsimModel] = None, )
language/diffqg/metrics.py:159
Method__init__
(self, json_dic: Dict[str, Any])
language/diffqg/annotation.py:32
Method__init__
(self, gold_anno: Annotation, pred_anno: Annotation)
language/diffqg/annotation.py:54
Method__init__
(self, *args, **kwargs)
language/search_agents/environment_server.py:39
Method__init__
(self, bert_config, type_vocab_sizes, num_float_features, bert_sequence_length, bert_init_ckpt:
language/search_agents/muzero/network.py:28
Method__init__
(self, grammar: nltk.CFG)
language/search_agents/muzero/state_tree.py:250
Method__init__
(self, full_action_space_size: int, actions: List[nltk.grammar.Production],
language/search_agents/muzero/state_tree.py:387
Method__init__
(self, path: str)
language/search_agents/muzero/utils.py:248
Method__init__
(self, query: str, original_query: environment_pb2.GetQueryResponse, documents:
language/search_agents/muzero/types.py:36
Method__init__
(self, original_query: environment_pb2.GetQueryResponse, history: Optional[List[
language/search_agents/muzero/types.py:191
Method__init__
(self, children=None, visit_count=-1, prior=0, val
language/search_agents/muzero/types.py:313
Method__init__
(self, vocab_size, hidden_size=768, num_layers=12,
language/search_agents/muzero/transformer_encoder.py:112
Method__init__
Init NQServer with its adress. Args: nq_env_server: str, Adress of the search environment server.
language/search_agents/muzero/server.py:38
Method__init__
(self)
language/search_agents/muzero/run_inference_beam.py:183
Method__init__
(self, nq_server: server.NQServer, state: Optional[types.EnvState] = None,
language/search_agents/muzero/env.py:232
Method__init__
(self)
language/search_agents/t5/run_inference_beam.py:126
Method__init__
(self, ngram_size: int, lexicon: Set[str])
language/wino_dict/create_new_words.py:126
Method__init__
(self, intransitive_verbs, transitive_verbs, adverbs,
language/gscan/data/dataset.py:42
Method__init__
(self, intransitive_verbs, transitive_verbs, adverbs, nouns, color_adjectives, size_adjectives,
language/gscan/data/vocabulary.py:33
Method__init__
(self, lhs, rhs, max_recursion=2)
language/gscan/data/grammar.py:139
Method__init__
(self, lhs, word, specs, sem_type)
language/gscan/data/grammar.py:156
Method__init__
(self)
language/gscan/data/grammar.py:175
Method__init__
(self, max_recursion=0)
language/gscan/data/grammar.py:185
Method__init__
(self)
language/gscan/data/grammar.py:199
Method__init__
(self)
language/gscan/data/grammar.py:213
Method__init__
(self, max_recursion=0, l_ind=0, r_inds=(0, 0))
language/gscan/data/grammar.py:239
Method__init__
(self, l_ind=0, r_inds=(0,))
language/gscan/data/grammar.py:257
Method__init__
(self, max_recursion=0)
language/gscan/data/grammar.py:268
Method__init__
(self, max_recursion=0, l_ind=0, r_inds=(0, 0))
language/gscan/data/grammar.py:282
Method__init__
Defines a grammar of NT -> NT rules and NT -> T rules.
language/gscan/data/grammar.py:422
Method__init__
NB: <PAD> token is by construction idx 0.
language/gscan/xattn_model/dataset/preprocess.py:76
Method__init__
(self, vocab, max_seq_len)
language/gscan/xattn_model/dataset/preprocess.py:164
Method__init__
(self, data_dir, split, img_dim = 16, grid_size =
language/gscan/xattn_model/dataset/gscan_dataset.py:28
Method__init__
(self, config: ml_collections.ConfigDict)
language/mentionmemory/encoders/mention_memory_encoder.py:40
Method__init__
(self, num_total_memories: int, memory_dim: int, max_length: int, max_mentions_per_sample: int,
language/mentionmemory/tasks/memory_generation_task.py:242
Method__init__
(self, entity_name, type_name, message)
language/nql/nql/__init__.py:64
Method__init__
(self, relation_name, message)
language/nql/nql/__init__.py:83
Method__init__
(self, type_name1, type_name2, operation)
language/nql/nql/__init__.py:101
Method__init__
(self, context, tf_expr, type_name, provenance = N
language/nql/nql/__init__.py:127
Method__init__
(self, symtab=None, rel_name_symtab=None, declaration=None,
language/nql/nql/__init__.py:567
← previousnext →3,001–3,100 of 6,154, ranked by callers