capreolus.reranker.TFVanillaBert
¶
Module Contents¶
Classes¶
TFVanillaBert_Class (extractor, config, *args, **kwargs) |
|
TFVanillaBERT (config=None, provide=None, share_dependency_objects=False, build=True) |
TensorFlow implementation of Vanilla BERT. |
-
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
(config=None, provide=None, share_dependency_objects=False, build=True)[source]¶ Bases:
capreolus.reranker.Reranker
TensorFlow implementation of Vanilla BERT.