Skip to content

Commit 1c5d66d

Browse files
committed
tests: update path references
1 parent 2863b50 commit 1c5d66d

6 files changed

Lines changed: 6 additions & 6 deletions

tests/entity_extraction/test_baseline_entity_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ensure that the parent directory is on the path for relative imports
1010
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1111

12-
from src.entity_extraction.baseline_entity_extraction import (
12+
from src.entity_extraction.prediction.baseline_entity_extraction import (
1313
extract_geographic_coordinates,
1414
extract_region_names,
1515
extract_taxa,

tests/entity_extraction/test_entity_extraction_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ensure that the parent directory is on the path for relative imports
1010
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1111

12-
from src.entity_extraction.entity_extraction_evaluation import (
12+
from src.entity_extraction.evaluation.entity_extraction_evaluation import (
1313
get_token_labels,
1414
calculate_entity_classification_metrics,
1515
plot_token_classification_report,

tests/entity_extraction/test_hf_entity_extraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# ensure that the parent directory is on the path for relative imports
1111
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1212

13-
from src.entity_extraction.hf_entity_extraction import (
13+
from src.entity_extraction.prediction.hf_entity_extraction import (
1414
load_ner_model_pipeline,
1515
get_hf_token_labels,
1616
get_predicted_labels,

tests/entity_extraction/test_hf_evaluate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# ensure that the parent directory is on the path for relative imports
1111
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1212

13-
from src.entity_extraction.training.hf_token_classification.hf_evaluate import (
13+
from src.entity_extraction.evaluation.hf_evaluate import (
1414
get_hf_token_labels,
1515
get_predicted_labels,
1616
generate_classification_results,

tests/entity_extraction/test_huggingface_preprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# ensure that the parent directory is on the path for relative imports
1010
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1111

12-
from src.entity_extraction.training.hf_token_classification.huggingface_preprocess import (
12+
from src.entity_extraction.preprocessing.huggingface_preprocess import (
1313
convert_labelled_data_to_hf_format,
1414
)
1515

tests/entity_extraction/test_labelling_data_split.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ensure that the parent directory is on the path for relative imports
1313
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
1414

15-
from src.preprocessing.labelling_data_split import separate_labels_to_train_val_test
15+
from src.entity_extraction.preprocessing.labelling_data_split import separate_labels_to_train_val_test
1616

1717

1818
# testing setup inspiration from: https://stackoverflow.com/questions/29627341/pytest-where-to-store-expected-data

0 commit comments

Comments
 (0)