matchzoo.preprocessors.dssm_preprocessor

DSSM Preprocessor.

Module Contents

class matchzoo.preprocessors.dssm_preprocessor.DSSMPreprocessor(with_word_hashing:bool=True)

Bases: matchzoo.engine.base_preprocessor.BasePreprocessor

DSSM Model preprocessor.

with_word_hashing

with_word_hashing getter.

fit(self, data_pack:DataPack, verbose:int=1)

Fit pre-processing context for transformation.

Parameters:
  • verbose – Verbosity.
  • data_pack – data_pack to be preprocessed.
Returns:

class:DSSMPreprocessor instance.

transform(self, data_pack:DataPack, verbose:int=1)

Apply transformation on data, create tri-letter representation.

Parameters:
  • data_pack – Inputs to be preprocessed.
  • verbose – Verbosity.
Returns:

Transformed data as DataPack object.

classmethod _default_units(cls)

Prepare needed process units.