From 8d125edba16e9f79b28c358430a1a7e9c430ffef Mon Sep 17 00:00:00 2001 From: Olivier Filangi Date: Mon, 21 Oct 2024 16:54:53 +0200 Subject: [PATCH] fix tag encoding --- config/planteom-example.json | 2 +- llm_semantic_annotator/core.py | 2 +- llm_semantic_annotator/tag/owl_tag_manager.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/planteom-example.json b/config/planteom-example.json index bd53417..261c1ff 100644 --- a/config/planteom-example.json +++ b/config/planteom-example.json @@ -1,6 +1,6 @@ { "encodeur" : "sentence-transformers/all-MiniLM-L6-v2", - "threshold_similarity_tag_chunk" : 0.60, + "threshold_similarity_tag_chunk" : 0.65, "threshold_similarity_tag" : 0.80, "batch_size" : 32, diff --git a/llm_semantic_annotator/core.py b/llm_semantic_annotator/core.py index 902dd49..12169eb 100644 --- a/llm_semantic_annotator/core.py +++ b/llm_semantic_annotator/core.py @@ -183,9 +183,9 @@ def main_display_summary(config_all): retention_dir = config_all['retention_dir'] if len(results_complete_similarities)>0: - display_ontologies_distribution(results_complete_similarities,tag_embeddings) display_best_similarity_abstract_tag(results_complete_similarities,tag_embeddings,retention_dir) display_ontologies_summary(results_complete_similarities,tag_embeddings,retention_dir) + display_ontologies_distribution(results_complete_similarities,tag_embeddings) else: print("No results found") diff --git a/llm_semantic_annotator/tag/owl_tag_manager.py b/llm_semantic_annotator/tag/owl_tag_manager.py index 03aaa47..559f1ca 100644 --- a/llm_semantic_annotator/tag/owl_tag_manager.py +++ b/llm_semantic_annotator/tag/owl_tag_manager.py @@ -76,8 +76,8 @@ def remove_prefix_tags(self,prefix_tag,text): def build_corpus( self, - ontology_group_name, ontology, + ontology_group_name, ontology_config, debug_nb_terms_by_ontology):