capreolus.reranker.TFVanillaBert

Module Contents

Classes

TFVanillaBert_Class(extractor, config, *args, **kwargs)
TFVanillaBERT()
capreolus.reranker.TFVanillaBert.logger[source]
class capreolus.reranker.TFVanillaBert.TFVanillaBert_Class(extractor, config, *args, **kwargs)[source]

Bases: tensorflow.keras.Model

call(self, x, **kwargs)[source]

During training, both posdoc and negdoc are passed During eval, both posdoc and negdoc are passed but negdoc would be a zero tensor Whether negdoc is a legit doc tensor or a dummy zero tensor is determined by which sampler is used (eg: sampler.TrainDataset) as well as the extractor (eg: EmbedText)

class capreolus.reranker.TFVanillaBert.TFVanillaBERT[source]

Bases: capreolus.reranker.Reranker

module_name = TFVanillaBERT[source]
dependencies[source]
config_spec[source]
build_model(self)[source]