mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Make sure path is string (resolves #3546)
This commit is contained in:
parent
d0f5e015cb
commit
6ae3b5699e
|
@ -113,7 +113,7 @@ class GoldCorpus(object):
|
||||||
self.write_msgpack(self.tmp_dir / "dev", dev, limit=self.limit)
|
self.write_msgpack(self.tmp_dir / "dev", dev, limit=self.limit)
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
shutil.rmtree(self.tmp_dir)
|
shutil.rmtree(path2str(self.tmp_dir))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def write_msgpack(directory, doc_tuples, limit=0):
|
def write_msgpack(directory, doc_tuples, limit=0):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user