diff --git a/spacy/cli/convert.py b/spacy/cli/convert.py index c9a0510a8..0b2800205 100644 --- a/spacy/cli/convert.py +++ b/spacy/cli/convert.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from pathlib import Path -from .converters import conllu2json +from .converters import conllu2json, iob2json from ..util import prints @@ -13,7 +13,8 @@ from ..util import prints CONVERTERS = { '.conllu': conllu2json, - '.conll': conllu2json + '.conll': conllu2json, + '.iob': iob2json } diff --git a/spacy/cli/converters/__init__.py b/spacy/cli/converters/__init__.py index a26b4ca3f..9026d16c6 100644 --- a/spacy/cli/converters/__init__.py +++ b/spacy/cli/converters/__init__.py @@ -1 +1,2 @@ from .conllu2json import conllu2json +from .iob2json import iob2json