matchzoo.models.matchlstm

An implementation of Match LSTM Model.

Module Contents

Classes

MatchLSTM

MatchLSTM Model.

class matchzoo.models.matchlstm.MatchLSTM(params: typing.Optional[ParamTable] = None)

Bases: matchzoo.engine.base_model.BaseModel

MatchLSTM Model.

https://github.com/shuohangwang/mprc/blob/master/qa/rankerReader.lua.

Examples

>>> model = MatchLSTM()
>>> model.params['dropout'] = 0.2
>>> model.params['hidden_size'] = 200
>>> model.guess_and_fill_missing_params(verbose=0)
>>> model.build()
classmethod get_default_params(cls) → ParamTable
Returns

model default parameters.

build(self)

Instantiating layers.

forward(self, inputs)

Forward.