MCPcopy Create free account

hub / github.com/buppt/ChineseNER / functions

Functions43 in github.com/buppt/ChineseNER

↓ 4 callersFunctioncalculate
(x,y,id2word,id2tag,res=[])
tensorflow/utils.py:6
↓ 3 callersFunctionargmax
(vec)
pytorch/BiLSTM_CRF.py:9
↓ 3 callersMethodnext_batch
Return the next 'batch_size' examples from this data set.
tensorflow/Batch.py:46
↓ 2 callersMethod_get_lstm_features
(self, sentence)
pytorch/BiLSTM_CRF.py:91
↓ 2 callersFunctioncalculate
(x,y,id2word,id2tag,res=[])
pytorch/resultCal.py:3
↓ 2 callersMethodinit_hidden
(self)
pytorch/BiLSTM_CRF.py:56
↓ 2 callersFunctionlog_sum_exp
(vec)
pytorch/BiLSTM_CRF.py:21
↓ 2 callersFunctionpadding
(ids)
tensorflow/utils.py:131
↓ 1 callersMethod_build_net
(self)
tensorflow/bilstm_crf.py:21
↓ 1 callersMethod_forward_alg
(self, feats)
pytorch/BiLSTM_CRF.py:60
↓ 1 callersMethod_score_sentence
(self, feats, tags)
pytorch/BiLSTM_CRF.py:99
↓ 1 callersMethod_viterbi_decode
(self, feats)
pytorch/BiLSTM_CRF.py:109
↓ 1 callersFunctiondata2pkl
()
data/renMinRiBao/data_renmin_word.py:65
↓ 1 callersFunctiondata2pkl
()
data/boson/data_util.py:9
↓ 1 callersFunctionextraction
(input_path,output_path,model,sess,word2id,id2tag,batch_size)
tensorflow/utils.py:168
↓ 1 callersFunctionget_entity
(x,y,id2tag)
tensorflow/utils.py:26
↓ 1 callersMethodneg_log_likelihood
(self, sentence, tags)
pytorch/BiLSTM_CRF.py:153
↓ 1 callersFunctionorigin2tag
()
data/boson/data_util.py:95
↓ 1 callersFunctionoriginHandle
()
data/renMinRiBao/data_renmin_word.py:9
↓ 1 callersFunctionoriginHandle2
()
data/renMinRiBao/data_renmin_word.py:35
↓ 1 callersFunctionpadding_word
(sen)
tensorflow/utils.py:137
↓ 1 callersFunctionsentence2split
()
data/renMinRiBao/data_renmin_word.py:57
↓ 1 callersFunctiontagsplit
()
data/boson/data_util.py:123
↓ 1 callersFunctiontest_input
(model,sess,word2id,id2tag,batch_size)
tensorflow/utils.py:143
↓ 1 callersFunctiontrain
(model,sess,saver,epochs,batch_size,data_train,data_test,id2word,id2tag)
tensorflow/utils.py:68
↓ 1 callersFunctionwordtag
()
data/MSRA/train2pkl.py:7
↓ 1 callersFunctionwrite_entity
注意,这个函数每次使用是在文档的最后添加新信息。
tensorflow/utils.py:45
FunctionX_padding
(words)
data/renMinRiBao/data_renmin_word.py:110
FunctionX_padding
(words)
data/boson/data_util.py:54
FunctionX_padding
把 words 转为 id 形式,并自动补全位 max_len 长度。
data/MSRA/train2pkl.py:107
Method__init__
(self, X, y, shuffle=False)
tensorflow/Batch.py:14
Method__init__
(self,config,embedding_pretrained,dropout_keep=1)
tensorflow/bilstm_crf.py:6
Method__init__
(self, vocab_size, tag_to_ix, embedding_dim, hidden_dim)
pytorch/BiLSTM_CRF.py:29
Functioncalculate3
使用这个函数可以把抽取出的实体写到res.txt文件中,供我们查看。 注意,这个函数每次使用是在文档的最后添加新信息,所以使用时尽量删除res文件后使用。
pytorch/resultCal.py:22
Methodepochs_completed
(self)
tensorflow/Batch.py:43
Methodforward
(self, sentence)
pytorch/BiLSTM_CRF.py:159
Methodnum_examples
(self)
tensorflow/Batch.py:39
Functionprepare_sequence
(seq, to_ix)
pytorch/BiLSTM_CRF.py:15
Methodx
(self)
tensorflow/Batch.py:31
Methody
(self)
tensorflow/Batch.py:35
Functiony_padding
(tags)
data/renMinRiBao/data_renmin_word.py:117
Functiony_padding
(tags)
data/boson/data_util.py:61
Functiony_padding
把 tags 转为 id 形式, 并自动补全位 max_len 长度。
data/MSRA/train2pkl.py:115