From 09a877886b01fb5d12f20d2867c7562cfc679dd6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 19 May 2017 13:24:39 -0500 Subject: [PATCH] WIP on iob converter --- spacy/cli/convert.py | 5 +++-- spacy/cli/converters/__init__.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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