* Add 'bitter' property for serializer in English class

This commit is contained in:
Matthew Honnibal 2015-07-16 17:47:53 +02:00
parent fb54052ae0
commit 897de2d438
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ class English(object):
self.entity = Entity(self.vocab.strings, path.join(data_dir, 'ner'))
else:
self.entity = None
if Serializer:
self.bitter = Serializer(self.vocab, data_dir)
else:
self.bitter = None
self.mwe_merger = RegexMerger([
('IN', 'O', regexes.MW_PREPOSITIONS_RE),
('CD', 'TIME', regexes.TIME_RE),