Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buppt/ChineseNER
/ functions
Functions
43 in github.com/buppt/ChineseNER
⨍
Functions
43
◇
Types & classes
3
↓ 4 callers
Function
calculate
(x,y,id2word,id2tag,res=[])
tensorflow/utils.py:6
↓ 3 callers
Function
argmax
(vec)
pytorch/BiLSTM_CRF.py:9
↓ 3 callers
Method
next_batch
Return the next 'batch_size' examples from this data set.
tensorflow/Batch.py:46
↓ 2 callers
Method
_get_lstm_features
(self, sentence)
pytorch/BiLSTM_CRF.py:91
↓ 2 callers
Function
calculate
(x,y,id2word,id2tag,res=[])
pytorch/resultCal.py:3
↓ 2 callers
Method
init_hidden
(self)
pytorch/BiLSTM_CRF.py:56
↓ 2 callers
Function
log_sum_exp
(vec)
pytorch/BiLSTM_CRF.py:21
↓ 2 callers
Function
padding
(ids)
tensorflow/utils.py:131
↓ 1 callers
Method
_build_net
(self)
tensorflow/bilstm_crf.py:21
↓ 1 callers
Method
_forward_alg
(self, feats)
pytorch/BiLSTM_CRF.py:60
↓ 1 callers
Method
_score_sentence
(self, feats, tags)
pytorch/BiLSTM_CRF.py:99
↓ 1 callers
Method
_viterbi_decode
(self, feats)
pytorch/BiLSTM_CRF.py:109
↓ 1 callers
Function
data2pkl
()
data/renMinRiBao/data_renmin_word.py:65
↓ 1 callers
Function
data2pkl
()
data/boson/data_util.py:9
↓ 1 callers
Function
extraction
(input_path,output_path,model,sess,word2id,id2tag,batch_size)
tensorflow/utils.py:168
↓ 1 callers
Function
get_entity
(x,y,id2tag)
tensorflow/utils.py:26
↓ 1 callers
Method
neg_log_likelihood
(self, sentence, tags)
pytorch/BiLSTM_CRF.py:153
↓ 1 callers
Function
origin2tag
()
data/boson/data_util.py:95
↓ 1 callers
Function
originHandle
()
data/renMinRiBao/data_renmin_word.py:9
↓ 1 callers
Function
originHandle2
()
data/renMinRiBao/data_renmin_word.py:35
↓ 1 callers
Function
padding_word
(sen)
tensorflow/utils.py:137
↓ 1 callers
Function
sentence2split
()
data/renMinRiBao/data_renmin_word.py:57
↓ 1 callers
Function
tagsplit
()
data/boson/data_util.py:123
↓ 1 callers
Function
test_input
(model,sess,word2id,id2tag,batch_size)
tensorflow/utils.py:143
↓ 1 callers
Function
train
(model,sess,saver,epochs,batch_size,data_train,data_test,id2word,id2tag)
tensorflow/utils.py:68
↓ 1 callers
Function
wordtag
()
data/MSRA/train2pkl.py:7
↓ 1 callers
Function
write_entity
注意,这个函数每次使用是在文档的最后添加新信息。
tensorflow/utils.py:45
Function
X_padding
(words)
data/renMinRiBao/data_renmin_word.py:110
Function
X_padding
(words)
data/boson/data_util.py:54
Function
X_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
Function
calculate3
使用这个函数可以把抽取出的实体写到res.txt文件中,供我们查看。 注意,这个函数每次使用是在文档的最后添加新信息,所以使用时尽量删除res文件后使用。
pytorch/resultCal.py:22
Method
epochs_completed
(self)
tensorflow/Batch.py:43
Method
forward
(self, sentence)
pytorch/BiLSTM_CRF.py:159
Method
num_examples
(self)
tensorflow/Batch.py:39
Function
prepare_sequence
(seq, to_ix)
pytorch/BiLSTM_CRF.py:15
Method
x
(self)
tensorflow/Batch.py:31
Method
y
(self)
tensorflow/Batch.py:35
Function
y_padding
(tags)
data/renMinRiBao/data_renmin_word.py:117
Function
y_padding
(tags)
data/boson/data_util.py:61
Function
y_padding
把 tags 转为 id 形式, 并自动补全位 max_len 长度。
data/MSRA/train2pkl.py:115