matchzoo.models.matchlstm

An implementation of Match LSTM Model.

Module Contents

class matchzoo.models.matchlstm.MatchLSTM

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)
Returns:model default parameters.
classmethod get_default_padding_callback(cls)
Returns:Default padding callback.
build(self)

Instantiating layers.

forward(self, inputs)

Forward.