matchzoo.models.anmm
¶
An implementation of aNMM Model.
Module Contents¶
Classes¶
aNMM: Ranking Short Answer Texts with Attention-Based Neural Matching Model. |
-
class
matchzoo.models.anmm.
aNMM
(params: typing.Optional[ParamTable] = None)¶ 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) → ParamTable¶ - 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