MCPcopy Create free account

hub / github.com/alibaba-edu/simple-effective-text-matching / functions

Functions114 in github.com/alibaba-edu/simple-effective-text-matching

↓ 10 callersFunctiondense
(x, units, activation=None, name='dense')
src/modules/__init__.py:47
↓ 8 callersFunctionsamples2steps
(n)
src/utils/params.py:125
↓ 6 callersMethodkeys
(self)
src/utils/vocab.py:45
↓ 6 callersMethodload
(cls, sess, model_path)
src/model.py:235
↓ 5 callersFunctioncopy
(src, tgt)
data/prepare_wikiqa.py:21
↓ 5 callersMethodsave
(self, states, name=None)
src/model.py:216
↓ 5 callersMethodupdate
(self, sess, batch)
src/model.py:142
↓ 4 callersMethod_format_number
(x)
src/utils/logger.py:61
↓ 4 callersMethodadd_symbol
(self, symbol)
src/utils/vocab.py:51
↓ 4 callersMethodindex
(self, symbol)
src/utils/vocab.py:40
↓ 4 callersFunctionload_data
(data_dir, split=None)
src/utils/loader.py:21
↓ 4 callersMethodnewline
(self)
src/utils/logger.py:81
↓ 3 callersMethodpad
()
src/utils/vocab.py:201
↓ 3 callersMethodpre_process
(self, data, training=True)
src/interface.py:62
↓ 3 callersMethodprocess_data
(self, batch, training)
src/model.py:197
↓ 2 callersFunction_add_param
(args, x: dict)
src/utils/params.py:71
↓ 2 callersMethod_attention
(self, a, b, t, _)
src/modules/alignment.py:32
↓ 2 callersFunction_load_param
(root, file: str)
src/utils/params.py:86
↓ 2 callersFunctionapply_bias
(x, name='bias')
src/modules/__init__.py:40
↓ 2 callersMethodbuild
(cls, words, lower=False, min_df=1, max_tokens=float('inf'), pretrained_embeddings=None, dump_fi
src/utils/vocab.py:142
↓ 2 callersFunctionget_weight
(shape, gain=np.sqrt(2), weight_norm=True, fan_in=None, name='weight')
src/modules/__init__.py:25
↓ 2 callersMethodload
(cls, file)
src/utils/vocab.py:229
↓ 2 callersMethodnum_parameters
(exclude_embed=False)
src/model.py:251
↓ 2 callersFunctiontokenize
(string)
data/prepare_scitail.py:32
↓ 2 callersMethodunk
()
src/utils/vocab.py:119
↓ 2 callersMethodupdate
(self, stats)
src/utils/logger.py:64
↓ 2 callersMethodvalidate_spec
(self)
src/utils/vocab.py:126
↓ 1 callersMethod__init__
(self, args)
src/modules/fusion.py:28
↓ 1 callersMethod__init__
(self, args)
src/utils/logger.py:23
↓ 1 callersMethod__init__
(self)
src/utils/vocab.py:133
↓ 1 callersFunction_default_name
(obj_class)
src/utils/registry.py:27
↓ 1 callersMethod_features
(self, a, b)
src/modules/prediction.py:31
↓ 1 callersFunction_parse_args
(root, config)
src/utils/params.py:58
↓ 1 callersFunction_post_process
(args: Object)
src/utils/params.py:95
↓ 1 callersFunction_validate_param
(name)
src/utils/params.py:155
↓ 1 callersMethodbuild_model
(self, sess)
src/trainer.py:100
↓ 1 callersFunctionconv1d
(x, filters, kernel_size, activation=None, name='conv1d')
src/modules/__init__.py:63
↓ 1 callersFunctiondecorator
(fn, registration_name=None)
src/utils/registry.py:18
↓ 1 callersMethodevaluate
(self)
src/evaluator.py:30
↓ 1 callersMethodevaluate
(self, sess, data)
src/model.py:160
↓ 1 callersMethodget_available_gpus
()
src/model.py:264
↓ 1 callersMethodget_loss
(logits, target)
src/model.py:212
↓ 1 callersMethodload_embedding_vocab
(file, lower)
src/utils/vocab.py:190
↓ 1 callersFunctionload_embeddings
(file, vocab, dim, lower, mode='freq')
src/utils/loader.py:41
↓ 1 callersMethodload_embeddings
generate embeddings suited for the current vocab or load previously cached ones.
src/interface.py:48
↓ 1 callersMethodlog_eval
(self, valid_stats)
src/utils/logger.py:84
↓ 1 callersFunctionmain
()
train.py:25
↓ 1 callersFunctionmain
()
evaluate.py:21
↓ 1 callersMethodmake_batch
(self, batch, with_target=True)
src/interface.py:98
↓ 1 callersMethodpad_symbol
()
src/utils/vocab.py:213
↓ 1 callersMethodpadding
(samples, min_len=1)
src/interface.py:107
↓ 1 callersMethodprocess_sample
(self, sample, with_target=True)
src/interface.py:72
↓ 1 callersMethodset_
(sess, value)
src/modules/embedding.py:26
↓ 1 callersMethodset_embeddings
(self, sess, embeddings)
src/model.py:260
↓ 1 callersMethodset_epoch
(self, epoch)
src/utils/logger.py:56
↓ 1 callersMethodshuffle_batch
(self, data)
src/interface.py:90
↓ 1 callersMethodtrain
(self)
src/trainer.py:36
↓ 1 callersMethodunk
()
src/utils/vocab.py:205
↓ 1 callersMethodunk_symbol
()
src/utils/vocab.py:123
↓ 1 callersFunctionvalidate_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
Functionacc
(outputs)
src/utils/metrics.py:30
Functionauc
(outputs)
src/utils/metrics.py:48
Functionaugmented_residual
(x, res, i)
src/modules/connection.py:39
Methodbuild
(cls, symbols, min_counts=1, dump_filtered=None, log=print)
src/utils/vocab.py:57
Methodemit
(self, record)
src/utils/logger.py:118
Functionf1
(outputs)
src/utils/metrics.py:39
Functiongelu
(x)
src/modules/__init__.py:21
Methodindex
(self, symbol)
src/utils/vocab.py:115
Methodindices
(self)
src/utils/vocab.py:48
Methodload
(cls, file)
src/utils/vocab.py:93
next →1–100 of 114, ranked by callers