* Fix munge/read_ner

This commit is contained in:
Matthew Honnibal 2015-06-08 00:35:04 +02:00
parent 1515862861
commit a8fc5f1285
1 changed files with 2 additions and 3 deletions

View File

@ -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