matchzoo.models.anmm
¶
An implementation of aNMM Model.
Module Contents¶
-
class
matchzoo.models.anmm.
aNMM
¶ Bases:
matchzoo.engine.base_model.BaseModel
aNMM: Ranking Short Answer Texts with Attention-Based Neural Matching Model.
Examples
>>> model = aNMM() >>> model.params['embedding_output_dim'] = 300 >>> model.guess_and_fill_missing_params(verbose=0) >>> model.build()
-
classmethod
get_default_params
(cls)¶ Returns: model default parameters.
-
build
(self)¶ Build model structure.
aNMM: Ranking Short Answer Texts with Attention-Based Neural Matching Model.
-
forward
(self, inputs)¶ Forward.
-
classmethod