From b0f1c65d959ea387472027cee16a0dee90ce6f18 Mon Sep 17 00:00:00 2001 From: Jonas Geertsen Lund Date: Mon, 11 Dec 2023 10:17:47 +0100 Subject: [PATCH] Cleanup --- relation_extraction/API_handler.py | 2 -- relation_extraction/knowledge_graph_messenger.py | 4 ---- relation_extraction/multilingual/llm_messenger.py | 1 - 3 files changed, 7 deletions(-) diff --git a/relation_extraction/API_handler.py b/relation_extraction/API_handler.py index ea2dc38..fadae92 100644 --- a/relation_extraction/API_handler.py +++ b/relation_extraction/API_handler.py @@ -12,5 +12,3 @@ def API_endpoint(): @abstractmethod def send_request(request): pass - - \ No newline at end of file diff --git a/relation_extraction/knowledge_graph_messenger.py b/relation_extraction/knowledge_graph_messenger.py index 8a2c76a..424bcf7 100644 --- a/relation_extraction/knowledge_graph_messenger.py +++ b/relation_extraction/knowledge_graph_messenger.py @@ -19,7 +19,3 @@ def send_request(output): def format_output(self, output): formatted_output = {"triples": output} return formatted_output - - - - diff --git a/relation_extraction/multilingual/llm_messenger.py b/relation_extraction/multilingual/llm_messenger.py index 249c964..87ceebc 100644 --- a/relation_extraction/multilingual/llm_messenger.py +++ b/relation_extraction/multilingual/llm_messenger.py @@ -87,4 +87,3 @@ def prompt_llm(data, split_relations, relations): process_response = LLMMessenger.process_message(response) triples = LLMMessenger.check_validity_of_response(sentence, process_response, relations) return triples -