File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99# ensure that the parent directory is on the path for relative imports
1010sys .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 ,
Original file line number Diff line number Diff line change 99# ensure that the parent directory is on the path for relative imports
1010sys .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 ,
Original file line number Diff line number Diff line change 1010# ensure that the parent directory is on the path for relative imports
1111sys .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 ,
Original file line number Diff line number Diff line change 1010# ensure that the parent directory is on the path for relative imports
1111sys .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 ,
Original file line number Diff line number Diff line change 99# ensure that the parent directory is on the path for relative imports
1010sys .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
Original file line number Diff line number Diff line change 1212# ensure that the parent directory is on the path for relative imports
1313sys .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
You can’t perform that action at this time.
0 commit comments