Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba-edu/simple-effective-text-matching
/ functions
Functions
114 in github.com/alibaba-edu/simple-effective-text-matching
⨍
Functions
114
◇
Types & classes
22
↓ 10 callers
Function
dense
(x, units, activation=None, name='dense')
src/modules/__init__.py:47
↓ 8 callers
Function
samples2steps
(n)
src/utils/params.py:125
↓ 6 callers
Method
keys
(self)
src/utils/vocab.py:45
↓ 6 callers
Method
load
(cls, sess, model_path)
src/model.py:235
↓ 5 callers
Function
copy
(src, tgt)
data/prepare_wikiqa.py:21
↓ 5 callers
Method
save
(self, states, name=None)
src/model.py:216
↓ 5 callers
Method
update
(self, sess, batch)
src/model.py:142
↓ 4 callers
Method
_format_number
(x)
src/utils/logger.py:61
↓ 4 callers
Method
add_symbol
(self, symbol)
src/utils/vocab.py:51
↓ 4 callers
Method
index
(self, symbol)
src/utils/vocab.py:40
↓ 4 callers
Function
load_data
(data_dir, split=None)
src/utils/loader.py:21
↓ 4 callers
Method
newline
(self)
src/utils/logger.py:81
↓ 3 callers
Method
pad
()
src/utils/vocab.py:201
↓ 3 callers
Method
pre_process
(self, data, training=True)
src/interface.py:62
↓ 3 callers
Method
process_data
(self, batch, training)
src/model.py:197
↓ 2 callers
Function
_add_param
(args, x: dict)
src/utils/params.py:71
↓ 2 callers
Method
_attention
(self, a, b, t, _)
src/modules/alignment.py:32
↓ 2 callers
Function
_load_param
(root, file: str)
src/utils/params.py:86
↓ 2 callers
Function
apply_bias
(x, name='bias')
src/modules/__init__.py:40
↓ 2 callers
Method
build
(cls, words, lower=False, min_df=1, max_tokens=float('inf'), pretrained_embeddings=None, dump_fi
src/utils/vocab.py:142
↓ 2 callers
Function
get_weight
(shape, gain=np.sqrt(2), weight_norm=True, fan_in=None, name='weight')
src/modules/__init__.py:25
↓ 2 callers
Method
load
(cls, file)
src/utils/vocab.py:229
↓ 2 callers
Method
num_parameters
(exclude_embed=False)
src/model.py:251
↓ 2 callers
Function
tokenize
(string)
data/prepare_scitail.py:32
↓ 2 callers
Method
unk
()
src/utils/vocab.py:119
↓ 2 callers
Method
update
(self, stats)
src/utils/logger.py:64
↓ 2 callers
Method
validate_spec
(self)
src/utils/vocab.py:126
↓ 1 callers
Method
__init__
(self, args)
src/modules/fusion.py:28
↓ 1 callers
Method
__init__
(self, args)
src/utils/logger.py:23
↓ 1 callers
Method
__init__
(self)
src/utils/vocab.py:133
↓ 1 callers
Function
_default_name
(obj_class)
src/utils/registry.py:27
↓ 1 callers
Method
_features
(self, a, b)
src/modules/prediction.py:31
↓ 1 callers
Function
_parse_args
(root, config)
src/utils/params.py:58
↓ 1 callers
Function
_post_process
(args: Object)
src/utils/params.py:95
↓ 1 callers
Function
_validate_param
(name)
src/utils/params.py:155
↓ 1 callers
Method
build_model
(self, sess)
src/trainer.py:100
↓ 1 callers
Function
conv1d
(x, filters, kernel_size, activation=None, name='conv1d')
src/modules/__init__.py:63
↓ 1 callers
Function
decorator
(fn, registration_name=None)
src/utils/registry.py:18
↓ 1 callers
Method
evaluate
(self)
src/evaluator.py:30
↓ 1 callers
Method
evaluate
(self, sess, data)
src/model.py:160
↓ 1 callers
Method
get_available_gpus
()
src/model.py:264
↓ 1 callers
Method
get_loss
(logits, target)
src/model.py:212
↓ 1 callers
Method
load_embedding_vocab
(file, lower)
src/utils/vocab.py:190
↓ 1 callers
Function
load_embeddings
(file, vocab, dim, lower, mode='freq')
src/utils/loader.py:41
↓ 1 callers
Method
load_embeddings
generate embeddings suited for the current vocab or load previously cached ones.
src/interface.py:48
↓ 1 callers
Method
log_eval
(self, valid_stats)
src/utils/logger.py:84
↓ 1 callers
Function
main
()
train.py:25
↓ 1 callers
Function
main
()
evaluate.py:21
↓ 1 callers
Method
make_batch
(self, batch, with_target=True)
src/interface.py:98
↓ 1 callers
Method
pad_symbol
()
src/utils/vocab.py:213
↓ 1 callers
Method
padding
(samples, min_len=1)
src/interface.py:107
↓ 1 callers
Method
process_sample
(self, sample, with_target=True)
src/interface.py:72
↓ 1 callers
Method
set_
(sess, value)
src/modules/embedding.py:26
↓ 1 callers
Method
set_embeddings
(self, sess, embeddings)
src/model.py:260
↓ 1 callers
Method
set_epoch
(self, epoch)
src/utils/logger.py:56
↓ 1 callers
Method
shuffle_batch
(self, data)
src/interface.py:90
↓ 1 callers
Method
train
(self)
src/trainer.py:36
↓ 1 callers
Method
unk
()
src/utils/vocab.py:205
↓ 1 callers
Method
unk_symbol
()
src/utils/vocab.py:123
↓ 1 callers
Function
validate_params
validate params after interface initialization
src/utils/params.py:146
Method
__call__
(self, a, b, mask_a, mask_b, dropout_keep_prob)
src/network.py:39
Method
__call__
(self, x, align, _)
src/modules/fusion.py:32
Method
__call__
(self, x, align, dropout_keep_prob)
src/modules/fusion.py:44
Method
__call__
(self, x, mask, dropout_keep_prob, name='encoder')
src/modules/encoder.py:25
Method
__call__
(self, a, b, dropout_keep_prob, name='prediction')
src/modules/prediction.py:34
Method
__call__
(self, x, dropout_keep_prob)
src/modules/embedding.py:35
Method
__call__
(self, a, b, mask_a, mask_b, dropout_keep_prob, name='alignment')
src/modules/alignment.py:35
Method
__call__
(self, msg)
src/utils/logger.py:110
Method
__contains__
(self, item)
src/utils/vocab.py:37
Method
__float__
(self)
src/utils/logger.py:144
Method
__format__
(self, spec)
src/utils/logger.py:141
Method
__getitem__
(self, index)
src/utils/vocab.py:32
Method
__init__
(self, args)
src/network.py:28
Method
__init__
(self, model_path, data_file)
src/evaluator.py:26
Method
__init__
(self, args, log=None)
src/interface.py:25
Method
__init__
(self, args)
src/trainer.py:32
Method
__init__
(self, args, session, updates=None)
src/model.py:37
Method
__init__
(self, args)
src/modules/fusion.py:40
Method
__init__
(self, args)
src/modules/encoder.py:22
Method
__init__
(self, args)
src/modules/prediction.py:28
Method
__init__
(self, args)
src/modules/embedding.py:21
Method
__init__
(self, args)
src/modules/alignment.py:29
Method
__init__
(self, level=logging.NOTSET)
src/utils/logger.py:115
Method
__init__
(self, beta=0.99)
src/utils/logger.py:129
Method
__init__
(self)
src/utils/vocab.py:21
Method
__init__
(self, validate=True)
src/utils/vocab.py:104
Method
__len__
(self)
src/utils/vocab.py:29
Method
_attention
(self, a, b, t, dropout_keep_prob)
src/modules/alignment.py:57
Method
_features
(self, a, b)
src/modules/prediction.py:46
Method
_features
(self, a, b)
src/modules/prediction.py:52
Function
acc
(outputs)
src/utils/metrics.py:30
Function
auc
(outputs)
src/utils/metrics.py:48
Function
augmented_residual
(x, res, i)
src/modules/connection.py:39
Method
build
(cls, symbols, min_counts=1, dump_filtered=None, log=print)
src/utils/vocab.py:57
Method
emit
(self, record)
src/utils/logger.py:118
Function
f1
(outputs)
src/utils/metrics.py:39
Function
gelu
(x)
src/modules/__init__.py:21
Method
index
(self, symbol)
src/utils/vocab.py:115
Method
indices
(self)
src/utils/vocab.py:48
Method
load
(cls, file)
src/utils/vocab.py:93
next →
1–100 of 114, ranked by callers