MCPcopy Create free account

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

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

↓ 100 callersMethodrun
get NER of users' query, and classify the label of entity :param query: user input :return: llm output, consist of entity and
get_ner.py:58
↓ 81 callersMethodadd
(self, example)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:175
↓ 44 callersMethodload
(self, model_file)
evaluation/ts_old/spider-master/baselines/nl2code/model.py:617
↓ 37 callersMethodexecute
(self, table_id, select_index, aggregation_index, conditions, lower=True)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/lib/dbengine.py:21
↓ 37 callersFunctionshared_zeros
(shape, dtype=theano.config.floatX, name=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:15
↓ 37 callersMethodupdate
@param current: index of current step @param values: list of tuples (name, value_for_last_step). The progress bar
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/generic_utils.py:161
↓ 30 callersMethodadd_child
(self, child)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:133
↓ 30 callersMethodcopy
(self)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:245
↓ 30 callersMethodshape
(self)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/io_utils.py:53
↓ 28 callersMethoddecode
Runs decoding based on the encoder outputs.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/seq2seq_model.py:198
↓ 23 callersMethoditeritems
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:82
↓ 22 callersMethoddump
Dumps the options to a file in the model directory. Args: model_dir: Path to the model directory. The options will be dumped into a f
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/utils.py:69
↓ 22 callersMethodflatten
(self, lst)
filter_characters.py:152
↓ 22 callersMethodload
Loads options from the given model directory. Args: model_dir: Path to the model directory.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/utils.py:86
↓ 22 callersMethodmain
(self, root_dir, dataset, file, save_file_name, mode="dev", lang_mode="cn", prompt_mode='openai',
gen_sql.py:539
↓ 22 callersMethodvariable_scope
Returns the proper variable scope for this module.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/graph_module.py:59
↓ 21 callersMethod__repr__
(self)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:295
↓ 17 callersMethodget_productions
get the depth-first, left-to-right sequence of rule applications returns a list of production rules and a map to their parent rules
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:198
↓ 15 callersFunctionalloc_zeros_matrix
(*dims)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:27
↓ 15 callersMethodinit_data_matrices
(self, max_query_length=70, max_example_action_num=100)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:231
↓ 14 callersMethodencode
Encodes an input sequence. Args: inputs: The inputs to encode. A float32 tensor of shape [B, T, ...]. sequence_length: The lengt
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/encoder.py:52
↓ 12 callersMethodnext_inputs
Returns `(finished, next_inputs, next_state)`.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:88
↓ 12 callersMethodsave
(self, model_file, **kwargs)
evaluation/ts_old/spider-master/baselines/nl2code/model.py:608
↓ 12 callersMethodset_name
(self, name)
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/core.py:62
↓ 11 callersFunctionprint_formated_s
(row_name, l, element_format)
single_eval.py:446
↓ 11 callersFunctionprint_formated_s
(row_name, l, element_format)
evaluation/test-suite-sql-eval/evaluation.py:445
↓ 10 callersMethod_set_special_vocab_ids
(self)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:124
↓ 10 callersMethod_test_metric_spec
Tests a MetricSpec
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/metrics_test.py:82
↓ 10 callersFunctionget_scores
(count, pred_total, label_total)
single_eval.py:103
↓ 10 callersFunctionget_scores
(count, pred_total, label_total)
evaluation/ts_old/spider-master/evaluation.py:103
↓ 10 callersFunctionget_scores
(count, pred_total, label_total)
evaluation/test-suite-sql-eval/evaluation.py:102
↓ 10 callersMethodsample
Returns `sample_ids`.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/helper.py:83
↓ 10 callersFunctionshared_scalar
(val=0., dtype=theano.config.floatX, name=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:19
↓ 10 callersMethodsize
(self)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:70
↓ 10 callersFunctiontokenize_for_bleu_eval
(code)
evaluation/ts_old/spider-master/baselines/nl2code/evaluation.py:17
↓ 10 callersFunctiontypename
(x)
evaluation/ts_old/spider-master/baselines/nl2code/lang/util.py:2
↓ 9 callersFunctiongen_vocab
(tokens, vocab_size=3000, freq_cutoff=5)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:109
↓ 9 callersMethodget_leaves
(self)
evaluation/ts_old/spider-master/baselines/nl2code/astnode.py:176
↓ 9 callersFunctioninit_logging
(file_name, level=logging.INFO)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/generic_utils.py:67
↓ 9 callersFunctionrun_lstm
(lstm, inp, inp_len, hidden=None)
evaluation/ts_old/spider-master/baselines/typesql/scripts/model/modules/net_utils.py:6
↓ 8 callersFunction_maybe_load_yaml
Parses `item` only if it is a string. If `item` is a dictionary it is returned as-is.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/configurable.py:57
↓ 8 callersMethod_test_with_residuals
Runs the cell in a session
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/rnn_cell_test.py:56
↓ 8 callersFunctionask_llm
(prompt, temp=None)
llm/chat.py:70
↓ 8 callersMethoddecode
(self, example, grammar, terminal_vocab, beam_size, max_time_step, log=False)
evaluation/ts_old/spider-master/baselines/nl2code/model.py:338
↓ 8 callersFunctiondeserialize_from_file
(path)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/io_utils.py:82
↓ 8 callersFunctionisOfFormat
(n)
evaluation/ts_old/spider-master/baselines/nl2code/lang/sql/sqlgenerate.js:35
↓ 8 callersFunctionparse
parse a python code into a tree structure code -> AST tree -> AST tree to internal tree structure
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:254
↓ 8 callersFunctionserialize_to_file
(obj, path, protocol=cPickle.HIGHEST_PROTOCOL)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/io_utils.py:76
↓ 8 callersFunctiontokenize_code
(code)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:297
↓ 7 callersMethod__init__
(self, params, model_dir, run_config)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/hooks.py:48
↓ 7 callersFunction_split_into_words
Splits multiple sentences into words and flattens the result
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/metrics/rouge.py:50
↓ 7 callersMethodadd
(self, n, values=[])
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/generic_utils.py:228
↓ 7 callersFunctionget_grammar
(parse_trees)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:280
↓ 7 callersFunctionget_prompt_content
(prompt, param_dicts)
common/common.py:30
↓ 7 callersFunctionsplit_characters
(original_list)
filter_characters.py:84
↓ 6 callersFunctionclean_sql_file
(input_sql_file,output_sql_file)
evaluation/ts_old/spider-master/baselines/nl2code/data_preprocess/clean_sql.py:6
↓ 6 callersMethoddefault_params
()
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/tasks/dump_beams.py:51
↓ 6 callersMethodfrontier_nt
(self)
evaluation/ts_old/spider-master/baselines/nl2code/components.py:153
↓ 6 callersFunctionget_fewshots
Get fewshots according to different input parameters :param question: the question :param entities: the entities :param sql: the sql
fewshot/auto_selection.py:117
↓ 6 callersMethodget_gradients
(self, loss, params, **kwargs)
evaluation/ts_old/spider-master/baselines/nl2code/nn/optimizers.py:40
↓ 6 callersFunctionndim_itensor
(ndim, name=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:51
↓ 6 callersFunctionsharedX
(X, dtype=theano.config.floatX, name=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/theano_utils.py:11
↓ 5 callersMethod__init__
(self, lr=0.01, momentum=0., decay=0., nesterov=False, *args, **kwargs)
evaluation/ts_old/spider-master/baselines/nl2code/nn/optimizers.py:57
↓ 5 callersMethod__init__
(self, input_dim, output_dim=128, init='glorot_uniform', inner_init='orthogonal',
evaluation/ts_old/spider-master/baselines/nl2code/nn/layers/recurrent.py:33
↓ 5 callersMethod_copy_loss
(self, targets, seq_len, attention_scores, copy_indices, copy_id)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:168
↓ 5 callersMethod_fill_in_copies
(self, prediction_ids, predicted_tokens, attn_scores, copy_source_tokens,
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:143
↓ 5 callersMethod_get_predicted_tokens
(self, predictions)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:133
↓ 5 callersMethod_run
Runs the bridge with the given arguments
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/bridges_test.py:69
↓ 5 callersMethod_trim_copy_indices
(self, labels, indices_name)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:117
↓ 5 callersFunctioncount_agg
(units)
hardness_eval.py:815
↓ 5 callersFunctioncount_agg
(units)
single_eval.py:299
↓ 5 callersFunctioncount_agg
(units)
evaluation/ts_old/spider-master/evaluation.py:299
↓ 5 callersFunctioncount_agg
(units)
evaluation/test-suite-sql-eval/evaluation.py:298
↓ 5 callersFunctionde_canonicalize_code
(code, ref_raw_code)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:195
↓ 5 callersFunctionget_fans
(shape)
evaluation/ts_old/spider-master/baselines/nl2code/nn/initializations.py:8
↓ 5 callersFunctionget_single_table_info
(table_info_list, table_name, target_characters, table_list)
filter_characters.py:70
↓ 5 callersMethodinsert_token
(self, token)
evaluation/ts_old/spider-master/baselines/nl2code/dataset.py:91
↓ 5 callersFunctionparse_tree_to_python_ast
(tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:77
↓ 5 callersMethodpull_params
(self)
evaluation/ts_old/spider-master/baselines/nl2code/model.py:605
↓ 5 callersFunctionrun_lstm
(lstm, inp, inp_len, hidden=None)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/model/modules/net_utils.py:6
↓ 5 callersFunctionsoftmax
(x)
evaluation/ts_old/spider-master/baselines/nl2code/nn/activations.py:4
↓ 5 callersMethodstep
Called per step of decoding (but only once for dynamic decoding). Args: time: Scalar `int32` tensor. inputs: Input (possibly nested t
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/contrib/seq2seq/decoder.py:112
↓ 4 callersFunction_default_rnn_cell_params
Creates default parameters used by multiple RNN encoders.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/rnn_encoder.py:39
↓ 4 callersMethod_targets_and_seq_len
(self, labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/attention_copying_seq2seq.py:184
↓ 4 callersFunction_toggle_dropout
Disables dropout during eval/inference mode
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/encoders/rnn_encoder.py:56
↓ 4 callersFunctionbuild_file_list
(fnames, input_spec)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/config_builder.py:350
↓ 4 callersFunctioncol_name_encode
(name_inp_var, name_len, col_len, enc_lstm)
evaluation/ts_old/spider-master/baselines/sqlnet/scripts/model/modules/net_utils.py:31
↓ 4 callersFunctioncompressed_ast_to_normal
(parse_tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/unaryclosure.py:129
↓ 4 callersFunctioncompute_ves
(exec_results)
evaluation/src/evaluation_ves.py:117
↓ 4 callersMethodcreate_decoder
Creates the decoder module. This must be implemented by child classes and instantiate the appropriate decoder to be tested.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/test/decoder_test.py:45
↓ 4 callersFunctiondecay_fn
The computed learning rate decay function.
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/training/utils.py:207
↓ 4 callersFunctiondecode_tree_to_python_ast
(decode_tree)
evaluation/ts_old/spider-master/baselines/nl2code/lang/py/parse.py:143
↓ 4 callersMethodencode
(self, features, _labels)
evaluation/ts_old/spider-master/baselines/seq2seq_attention_copy/seq2seq/models/image2seq.py:66
↓ 4 callersFunctionevaluate
(gold, predict, db_dir, etype, kmaps, plug_value, keep_distinct, progress_bar_for_each_datapoint)
single_eval.py:505
↓ 4 callersFunctionexec_on_db
( sqlite_path: str, query: str, process_id: str = "", timeout: int = TIMEOUT )
evaluation/test-suite-sql-eval/exec_eval.py:160
↓ 4 callersFunctionget_from_module
(identifier, module_params, module_name, instantiate=False, kwargs=None)
evaluation/ts_old/spider-master/baselines/nl2code/nn/utils/generic_utils.py:9
↓ 4 callersMethodget_node_type_id
(self, node)
evaluation/ts_old/spider-master/baselines/nl2code/lang/grammar.py:64
↓ 4 callersFunctionget_openai_embed
(model, input)
llm/embedding.py:26
↓ 4 callersFunctionget_sql
(schema, query)
evaluation/ts_old/spider-master/process_sql.py:550
↓ 4 callersFunctionget_sql
(schema, query)
evaluation/test-suite-sql-eval/process_sql.py:554
next →1–100 of 1,466, ranked by callers