MCPcopy Create free account

hub / github.com/FlyingFeather/DEA-SQL / functions

Functions1,466 in github.com/FlyingFeather/DEA-SQL

↓ 2 callersFunction_create_position_embedding
Creates position embeddings. Args: embedding_dim: Dimensionality of the embeddings. An integer. num_positions: The number of positions to b
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/pooling_encoder.py:54
↓ 2 callersMethod_create_predictions
Creates the dictionary of predictions that is returned by the model.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/seq2seq_model.py:100
↓ 2 callersMethod_create_predictions
(self, decoder_output, features, labels, losses=None)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:322
↓ 2 callersFunction_f_p_r_lcs
Computes the LCS-based F-measure score Source: http://research.microsoft.com/en-us/um/people/cyl/download/papers/ rouge-working-note-v1.3.1.pdf
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/rouge.py:186
↓ 2 callersMethod_get_decoder_args
(self, encoder_output, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_seq2seq.py:99
↓ 2 callersFunction_get_prediction_length
Returns the length of the prediction based on the index of the first SEQUENCE_END token.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/decode_text.py:34
↓ 2 callersMethod_get_tables_and_ids
(self, features)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/schema_attention_seq2seq.py:83
↓ 2 callersFunction_get_word_ngrams
Calculates word n-grams for multiple sentences.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/rouge.py:55
↓ 2 callersFunction_lcs
Computes the length of the longest common subsequence (lcs) between two strings. The implementation below uses a DP programming algorithm and run
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/rouge.py:83
↓ 2 callersMethod_preprocess
Model-specific preprocessing for features and labels: - Creates vocabulary lookup tables for source and target vocab - Converts tokens
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:305
↓ 2 callersMethod_setup
Sets the initial state and helper for the decoder.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/decoders/rnn_decoder.py:82
↓ 2 callersMethod_test_constant_shape
Tests a residual combiner whose shape doesn't change with depth
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/rnn_cell_test.py:73
↓ 2 callersMethod_test_encode_with_params
Tests the StackBidirectionalRNNEncoder with a specific cell
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/rnn_encoder_test.py:128
↓ 2 callersMethod_test_layer
Tests Attention layer with a given score type
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/attention_test.py:48
↓ 2 callersMethod_test_with_args
Helper function to test create_input_fn with keyword arguments
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/train_utils_test.py:112
↓ 2 callersMethod_test_with_params
Tests the encoder with a given parameter configuration
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/pooling_encoder_test.py:41
↓ 2 callersFunction_transpose_batch_time
Transpose the batch and time dimensions of a Tensor. Retains as much of the static shape information as possible. Args: x: A tensor of rank
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:50
↓ 2 callersFunction_unpack_cell
Unpack the cells because the stack_bidirectional_dynamic_rnn expects a list of cells, one per layer.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/rnn_encoder.py:30
↓ 2 callersFunctionacc
(l, idxes=None)
evaluation/test-suite-sql-eval/evaluate_classical.py:32
↓ 2 callersFunctionaccumulate_strings
Accumulates strings into a vector. Args: values: A 1-d string tensor that contains values to add to the accumulator. Returns: A tuple (v
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/metric_specs.py:39
↓ 2 callersFunctionadd_root
(tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/parse.py:363
↓ 2 callersFunctionadd_root
(tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:247
↓ 2 callersFunctionapply_unary_closure
(parse_tree, unary_closure, unary_link)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/unaryclosure.py:209
↓ 2 callersFunctionapply_unary_closures
(parse_tree, unary_closures)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/unaryclosure.py:115
↓ 2 callersFunctionasMinutes
(s)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/plot-1.py:177
↓ 2 callersFunctionast_tree_to_seq2tree_repr
(tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/seq2tree_exp.py:18
↓ 2 callersFunctionattach_function_to_channel
(parse_tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/ifttt/parse.py:60
↓ 2 callersMethodbuild
(self)
evaluation/ts_old/spider-master/baselines/nl2code/model.py:74
↓ 2 callersFunctionbuild_foreign_key_map_from_json
(table)
single_eval.py:909
↓ 2 callersFunctionbuild_valid_col_units
(table_units, schema)
single_eval.py:756
↓ 2 callersFunctionbuild_valid_col_units
(table_units, schema)
evaluation/ts_old/spider-master/evaluation.py:687
↓ 2 callersFunctionbuild_valid_col_units
(table_units, schema)
evaluation/test-suite-sql-eval/evaluation.py:826
↓ 2 callersFunctioncanonicalize_code
(code)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/parse.py:288
↓ 2 callersFunctioncanonicalize_code
(code)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:172
↓ 2 callersFunctioncheckConstraint
(type)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/sqlgenerate.js:473
↓ 2 callersMethodcomplete
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:85
↓ 2 callersFunctioncontainsSelect
(s)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/sqlgenerate-kai.js:34
↓ 2 callersFunctioncorrect_sql_by_case
(query, table_info, sql)
correct_sql.py:43
↓ 2 callersFunctioncorrect_sql_self
(query, table_info, sql)
correct_sql.py:11
↓ 2 callersFunctioncount_most_common
(values)
common/wrapper.py:42
↓ 2 callersMethoddata
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:151
↓ 2 callersFunctiondecode_ifttt_dataset
(model, dataset, verbose=True)
evaluation/ts_old/spider-master/baselines/nl2code/decoder.py:78
↓ 2 callersFunctionescape
(text)
evaluation/ts_old/spider-master/baselines/nl2code/parse_hiro.py:9
↓ 2 callersFunctionescape
(text)
evaluation/ts_old/spider-master/baselines/nl2code/main.py:14
↓ 2 callersMethodeval_exact_match
(self, pred, label)
single_eval.py:380
↓ 2 callersMethodeval_exact_match
(self, pred, label)
evaluation/ts_old/spider-master/evaluation.py:379
↓ 2 callersMethodeval_exact_match
(self, pred, label)
evaluation/test-suite-sql-eval/evaluation.py:379
↓ 2 callersFunctionexecute_sql
(sql, db_path)
evaluation/src/evaluation_ves.py:29
↓ 2 callersFunctionextract_query_values
(sql: str)
evaluation/test-suite-sql-eval/parse.py:102
↓ 2 callersFunctionextract_sql
(text, init_sql)
common/common.py:99
↓ 2 callersFunctionextract_unary_closure
(parse_tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/unaryclosure.py:35
↓ 2 callersFunctionfloatX
(X)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:7
↓ 2 callersMethodgen_sql
(self, score, col_org, schema_seq)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/model/sqlnet.py:669
↓ 2 callersMethodgen_sql
(self, score, col_org, schema_seq)
evaluation/ts_old/spider-master/baselines/typesql/scripts/model/typesql.py:672
↓ 2 callersFunctiongenerate_db_prompt_spider
(root_dir, dataset, db_id, prompt_db="CreateTableSelect", limit_value=3, normalization=True)
data_preprocess.py:337
↓ 2 callersFunctiongenerate_training_spec
(spec, include_dev=False)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/config_builder.py:207
↓ 2 callersMethodget_examples
(self, ids)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:199
↓ 2 callersMethodget_join_nested_sql_prompt
(self)
prompt/get_sql_prompt_for_fewshot.py:42
↓ 2 callersFunctionget_keywords
(sql)
hardness_eval.py:761
↓ 2 callersFunctionget_keywords
(sql)
single_eval.py:245
↓ 2 callersFunctionget_keywords
(sql)
evaluation/ts_old/spider-master/evaluation.py:245
↓ 2 callersFunctionget_keywords
(sql)
evaluation/test-suite-sql-eval/evaluation.py:244
↓ 2 callersFunctionget_most_voted_values
(values_list, mode)
common/wrapper.py:41
↓ 2 callersMethodget_multi_sql_prompt
(self)
prompt/get_sql_prompt_for_fewshot.py:27
↓ 2 callersMethodget_nested_sql_prompt
(self)
prompt/get_sql_prompt_for_fewshot.py:59
↓ 2 callersMethodget_prob_func_inputs
(self, ids)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:205
↓ 2 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
evaluation/test-suite-sql-eval/process_sql.py:79
↓ 2 callersFunctionget_shots_by_mode
Get top-n few-shots by mode
fewshot/auto_selection.py:63
↓ 2 callersMethodget_single_sql_prompt
(self)
prompt/get_sql_prompt_for_fewshot.py:76
↓ 2 callersMethodget_sql_by_llm
(self, query, table_info, limitation, metric, main_metric, suggestion, few_shots, aggr_
gen_sql.py:176
↓ 2 callersMethodget_table_characters_from_foreign_key
(self, table_info, new_table_list)
filter_characters.py:143
↓ 2 callersFunctionget_terminal_tokens
(_terminal_str)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:412
↓ 2 callersFunctionget_terminal_tokens
get terminal tokens break words like MinionCards into [Minion, Cards]
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/sql_dataset.py:186
↓ 2 callersFunctionget_terminal_tokens
get terminal tokens break words like MinionCards into [Minion, Cards]
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/py_dataset.py:206
↓ 2 callersFunctionget_top_unary_closures
(parse_trees, k=20, freq=50)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/unaryclosure.py:88
↓ 2 callersFunctionifttt_metric
(predict_parse_tree, ref_parse_tree)
evaluation/ts_old/spider-master/baselines/nl2code/evaluation.py:809
↓ 2 callersMethodinitialize
Returns `(initial_finished, initial_inputs)`.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:78
↓ 2 callersFunctionisOfActionType
(type)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/sqlgenerate.js:219
↓ 2 callersFunctionis_builtin_type
(x)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/grammar.py:722
↓ 2 callersFunctionis_number
Check if token is a SQL number literal.
data_preprocess.py:6
↓ 2 callersMethodis_value_node
(self, node)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/grammar.py:816
↓ 2 callersMethodis_value_node
(self, node)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/grammar.py:836
↓ 2 callersFunctionload_dataset
(dataset_dir, use_small=False)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/utils.py:42
↓ 2 callersFunctionload_dataset
(dataset_dir, use_small=False)
evaluation/ts_old/spider-master/baselines/typesql/scripts/utils.py:42
↓ 2 callersFunctionload_para_wemb
(file_name)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/utils.py:189
↓ 2 callersFunctionload_para_wemb
(file_name)
evaluation/ts_old/spider-master/baselines/typesql/scripts/utils.py:190
↓ 2 callersFunctionmask_query_by_entities
masked query by entities
fewshot/processor.py:17
↓ 2 callersMethodnext_batch
(self)
evaluation/ts_old/spider-master/baselines/nl2code/learner.py:181
↓ 2 callersFunctionnormal
(shape, scale=0.01, name=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/initializations.py:18
↓ 2 callersFunctionpackage_sqls
(sql_path, db_root_path, mode='gpt', data_mode='dev')
evaluation/src/evaluation.py:51
↓ 2 callersFunctionpackage_sqls
(sql_path, db_root_path, mode='gpt', data_mode='dev')
evaluation/src/evaluation_ves.py:79
↓ 2 callersFunctionparse_col
:returns next idx, column id
hardness_eval.py:196
↓ 2 callersFunctionparse_col
:returns next idx, column id
evaluation/ts_old/spider-master/process_sql.py:167
↓ 2 callersFunctionparse_col
:returns next idx, column id
evaluation/test-suite-sql-eval/process_sql.py:167
↓ 2 callersMethodpath
Returns the path to the options file. Args: model_dir: The model directory
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/utils.py:61
↓ 2 callersFunctionpostprocess
(query: str)
evaluation/test-suite-sql-eval/exec_eval.py:173
↓ 2 callersFunctionpreprocess_dataset
(annot_file, code_file)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:758
↓ 2 callersFunctionpreprocess_hs_dataset
(annot_file, code_file)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/py_dataset.py:151
↓ 2 callersFunctionquery_to_data
(query, annot_vocab)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:613
↓ 2 callersFunctionrebuild_sql_col
(valid_col_units, sql, kmap)
single_eval.py:852
← previousnext →201–300 of 1,466, ranked by callers