Closed roger-mahler closed 3 years ago
Data are inferred/predicted from models trained on pages.
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) /venv/lib/python3.8/site-packages/penelope/notebook/topic_modelling/load_topic_model_gui.py in _load_handler(self, *_) 82 self.load.disabled = True 83 with self.output: ---> 84 self.load_callback(self.model_name.value) 85 finally: 86 self.load.disabled = False /venv/lib/python3.8/site-packages/penelope/notebook/topic_modelling/load_topic_model_gui.py in load_callback(model_name) 95 96 def load_callback(model_name: str): ---> 97 load_model(corpus_config, corpus_folder, state, model_name, model_infos) 98 99 gui = LoadGUI().setup(model_names, load_callback=load_callback) /venv/lib/python3.8/site-packages/penelope/notebook/topic_modelling/load_topic_model_gui.py in load_model(corpus_config, corpus_folder, state, model_name, model_infos) 30 model_info = next(x for x in model_infos if x["name"] == model_name) 31 filename_fields = corpus_config.text_reader_opts.filename_fields if corpus_config else None ---> 32 inferred_model: InferredModel = InferredModel.load(model_info["folder"], lazy=True) 33 inferred_topics: InferredTopicsData = InferredTopicsData.load( 34 folder=jj(corpus_folder, model_info["name"]), /venv/lib/python3.8/site-packages/penelope/topic_modelling/interfaces.py in load(folder, lazy) 309 train_corpus = lambda: TrainingCorpus.load(folder) if lazy else TrainingCorpus.load(folder) 310 options = InferredModel.load_model_options(folder) --> 311 return InferredModel(topic_model=topic_model, train_corpus=train_corpus, **options) 312 313 TypeError: __init__() missing 1 required positional argument: 'method'
Data are inferred/predicted from models trained on pages.