MCPcopy Create free account

hub / github.com/awslabs/gap-text2sql / functions

Functions889 in github.com/awslabs/gap-text2sql

↓ 1 callersMethodencoder_long_seq
Since bert cannot handle sequence longer than 512, each column/table is encoded individually The representation of a column/table is
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1497
↓ 1 callersFunctioneval_IUEN
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:237
↓ 1 callersFunctioneval_and_or
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:196
↓ 1 callersFunctioneval_exec_match
return 1 if the values between prediction and gold are matching in the corresponding index. Currently not support multiple col_unit(pairs).
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:628
↓ 1 callersFunctioneval_group
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:152
↓ 1 callersMethodeval_hardness
(self, sql)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:386
↓ 1 callersFunctioneval_having
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:167
↓ 1 callersFunctioneval_keywords
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:288
↓ 1 callersMethodeval_on_batch
(self, batch)
rat-sql-gap/seq2struct/models/enc_dec.py:111
↓ 1 callersFunctioneval_order
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:184
↓ 1 callersFunctioneval_sel
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:112
↓ 1 callersFunctioneval_where
(pred, label)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:132
↓ 1 callersFunctionevaluate
(gold, predict, db_dir, etype, kmaps)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:605
↓ 1 callersMethodevaluate
Run evaluation and return metrics. The calling script will be responsible for providing a method to compute metrics, as they are
relogic/pretrainkit/multitask_trainer.py:716
↓ 1 callersFunctionfill_with_neg_inf
FP16-compatible function that fills a input_ids with -inf.
relogic/pretrainkit/models/semparse/modeling_bart_copy.py:809
↓ 1 callersFunctionfill_with_neg_inf
FP16-compatible function that fills a input_ids with -inf.
relogic/pretrainkit/models/relationalsemparse/modeling_relational_bart.py:877
↓ 1 callersMethodfinalize
(self)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:532
↓ 1 callersMethodfind_word_occurrences
(self, word)
rat-sql-gap/seq2struct/models/nl2code/encoder.py:18
↓ 1 callersMethodforward_unbatched
(self, desc, q_enc, c_enc, c_boundaries, t_enc, t_boundaries)
relogic/pretrainkit/models/relationalsemparse/relational_transformer.py:586
↓ 1 callersMethodgen_token
( self, node_type, prev_state, prev_action_emb, pa
rat-sql-gap/seq2struct/models/nl2code/decoder.py:761
↓ 1 callersMethodgen_token_loss
( self, output, gen_logodds, token, desc_enc)
rat-sql-gap/seq2struct/models/nl2code/decoder.py:779
↓ 1 callersMethodgenerate
r""" Generates sequences for models with a LM head. The method currently supports greedy decoding, beam-search decoding, sampling with temperature, sa
relogic/pretrainkit/models/relationalsemparse/relational_semparse.py:203
↓ 1 callersFunctionget_attn_mask
(seq_lengths)
rat-sql-gap/seq2struct/models/spider/spider_enc_modules.py:20
↓ 1 callersFunctionget_data_collator_by_name
(pretraining_model, task_name, cross_lingual, tokenizer)
relogic/logical-tabart-pretraining.py:156
↓ 1 callersFunctionget_data_collators
(pretraining_model, args: DataTrainingArguments, tokenizer: PreTrainedTokenizer)
relogic/logical-tabart-pretraining.py:163
↓ 1 callersFunctionget_dataset_by_name
(pretraining_model, task_name, cross_lingual, tokenizer, file_path, use_text, only_use_text)
relogic/logical-tabart-pretraining.py:141
↓ 1 callersMethodget_encoder
(self)
relogic/pretrainkit/models/semparse/semparse.py:202
↓ 1 callersMethodget_encoder
(self)
relogic/pretrainkit/models/relationalsemparse/relational_semparse.py:196
↓ 1 callersMethodget_eval_dataloader
(self, eval_dataset: Optional[Dataset] = None)
relogic/pretrainkit/trainer.py:237
↓ 1 callersMethodget_eval_dataloaders
(self, eval_datasets: List[Optional[Dataset]] = None)
relogic/pretrainkit/multitask_trainer.py:237
↓ 1 callersFunctionget_nestedSQL
(sql)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:207
↓ 1 callersMethodget_optimizers
Setup the optimizer and the learning rate scheduler. We provide a reasonable default that works well. If you want to use som
relogic/pretrainkit/multitask_trainer.py:285
↓ 1 callersMethodget_optimizers
Setup the optimizer and the learning rate scheduler. We provide a reasonable default that works well. If you want to use som
relogic/pretrainkit/trainer.py:283
↓ 1 callersMethodget_output_embeddings
(self)
relogic/pretrainkit/models/semparse/semparse.py:205
↓ 1 callersMethodget_output_embeddings
(self)
relogic/pretrainkit/models/relationalsemparse/relational_semparse.py:199
↓ 1 callersFunctionget_range_vector
relogic/logickit/utils/utils.py:151
↓ 1 callersFunctionget_schema
Get database's schema, which is a dict with table name as key and list of column names as value :param db: database path :return: sch
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:79
↓ 1 callersFunctionget_schemas_from_json
(fpath)
rat-sql-gap/seq2struct/datasets/spider_lib/preprocess/schema.py:40
↓ 1 callersFunctionget_tables_with_alias
(schema, toks)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:159
↓ 1 callersMethodget_test_dataloader
(self, test_datasets: List[Dataset])
relogic/pretrainkit/multitask_trainer.py:263
↓ 1 callersMethodget_test_dataloader
(self, test_dataset: Dataset)
relogic/pretrainkit/trainer.py:262
↓ 1 callersFunctionget_tpu_sampler
(dataset: Dataset)
relogic/pretrainkit/multitask_trainer.py:134
↓ 1 callersFunctionget_tpu_sampler
(dataset: Dataset)
relogic/pretrainkit/trainer.py:130
↓ 1 callersMethodget_train_dataloader
(self)
relogic/pretrainkit/trainer.py:215
↓ 1 callersMethodget_train_dataloaders
(self)
relogic/pretrainkit/multitask_trainer.py:214
↓ 1 callersMethodget_training_mb
(self, dataloaders: List[DataLoader], epoch)
relogic/pretrainkit/multitask_trainer.py:351
↓ 1 callersFunctionhas_agg
(unit)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:82
↓ 1 callersMethodinfer
(self, model, output_path, args)
rat-sql-gap/seq2struct/commands/infer.py:54
↓ 1 callersFunctioninstantiate
(callable, config, unused_keys=(), **kwargs)
rat-sql-gap/seq2struct/utils/registry.py:39
↓ 1 callersFunctionintersperse
(delimiter, seq)
rat-sql-gap/seq2struct/grammars/spider.py:30
↓ 1 callersMethodis_done
If there are enough hypotheses and that none of the hypotheses being generated can become better than the worst one in the heap, then
relogic/pretrainkit/models/semparse/semparse.py:1157
↓ 1 callersMethodis_done
If there are enough hypotheses and that none of the hypotheses being generated can become better than the worst one in the heap, then
relogic/pretrainkit/models/relationalsemparse/relational_semparse.py:1157
↓ 1 callersMethodis_local_master
(self)
relogic/pretrainkit/multitask_trainer.py:626
↓ 1 callersFunctionisnumber
(word)
rat-sql-gap/seq2struct/models/spider/spider_match_utils.py:82
↓ 1 callersFunctionkeyset_in_list
(k1, k2, k_list)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:828
↓ 1 callersMethodlinearize_cond
(cls, cond)
rat-sql-gap/seq2struct/grammars/spider.py:414
↓ 1 callersMethodload
(self)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:261
↓ 1 callersFunctionload_and_map_checkpoint
(model, model_dir, remap)
rat-sql-gap/seq2struct/utils/saver.py:45
↓ 1 callersFunctionload_checkpoint
item_dict: {"model": model, "opt1": opt1, ...}
rat-sql-gap/seq2struct/utils/saver.py:25
↓ 1 callersMethodload_model
Load a model (identified by the config used for construction) and return it
rat-sql-gap/seq2struct/commands/infer.py:38
↓ 1 callersFunctionlookup
(kind, name)
rat-sql-gap/seq2struct/utils/registry.py:22
↓ 1 callersMethodlookup
(self, token)
rat-sql-gap/seq2struct/resources/pretrained_embeddings.py:104
↓ 1 callersFunctionmain
()
rat-sql-gap/run.py:46
↓ 1 callersFunctionmain
(args)
rat-sql-gap/seq2struct/commands/eval.py:20
↓ 1 callersFunctionmain
(args)
rat-sql-gap/seq2struct/commands/train.py:247
↓ 1 callersFunctionmain
(args)
rat-sql-gap/seq2struct/commands/infer.py:224
↓ 1 callersFunctionmain
(args)
rat-sql-gap/seq2struct/commands/preprocess.py:37
↓ 1 callersFunctionmake_padding_mask
True for pad tokens
relogic/pretrainkit/models/semparse/modeling_bart_copy.py:192
↓ 1 callersFunctionmake_padding_mask
True for pad tokens
relogic/pretrainkit/models/relationalsemparse/modeling_relational_bart.py:191
↓ 1 callersMethodmask_tokens
Prepare masked tokens inputs/labels for masked language modeling: 80% MASK, 10% random, 10% original. If ignore_segment is not None, then thi
relogic/pretrainkit/datasets/semparse/tabart.py:292
↓ 1 callersFunctionmaybe_stack
(items, dim=None)
rat-sql-gap/seq2struct/models/nl2code/decoder.py:41
↓ 1 callersFunctionmerge_beams
(beam_1, beam_2, beam_size)
rat-sql-gap/seq2struct/models/spider/spider_beam_search.py:196
↓ 1 callersMethodnormalize_toks
If the token is not a word piece, then find its lemma If it is, combine pieces into a word, and then find its lemma E.g., a #
rat-sql-gap/seq2struct/models/spider/spider_enc.py:563
↓ 1 callersMethodnormalize_toks
(self)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1037
↓ 1 callersMethodpad_sequence_for_bert_batch
(self, tokens_lists)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1000
↓ 1 callersMethodpad_sequence_for_bert_batch
(self, tokens_lists)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1542
↓ 1 callersMethodparse_agg
(self, agg)
rat-sql-gap/seq2struct/grammars/spider.py:326
↓ 1 callersFunctionparse_from
Assume in the from clause, all table units are combined with join
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:366
↓ 1 callersFunctionparse_group_by
(toks, start_idx, tables_with_alias, schema, default_tables)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:421
↓ 1 callersFunctionparse_having
(toks, start_idx, tables_with_alias, schema, default_tables)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:471
↓ 1 callersFunctionparse_limit
(toks, start_idx)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:483
↓ 1 callersFunctionparse_order_by
(toks, start_idx, tables_with_alias, schema, default_tables)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:444
↓ 1 callersFunctionparse_select
(toks, start_idx, tables_with_alias, schema, default_tables=None)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:341
↓ 1 callersFunctionparse_table_unit
:returns next idx, table id, table name
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:254
↓ 1 callersMethodparse_table_unit
(self, table_unit)
rat-sql-gap/seq2struct/grammars/spider.py:195
↓ 1 callersFunctionparse_where
(toks, start_idx, tables_with_alias, schema, default_tables)
rat-sql-gap/seq2struct/datasets/spider_lib/process_sql.py:409
↓ 1 callersMethodpointer_choice
(self, node_type, logits, attention_logits)
rat-sql-gap/seq2struct/models/nl2code/tree_traversal.py:443
↓ 1 callersMethodpointer_infer
(self, node_type, logits)
rat-sql-gap/seq2struct/models/nl2code/decoder.py:887
↓ 1 callersMethodprepare_logits_for_generation
(self, logits, cur_len, max_length)
relogic/pretrainkit/models/semparse/semparse.py:165
↓ 1 callersMethodprepare_logits_for_generation
(self, logits, cur_len, max_length)
relogic/pretrainkit/models/relationalsemparse/relational_semparse.py:159
↓ 1 callersMethodpreprocess
(self)
rat-sql-gap/seq2struct/commands/preprocess.py:20
↓ 1 callersMethodpreprocess_item
(self, item, validation_info)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:198
↓ 1 callersMethodpreprocess_item
(self, item, validation_info)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:678
↓ 1 callersMethodpreprocess_item
(self, item, validation_info)
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1206
↓ 1 callersFunctionpreprocess_schema_uncached_bart
If it's bert, we also cache the normalized version of question/column/table for schema linking
rat-sql-gap/seq2struct/models/spider/spider_enc.py:1093
↓ 1 callersFunctionprint_scores
(scores, etype)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:571
↓ 1 callersFunctionread_index
(filename)
rat-sql-gap/seq2struct/utils/indexed_file.py:5
↓ 1 callersFunctionrebuild_cond_unit_col
(valid_col_units, cond_unit, kmap)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:743
↓ 1 callersFunctionrebuild_cond_unit_val
(cond_unit)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:657
↓ 1 callersFunctionrebuild_from_col
(valid_col_units, from_, kmap)
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:772
← previousnext →301–400 of 889, ranked by callers