Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bojone/el-2019
/ functions
Functions
28 in github.com/bojone/el-2019
⨍
Functions
28
◇
Types & classes
5
↓ 11 callers
Function
seq_padding
(X, padding=0)
el.py:204
↓ 4 callers
Function
isin_feature
(text_a, text_b)
el.py:213
↓ 4 callers
Function
sent2vec
S格式:[[w1, w2]]
el.py:36
↓ 4 callers
Function
tokenize
如果pyhanlp不好用,自己修改tokenize函数, 换成自己的分词工具即可。
el.py:29
↓ 3 callers
Function
search_subjects
实现最大匹配算法
el.py:89
↓ 2 callers
Function
extract_items
(text_in)
el.py:546
↓ 2 callers
Function
is_match_objects
(text, object_regex)
el.py:225
↓ 2 callers
Method
mask
(self, x, mask, mode='mul')
el.py:345
↓ 1 callers
Method
__init__
(self)
el.py:626
↓ 1 callers
Method
__iter__
(self)
el.py:241
↓ 1 callers
Method
apply_ema_weights
备份原模型权重,然后将平均权重应用到模型上去。
el.py:530
↓ 1 callers
Method
evaluate
(self)
el.py:638
↓ 1 callers
Method
initialize
ema_weights初始化跟原模型初始化一致。
el.py:525
↓ 1 callers
Method
inject
添加更新算子到model.metrics_updates。
el.py:518
↓ 1 callers
Method
reset_old_weights
恢复模型到旧权重。
el.py:536
Method
__call__
(self, inputs)
el.py:414
Method
__init__
(self, data, batch_size=64)
el.py:233
Method
__init__
(self, nb_head, size_per_head, **kwargs)
el.py:324
Method
__init__
(self, layer)
el.py:402
Method
__init__
(self, model, momentum=0.9999)
el.py:514
Method
__len__
(self)
el.py:239
Method
build
(self, input_shape)
el.py:329
Method
call
(self, inputs)
el.py:354
Method
compute_output_shape
(self, input_shape)
el.py:385
Method
on_epoch_end
(self, epoch, logs=None)
el.py:629
Method
reverse_sequence
这里的mask.shape是[batch_size, seq_len, 1]
el.py:407
Function
seq_maxpool
seq是[None, seq_len, s_size]的格式, mask是[None, seq_len, 1]的格式,先除去mask部分, 然后再做maxpooling。
el.py:389
Function
test
(test_data)
el.py:614