From 3b2e5a010672e2bc331ee2d74f57c3c54ae0a0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hagen=20H=C3=BCbel?= Date: Wed, 9 Oct 2024 22:31:52 +0300 Subject: [PATCH] Fixing Typo "reogranize" -> "reorganize" --- README.md | 2 +- examples/costorm_examples/run_costorm_gpt.py | 2 +- knowledge_storm/collaborative_storm/engine.py | 4 ++-- knowledge_storm/dataclass.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e027b3c0..0d024a24 100644 --- a/README.md +++ b/README.md @@ -208,7 +208,7 @@ conv_turn = costorm_runner.step() costorm_runner.step(user_utterance="YOUR UTTERANCE HERE") # Generate report based on the collaborative discourse -costorm_runner.knowledge_base.reogranize() +costorm_runner.knowledge_base.reorganize() article = costorm_runner.generate_report() print(article) ``` diff --git a/examples/costorm_examples/run_costorm_gpt.py b/examples/costorm_examples/run_costorm_gpt.py index 5f59a80d..9046bd5f 100644 --- a/examples/costorm_examples/run_costorm_gpt.py +++ b/examples/costorm_examples/run_costorm_gpt.py @@ -133,7 +133,7 @@ def main(args): print(f"**{conv_turn.role}**: {conv_turn.utterance}\n") # generate report - costorm_runner.knowledge_base.reogranize() + costorm_runner.knowledge_base.reorganize() article = costorm_runner.generate_report() # save results diff --git a/knowledge_storm/collaborative_storm/engine.py b/knowledge_storm/collaborative_storm/engine.py index 01684b9b..2e281f6d 100644 --- a/knowledge_storm/collaborative_storm/engine.py +++ b/knowledge_storm/collaborative_storm/engine.py @@ -607,7 +607,7 @@ def warm_start(self): warmstart_revised_conv if warmstart_revised_conv else warmstart_conv ) self.warmstart_conv_archive = warmstart_conv - self.knowledge_base.reogranize() + self.knowledge_base.reorganize() else: if self.knowledge_base is None: self.knowledge_base = KnowledgeBase( @@ -741,5 +741,5 @@ def step( ): if self.callback_handler is not None: self.callback_handler.on_mindmap_reorg_start() - self.knowledge_base.reogranize() + self.knowledge_base.reorganize() return conv_turn diff --git a/knowledge_storm/dataclass.py b/knowledge_storm/dataclass.py index fd981905..1eff9a64 100644 --- a/knowledge_storm/dataclass.py +++ b/knowledge_storm/dataclass.py @@ -825,7 +825,7 @@ def update_from_conv_turn( def get_knowledge_base_summary(self): return self.gen_summary_module(self) - def reogranize(self): + def reorganize(self): """ Reorganizes the knowledge base through two main processes: top-down expansion and bottom-up cleaning.