mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-27 10:26:35 +03:00
.. | ||
ner-sent-per-line.iob | ||
ner-sent-per-line.json | ||
ner-token-per-line-conll2003.iob | ||
ner-token-per-line-conll2003.json | ||
ner-token-per-line-with-pos.iob | ||
ner-token-per-line-with-pos.json | ||
ner-token-per-line.iob | ||
ner-token-per-line.json | ||
README.md |
Examples of NER/IOB data that can be converted with spacy convert
To convert an IOB file to .spacy
(DocBin
)
for spaCy v3:
python -m spacy convert -c iob -s -n 10 -b en_core_web_sm file.iob .
See all the spacy convert
options: https://spacy.io/api/cli#convert
The spaCy v2 JSON training files were generated using spaCy v2 with:
python -m spacy convert -c iob -s -n 10 -b en file.iob
To convert an existing JSON training file to .spacy
for spaCy v3, convert
with spaCy v3:
python -m spacy convert file.json .