My directory structure is like so:
cnc-binary
---> ff_repos
---> ---> ff_nlp_trained_models
---> ---> ---> ff_nlp_trained_models
---> ---> ---> ---> __init__.py
---> ---> ---> ---> model_validation.py
---> ---> ---> ---> quantity_pred_pickle.py
---> ---> ---> ---> quantity_pred.py
---> try.py
In try.py I have this:
I also tried changing quantity_pred_pickle to:
How can I solve this?
cnc-binary
---> ff_repos
---> ---> ff_nlp_trained_models
---> ---> ---> ff_nlp_trained_models
---> ---> ---> ---> __init__.py
---> ---> ---> ---> model_validation.py
---> ---> ---> ---> quantity_pred_pickle.py
---> ---> ---> ---> quantity_pred.py
---> try.py
In try.py I have this:
import ff_repos.ff_nlp_trained_models.ff_nlp_trained_models.quantity_pred_pickleIn quantity_pred_pickle.py I have this:
from model_validation import get_metrics_str from quantity_pred import QuantityClassifier, ToTextacyDocTransformer, evaluate_predictionWhen I run try.py I get the following ModuleNotFoundError:
Error:ModuleNotFoundError: No module named 'model_validataion'
I thought the __init__.py file would solve this, but it doesn't.I also tried changing quantity_pred_pickle to:
from ff_nlp_trained_models.model_validation import get_metrics_str from ff_nlp_trained_models.quantity_pred import QuantityClassifier, ToTextacyDocTransformer, evaluate_predictionThis didn't work.
How can I solve this?