PermissionError with spacy train on Windows #10896
Unanswered
abs-xyz
asked this question in
Help: Coding & Implementations
Replies: 1 comment 1 reply
-
Thanks for the detailed report, and sorry for the delay following up. Unfortunately we're not really sure what could cause this... One thing I have seen cause errors like this before is sharing settings. Sometimes if sharing is enabled for a folder in Windows, it can be grabbed by the OS and prevent deletions from within Python. The exact timing of this is a little complicated but your sample script probably works because it's all in the same process. Maybe you could check your sharing settings? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the latest version (3.3.0).
This is related to this previous discussion.
While training, I am facing errors like
PermissionError: [WinError 5] Access is denied: 'output\\model-best\\ner'
.I am using the following line as mentioned in the earlier discussion (link above)
(Edit: I had looked the discussion up after the command in docs
python -m spacy init fill-config base_config.cfg config.cfg
didn't work)Then I am converting some CoNLL 2003 data to spacy format (using
spacy convert ... -c ner
).Then trying to train using
I am getting the following error:
Note:
As mentioned in the earlier discussion, I have already tried running
and this works fine.
Edit:
Config file
(using
python -m spacy init config config.cfg --lang en --pipeline ner --force
)On using
python -m spacy debug data config.cfg
, I getValueError: [E913] Corpus path can't be None. Maybe you forgot to define it in your .cfg file or override it on the CLI?
, the latter of which I believe I am doing (inspacy train
options).I have tested the data with
(no errors)
Beta Was this translation helpful? Give feedback.
All reactions