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

TypeError: to_disk() missing 1 required positional argument: 'path' #6

Open
ravu37183636 opened this issue Aug 24, 2022 · 1 comment

Comments

@ravu37183636
Copy link

file=open('error.txt','w')

db=get_spacy_doc(file,train)

#db1=get_spacy_doc(file,test)

db.to_disk('path/train.spacy')

#file.close()

100%|████████████████████████████████████████████████████████████████████████████████| 140/140 [00:03<00:00, 40.48it/s]


TypeError Traceback (most recent call last)
C:\Users\RAVIND~1.JOS\AppData\Local\Temp/ipykernel_22160/2186711314.py in
2 db=get_spacy_doc(file,train)
3 #db1=get_spacy_doc(file,test)
----> 4 db.to_disk('path/train.spacy')
5 #file.close()

TypeError: to_disk() missing 1 required positional argument: 'path'

TypeError: to_disk() missing 1 required positional argument: 'path'

spacy version 3.3.1

@ShayanRehman
Copy link

ShayanRehman commented Jan 16, 2023

Instead of
db.to_disk('path\train.spacy')

use to save the train db in the current directory
db.to_disk('train.spacy')

image

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