#NEWLINE# @ classmethod #NEWLINE# def load( cls , filename ) : #NEWLINE# #INDENT# model = joblib . load ( filename ) #NEWLINE# n_topics = ( model . n_topics if hasattr ( model , 'n_topics' ) else model . n_components ) #NEWLINE# return cls ( model , n_topics = n_topics )