Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Feb 5, 2025
1 parent 12d8af3 commit 683ec24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ontolearn/concept_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
from ontolearn.fitness_functions import LinearPressureFitness
from ontolearn.learning_problem import PosNegLPStandard, EncodedPosNegLPStandard
from ontolearn.metrics import Accuracy
from ontolearn.nces_modules import ConEx
from ontolearn.refinement_operators import ExpressRefinement
from ontolearn.utils import read_csv

from ontolearn.utils.static_funcs import concept_len
from ontolearn.quality_funcs import evaluate_concept
Expand Down Expand Up @@ -817,7 +819,7 @@ def _rename_individuals(self, individual_name):
def _set_prerequisites(self):
if self.path_of_embeddings is None or (os.path.isdir(self.path_of_embeddings) and not glob.glob(self.path_of_embeddings+'*_entity_embeddings.csv')) or not os.path.exists(self.path_of_embeddings) or not self.path_of_embeddings.endswith('.csv'):
if not os.path.exists(self.knowledge_base_path):
raise ValueError(f"{knowledge_base_path} not found")
raise ValueError(f"{self.knowledge_base_path} not found")
try:
import dicee
print('\nĆheck packages... OK: dicee is installed.')
Expand Down

0 comments on commit 683ec24

Please sign in to comment.