Improve alignment around quotes

This commit is contained in:
Matthew Honnibal 2018-08-16 01:04:34 +02:00
parent 66a3f2ba21
commit 00febda2e3

View File

@ -186,6 +186,10 @@ def _convert_sequence(seq):
cdef np.ndarray output = numpy.zeros((len(seq),), dtype='uint32')
cdef bytes item_bytes
for i, item in enumerate(seq):
if item == "``":
item = '"'
elif item == "''":
item = '"'
if isinstance(item, unicode):
item_bytes = item.encode('utf8')
else: