Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training error #8

Open
MariamAlz opened this issue Sep 20, 2022 · 1 comment
Open

Training error #8

MariamAlz opened this issue Sep 20, 2022 · 1 comment

Comments

@MariamAlz
Copy link

While trying to run this on Colab:

!pipeline_diacritizer train --train-data data/train.csv --val-data data/val.csv

I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/pipeline_diacritizer", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/dist-packages/pipeline_diacritizer/pipeline_diacritizer.py", line 289, in main
    train(args.train_data, args.val_data, args.iterations, args.weights_dir, args.early_stop)
  File "/usr/local/lib/python3.7/dist-packages/pipeline_diacritizer/pipeline_diacritizer.py", line 105, in train
    model.train(train_data, val_data, iterations, early_stop)
  File "/usr/local/lib/python3.7/dist-packages/pipeline_diacritizer/diacritization_model.py", line 314, in train
    with open(self.get_trigrams_file_path(), 'wb') as vocab_file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/dist-packages/pipeline_diacritizer/Tashkeela_params/DiacritizationModel_trigrams.pkl'
@Hamza5
Copy link
Owner

Hamza5 commented Sep 20, 2022

Hello, this looks like it is a permission problem because you are installing it in the system Python directly rather than inside a virtual environment as indicated in the Download and installation wiki page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants