mirror of
https://github.com/explosion/spaCy.git
synced 2025-02-11 09:00:36 +03:00
Draft Corpus class for DocBin
This commit is contained in:
parent
7360d3db72
commit
0de361cd00
|
@ -5,7 +5,7 @@ from .example import Example
|
|||
from ..tokens import DocBin
|
||||
|
||||
|
||||
class GoldCorpus(object):
|
||||
class Corpus:
|
||||
"""An annotated corpus, using the JSON file format. Manages
|
||||
annotations for tagging, dependency parsing and NER.
|
||||
|
||||
|
@ -38,7 +38,7 @@ class GoldCorpus(object):
|
|||
continue
|
||||
elif path.is_dir():
|
||||
paths.extend(path.iterdir())
|
||||
elif path.parts[-1].endswith(".spacy")
|
||||
elif path.parts[-1].endswith(".spacy"):
|
||||
locs.append(path)
|
||||
return locs
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user