mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +03:00
* Allow an OOV probability to be specified in get_lex_props
This commit is contained in:
parent
cd6e25132b
commit
1b5d1da2a7
|
@ -84,7 +84,7 @@ class English(object):
|
||||||
self.vocab = Vocab(data_dir=path.join(data_dir, 'vocab') if data_dir else None,
|
self.vocab = Vocab(data_dir=path.join(data_dir, 'vocab') if data_dir else None,
|
||||||
get_lex_props=get_lex_props, load_vectors=load_vectors,
|
get_lex_props=get_lex_props, load_vectors=load_vectors,
|
||||||
pos_tags=POS_TAGS,
|
pos_tags=POS_TAGS,
|
||||||
float(open(path.join(data_dir, 'vocab', 'oov_prob')).read()))
|
oov_prob=float(open(path.join(data_dir, 'vocab', 'oov_prob')).read()))
|
||||||
if Tagger is True:
|
if Tagger is True:
|
||||||
Tagger = EnPosTagger
|
Tagger = EnPosTagger
|
||||||
if Parser is True:
|
if Parser is True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user