mirror of https://github.com/explosion/spaCy.git
* Add 'bitter' property for serializer in English class
This commit is contained in:
parent
fb54052ae0
commit
897de2d438
|
@ -101,6 +101,10 @@ class English(object):
|
||||||
self.entity = Entity(self.vocab.strings, path.join(data_dir, 'ner'))
|
self.entity = Entity(self.vocab.strings, path.join(data_dir, 'ner'))
|
||||||
else:
|
else:
|
||||||
self.entity = None
|
self.entity = None
|
||||||
|
if Serializer:
|
||||||
|
self.bitter = Serializer(self.vocab, data_dir)
|
||||||
|
else:
|
||||||
|
self.bitter = None
|
||||||
self.mwe_merger = RegexMerger([
|
self.mwe_merger = RegexMerger([
|
||||||
('IN', 'O', regexes.MW_PREPOSITIONS_RE),
|
('IN', 'O', regexes.MW_PREPOSITIONS_RE),
|
||||||
('CD', 'TIME', regexes.TIME_RE),
|
('CD', 'TIME', regexes.TIME_RE),
|
||||||
|
|
Loading…
Reference in New Issue