mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-10 07:04:53 +03:00
remove debug
This commit is contained in:
parent
cf2c073fcc
commit
2525473c20
|
@ -30,7 +30,6 @@ def _stream_docbin(path: Path, vocab: Vocab) -> Iterable[Doc]:
|
||||||
"""
|
"""
|
||||||
Stream Doc objects from DocBin.
|
Stream Doc objects from DocBin.
|
||||||
"""
|
"""
|
||||||
input(path)
|
|
||||||
docbin = DocBin().from_disk(path)
|
docbin = DocBin().from_disk(path)
|
||||||
for doc in docbin.get_docs(vocab):
|
for doc in docbin.get_docs(vocab):
|
||||||
yield doc
|
yield doc
|
||||||
|
@ -61,7 +60,6 @@ def _maybe_read_text(path: Path) -> Union[str, None]:
|
||||||
return text
|
return text
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
msg.warn(f"Skipping file {path}")
|
msg.warn(f"Skipping file {path}")
|
||||||
print(e)
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user