MCPcopy Create free account

hub / github.com/Pelhans/ZNLP / functions

Functions130 in github.com/Pelhans/ZNLP

↓ 18 callersMethodrun
Run total dataset
lexical_analysis/nnetwork/model/net_work.py:85
↓ 15 callersMethodadd
(self, n, values=[])
dependency/utils/general_utils.py:197
↓ 12 callersFunctionrandom_uniform_initializer
(shape, name, val, trainable=True)
dependency/bin/params_init.py:5
↓ 6 callersFunctiondump_pickle
(data, path)
dependency/utils/general_utils.py:74
↓ 6 callersMethodget_child_by_index_and_depth
(self, token, index, direction, depth)
dependency/utils/feature_extraction.py:197
↓ 6 callersFunctionget_pickle
(path)
dependency/utils/general_utils.py:69
↓ 6 callersMethodupdate
Updates the progress bar. # Arguments current: Index of current step. values: List of tuples (name, value_for
dependency/utils/general_utils.py:118
↓ 5 callersMethodcompute_dependencies
(self, sess, data, dataset)
dependency/bin/parser_model.py:255
↓ 5 callersMethodget_UAS
(self, data)
dependency/bin/parser_model.py:327
↓ 5 callersFunctionhighlight_string
(temp)
dependency/bin/parser_model.py:406
↓ 5 callersFunctionminibatch
(data, minibatch_idx)
dependency/utils/general_utils.py:55
↓ 5 callersFunctionprocessToken
(token, collect, out, endn)
tools/get_cws_file.py:16
↓ 4 callersMethodpredict
首先将一个sentence根据标点和英文符号/字符串划分成多个片段text,然后对每一个片段做词性标注。
lexical_analysis/nnetwork/predict.py:48
↓ 4 callersFunctionxavier_initializer
(shape, name, trainable=True)
dependency/bin/params_init.py:12
↓ 3 callersFunctionget_vocab_dict
(items)
dependency/utils/general_utils.py:79
↓ 3 callersFunctionload_datasets
(list_word, list_pos, load_file = True, load_existing_dump=False)
dependency/utils/feature_extraction.py:566
↓ 3 callersMethodread_data
(self, data_lines)
dependency/utils/feature_extraction.py:545
↓ 3 callersMethodreset_to_initial_state
(self)
dependency/utils/feature_extraction.py:261
↓ 3 callersFunctionshow_result
(tags)
lexical_analysis/nnetwork/predict.py:90
↓ 3 callersMethodtagging
(self, text, sen_words, id2tag, len_sen)
lexical_analysis/nnetwork/predict.py:72
↓ 2 callersMethodadd_embedding
(self)
dependency/bin/parser_model.py:70
↓ 2 callersMethodbi_lstm
build the bi-LSTMs network. Return the y_pred
lexical_analysis/nnetwork/model/net_work.py:33
↓ 2 callersMethodcreate_feed_dict
(self, inputs_batch, labels_batch=None, keep_prob=1)
dependency/bin/parser_model.py:44
↓ 2 callersMethodcreate_feed_dict
(self, inputs_batch, labels_batch=None)
dependency/bin/base_model.py:17
↓ 2 callersMethodextract_for_current_state
(self, sentence, word2idx, pos2idx, dep2idx, idx2dep)
dependency/utils/feature_extraction.py:443
↓ 2 callersMethodget_legal_labels
(self)
dependency/utils/feature_extraction.py:213
↓ 2 callersFunctionhighlight_string
(temp)
znlp/dparser.py:26
↓ 2 callersFunctionhighlight_string
(temp)
dependency/bin/parser_test.py:23
↓ 2 callersMethodlstm_cell
(self)
lexical_analysis/nnetwork/model/net_work.py:29
↓ 2 callersFunctionmerge_cws
(cws_tag)
lexical_analysis/nnetwork/pipeline/pipeline.py:47
↓ 2 callersMethodread_conll
(self, token_lines)
dependency/utils/feature_extraction.py:512
↓ 2 callersFunctionread_list
(list_str)
lexical_analysis/nnetwork/utils/get_pkl.py:86
↓ 2 callersMethodupdate_child_dependencies
(self, curr_transition)
dependency/utils/feature_extraction.py:180
↓ 2 callersMethodupdate_state_by_transition
(self, transition, gold=True)
dependency/utils/feature_extraction.py:242
↓ 2 callersFunctionvisualize_sample_embeddings
(sess, log_dir, words, word2idx, embeddings)
dependency/utils/tf_utils.py:8
↓ 1 callersMethodadd_accuracy_op
(self, pred)
dependency/bin/base_model.py:29
↓ 1 callersMethodadd_cube_prediction_op
(self)
dependency/bin/parser_model.py:99
↓ 1 callersMethodadd_loss_op
(self, pred)
dependency/bin/base_model.py:25
↓ 1 callersMethodadd_placeholders
(self)
dependency/bin/base_model.py:13
↓ 1 callersMethodadd_training_op
(self, loss)
dependency/bin/base_model.py:33
↓ 1 callersMethodanalyze
Return a list of three string output:cws, pos, ner
lexical_analysis/nnetwork/pipeline/pipeline.py:31
↓ 1 callersMethodbias_variable
Create a bias variable with appropriate initialization.
lexical_analysis/nnetwork/model/net_work.py:24
↓ 1 callersMethodbuild
(self)
dependency/bin/base_model.py:58
↓ 1 callersFunctionbuild_dict
(df_data)
lexical_analysis/nnetwork/utils/get_pkl.py:44
↓ 1 callersMethodbuild_embedding_matrix
(self)
dependency/utils/feature_extraction.py:349
↓ 1 callersMethodbuild_vocab
(self)
dependency/utils/feature_extraction.py:303
↓ 1 callersMethodclear_children_info
(self)
dependency/utils/feature_extraction.py:270
↓ 1 callersMethodclear_prediction_dependencies
(self)
dependency/utils/feature_extraction.py:266
↓ 1 callersMethodconvert_data_to_ids
(self)
dependency/utils/feature_extraction.py:385
↓ 1 callersMethodcreate_instances_for_data
(self, data, word2idx, pos2idx, dep2idx, idx2dep)
dependency/utils/feature_extraction.py:469
↓ 1 callersFunctiondecode
(cfg, y_pred, id2tag)
lexical_analysis/nnetwork/utils/decode.py:13
↓ 1 callersMethodextract_children_from_stack
(self, sentence, num_stack_words=2)
dependency/utils/feature_extraction.py:420
↓ 1 callersMethodextract_from_stack_and_buffer
(self, sentence, num_words=3)
dependency/utils/feature_extraction.py:409
↓ 1 callersMethodfit
(self, sess, saver, config, dataset, train_writer, valid_writer, merged)
dependency/bin/parser_model.py:380
↓ 1 callersFunctionget_dict
(filename)
lexical_analysis/nnetwork/utils/get_pkl.py:25
↓ 1 callersFunctionget_minibatches
Iterates through the provided data one minibatch at at time. You can use this function to iterate through data in minibatches as follows:
dependency/utils/general_utils.py:7
↓ 1 callersMethodget_transition_from_current_state
(self)
dependency/utils/feature_extraction.py:223
↓ 1 callersFunctionget_zy
(ltags)
lexical_analysis/nnetwork/utils/get_pkl.py:89
↓ 1 callersMethodl2_loss_sum
(self, tvars)
dependency/bin/parser_model.py:198
↓ 1 callersFunctionmain
(argc, argv)
tools/get_cws_file.py:92
↓ 1 callersFunctionmain
Code for PFR2014
tools/pre_merge14.py:11
↓ 1 callersFunctionmain
()
lexical_analysis/nnetwork/predict.py:97
↓ 1 callersFunctionmain
()
lexical_analysis/nnetwork/pipeline/pipeline.py:66
↓ 1 callersFunctionmain
()
znlp/dparser.py:79
↓ 1 callersFunctionmain
(flag, load_existing_dump=True)
dependency/bin/parser_model.py:412
↓ 1 callersFunctionmain
()
dependency/bin/parser_test.py:76
↓ 1 callersMethodnext_batch
(self, batch_size)
lexical_analysis/nnetwork/model/get_data.py:50
↓ 1 callersFunctionpadding
(input, map_dict)
lexical_analysis/nnetwork/utils/get_pkl.py:69
↓ 1 callersMethodpredict
(self, model, dataset )
znlp/dparser.py:63
↓ 1 callersMethodpredict
(self, model, dataset )
dependency/bin/parser_test.py:60
↓ 1 callersMethodprint_conll
(self, token_num, token_dep)
znlp/dparser.py:70
↓ 1 callersMethodprint_conll
(self, token_num, token_dep)
dependency/bin/parser_test.py:67
↓ 1 callersMethodprint_trainable_varibles
(self)
dependency/bin/base_model.py:49
↓ 1 callersFunctionprocessLine
(line, out)
tools/get_cws_file.py:48
↓ 1 callersMethodread_conll_test
(self, list_word, list_pos)
dependency/utils/feature_extraction.py:528
↓ 1 callersMethodread_data_test
(self, list_word, list_pos)
dependency/utils/feature_extraction.py:559
↓ 1 callersFunctionread_file
(filename="./data/test1")
dependency/bin/get_sen.py:9
↓ 1 callersMethodreset_predicted_head_id
(self)
dependency/utils/feature_extraction.py:143
↓ 1 callersMethodrun_epoch
(self, sess, config, dataset, train_writer, merged)
dependency/bin/parser_model.py:360
↓ 1 callersMethodrun_valid_epoch
(self, sess, dataset)
dependency/bin/parser_model.py:371
↓ 1 callersFunctionsave_data
(data_type, X, y)
lexical_analysis/nnetwork/utils/get_pkl.py:126
↓ 1 callersFunctionsave_dict
(word2id, id2word, tag2id, id2tag)
lexical_analysis/nnetwork/utils/get_pkl.py:131
↓ 1 callersFunctionseg_file
(file_name)
lexical_analysis/crfpos++/transfer_format.py:28
↓ 1 callersFunctiontext_to_ids
(df_data, word2id, tag2id)
lexical_analysis/nnetwork/utils/get_pkl.py:78
↓ 1 callersFunctiontrain
()
lexical_analysis/nnetwork/train.py:30
↓ 1 callersMethodtrain_on_batch
(self, sess, inputs_batch, labels_batch, merged)
dependency/bin/parser_model.py:247
↓ 1 callersFunctiontransfer
(file_name, output_name)
lexical_analysis/crfpos++/transfer_format.py:6
↓ 1 callersFunctionviterbi
维特比译码:除了第一层以外,每一层有4个节点。 计算当前层(第一层不需要计算)四个节点的最短路径: 对于本层的每一个节点,计算出路径来自上一层的各个节点的新的路径长度(概率)。保留最大值(最短路径)。 上一层每个节点的路径保存在 paths 中。计算本层
lexical_analysis/nnetwork/utils/decode.py:25
↓ 1 callersMethodweight_variable
Create a weight variable with appropriate initialization.
lexical_analysis/nnetwork/model/net_work.py:19
↓ 1 callersMethodwrite_gradient_summaries
(self, grad_tvars)
dependency/bin/parser_model.py:59
MethodX
(self)
lexical_analysis/nnetwork/model/get_data.py:35
Method__init__
(self,ckpt_path, scope_name)
lexical_analysis/nnetwork/predict.py:28
Method__init__
(self, X, y, shuffle=False)
lexical_analysis/nnetwork/model/get_data.py:18
Method__init__
(self, cfg)
lexical_analysis/nnetwork/model/net_work.py:13
Method__init__
(self)
lexical_analysis/nnetwork/pipeline/pipeline.py:22
Method__init__
(self, word, pos, ckpt_path = ckpt_path)
znlp/dparser.py:32
Method__init__
(self, model_type='ner')
znlp/loadModel.py:15
Method__init__
(self, target, width=30, verbose=1)
dependency/utils/general_utils.py:108
Method__init__
(self, token_id, word, pos, dep, head_id)
dependency/utils/feature_extraction.py:112
Method__init__
(self, tokens)
dependency/utils/feature_extraction.py:153
next →1–100 of 130, ranked by callers