MCPcopy Create free account

hub / github.com/bojone/bert_in_keras / functions

Functions49 in github.com/bojone/bert_in_keras

↓ 9 callersFunctionseq_padding
(X, padding=0, maxlen=None)
nl2sql_baseline.py:84
↓ 6 callersFunctionseq_padding
(X, padding=0)
relation_extract.py:112
↓ 4 callersFunctionseq_padding
(X, padding=0)
subject_extract.py:83
↓ 3 callersFunctionread_data
(data_file, table_file)
nl2sql_baseline.py:34
↓ 3 callersFunctionseq_padding
(X, padding=0)
sentiment.py:60
↓ 2 callersMethod__iter__
(self)
sentiment.py:77
↓ 2 callersFunctionextract_entity
(text_in, c_in)
subject_extract.py:191
↓ 2 callersFunctionextract_items
(text_in)
relation_extract.py:272
↓ 2 callersFunctionlist_find
在list1中寻找子串list2,如果找到,返回第一个下标; 如果找不到,返回-1。
relation_extract.py:120
↓ 2 callersFunctionmost_similar
从词表中找最相近的词(当无法全匹配的时候)
nl2sql_baseline.py:95
↓ 2 callersFunctionnl2sql
输入question和headers,转SQL
nl2sql_baseline.py:265
↓ 2 callersFunctionrepair
(d)
relation_extract.py:76
↓ 2 callersFunctionsoftmax
(x)
subject_extract.py:185
↓ 1 callersMethod__iter__
(self)
subject_extract.py:111
↓ 1 callersMethod__iter__
(self)
nl2sql_baseline.py:125
↓ 1 callersMethod__iter__
(self)
relation_extract.py:140
↓ 1 callersFunctionevaluate
(data, tables)
nl2sql_baseline.py:339
↓ 1 callersMethodevaluate
(self)
subject_extract.py:238
↓ 1 callersMethodevaluate
(self)
nl2sql_baseline.py:399
↓ 1 callersMethodevaluate
(self)
relation_extract.py:345
↓ 1 callersFunctionis_equal
判断两个SQL字典是否全匹配
nl2sql_baseline.py:331
↓ 1 callersFunctionlist_find
在list1中寻找子串list2,如果找到,返回第一个下标; 如果找不到,返回-1。
subject_extract.py:91
↓ 1 callersFunctionmost_similar_2
从句子s中找与w最相近的片段, 借助分词工具和ngram的方式尽量精确地确定边界。
nl2sql_baseline.py:104
Method__init__
(self, data, batch_size=32)
subject_extract.py:103
Method__init__
(self)
subject_extract.py:215
Method__init__
(self, data, tables, batch_size=32)
nl2sql_baseline.py:116
Method__init__
(self)
nl2sql_baseline.py:375
Method__init__
(self, data, batch_size=32)
relation_extract.py:132
Method__init__
(self)
relation_extract.py:321
Method__init__
(self, data, batch_size=32)
sentiment.py:69
Method__len__
(self)
subject_extract.py:109
Method__len__
(self)
nl2sql_baseline.py:123
Method__len__
(self)
relation_extract.py:138
Method__len__
(self)
sentiment.py:75
Method_tokenize
(self, text)
subject_extract.py:32
Method_tokenize
(self, text)
nl2sql_baseline.py:70
Method_tokenize
(self, text)
relation_extract.py:31
Method_tokenize
(self, text)
sentiment.py:27
Methodon_batch_begin
第一个epoch用来warmup,第二个epoch把学习率降到最低
subject_extract.py:219
Methodon_batch_begin
第一个epoch用来warmup,第二个epoch把学习率降到最低
nl2sql_baseline.py:380
Methodon_batch_begin
第一个epoch用来warmup,第二个epoch把学习率降到最低
relation_extract.py:326
Methodon_epoch_end
(self, epoch, logs=None)
subject_extract.py:231
Methodon_epoch_end
(self, epoch, logs=None)
nl2sql_baseline.py:392
Methodon_epoch_end
(self, epoch, logs=None)
relation_extract.py:338
Functionseq_gather
seq是[None, seq_len, s_size]的格式, idxs是[None, n]的格式,在seq的第i个序列中选出第idxs[i]个向量, 最终输出[None, n, s_size]的向量。
nl2sql_baseline.py:185
Functionseq_gather
seq是[None, seq_len, s_size]的格式, idxs是[None, 1]的格式,在seq的第i个序列中选出第idxs[i]个向量, 最终输出[None, s_size]的向量。
relation_extract.py:201
Functiontest
(test_data)
subject_extract.py:251
Functiontest
(data, tables, outfile='result.json')
nl2sql_baseline.py:358
Functiontest
输出测试结果
relation_extract.py:375