From a8fc5f1285e3cc9d63c2d3fd524c28c7e3040eb6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 8 Jun 2015 00:35:04 +0200 Subject: [PATCH] * Fix munge/read_ner --- spacy/munge/read_ner.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spacy/munge/read_ner.py b/spacy/munge/read_ner.py index 7fa651577..23b3f490f 100644 --- a/spacy/munge/read_ner.py +++ b/spacy/munge/read_ner.py @@ -1,3 +1,4 @@ +from __future__ import unicode_literals import os from os import path import re @@ -35,7 +36,6 @@ def parse(string, strip_bad_periods=False): try: tag, open_tag = _get_tag(substr, open_tag) except: - print string raise tags.append(tag) return tokens, tags @@ -98,8 +98,7 @@ def tags_to_entities(tags): entities.append((tag[2:], start, i)) start = None else: - print tags - raise StandardError(tag) + raise Exception(tag) return entities