Return self in Tokenizer.from_bytes

This commit is contained in:
ines 2017-06-03 13:26:13 +02:00
parent 82154a1861
commit 0153b66a86

View File

@ -392,3 +392,4 @@ cdef class Tokenizer:
self.token_match = re.compile(data['token_match']).search
for string, substrings in data.get('rules', {}).items():
self.add_special_case(string, substrings)
return self