<s> __title__ = '<STR_LIT>' <EOL> __version__ = '<STR_LIT>' <EOL> __author__ = '<STR_LIT>' <EOL> import pickle <EOL> import bz2 <EOL> from pydsm . model import CooccurrenceDSM <EOL> from pydsm . model import RandomIndexing <EOL> from pydsm . indexmatrix import IndexMatrix <EOL> def load ( filepath ) : <EOL> return pickle . load ( bz2 . open ( filepath , '<STR_LIT:rb>' ) ) <EOL> def build ( model , <EOL> corpus , <EOL> config = None , <EOL> ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if config is None : <EOL> config = { } <EOL> config = dict ( config , ** kwargs ) <EOL> return model ( corpus = corpus , ** config ) </s>
