From a1a76bb7374f5d2caf1e714d77514aae5d663df4 Mon Sep 17 00:00:00 2001 From: Maximilian Soelch Date: Thu, 5 Dec 2024 18:38:45 +0100 Subject: [PATCH] Fix breaking change in nltk 3.9.1 and use punkt_tab instead --- .../module_modeling_llm/module_modeling_llm/__main__.py | 2 +- modules/text/module_text_llm/module_text_llm/__main__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/modeling/module_modeling_llm/module_modeling_llm/__main__.py b/modules/modeling/module_modeling_llm/module_modeling_llm/__main__.py index 41d4bd98..cb1eb967 100644 --- a/modules/modeling/module_modeling_llm/module_modeling_llm/__main__.py +++ b/modules/modeling/module_modeling_llm/module_modeling_llm/__main__.py @@ -58,6 +58,6 @@ async def suggest_feedback(exercise: Exercise, submission: Submission, is_graded if __name__ == "__main__": - nltk.download("punkt") + nltk.download("punkt_tab") tiktoken.get_encoding("cl100k_base") app.start() diff --git a/modules/text/module_text_llm/module_text_llm/__main__.py b/modules/text/module_text_llm/module_text_llm/__main__.py index e2399867..d4e2b05d 100644 --- a/modules/text/module_text_llm/module_text_llm/__main__.py +++ b/modules/text/module_text_llm/module_text_llm/__main__.py @@ -61,6 +61,6 @@ async def evaluate_feedback( return evaluation if __name__ == "__main__": - nltk.download("punkt") + nltk.download("punkt_tab") tiktoken.get_encoding("cl100k_base") - app.start() \ No newline at end of file + app.start()