* Merge vocab changes

This commit is contained in:
Matthew Honnibal 2015-11-06 00:48:08 +11:00
parent 72abbb43fb
commit 6ed3aedf79
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ cdef class Vocab:
if lex != NULL:
if lex.orth != self.strings[string]:
raise LookupError.mismatched_strings(
lex.orth, self.strings[lex.orth], string)
lex.orth, self.strings[string], self.strings[lex.orth], string)
return lex
else:
return self._new_lexeme(mem, string)
@ -443,7 +443,7 @@ class LookupError(Exception):
"Query string: {query}\n"
"Orth cached: {orth_str}\n"
"ID of orth: {orth_id}".format(
query=original_string, orth_str=id_string, orth_id=id_)
query=repr(original_string), orth_str=repr(id_string), orth_id=id_)
)