From d310dc73efe209f50d50d08067b23dafa0dede67 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 24 Sep 2016 20:38:18 +0200 Subject: [PATCH] Fix bin/init_model.py after refactoring --- bin/init_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/init_model.py b/bin/init_model.py index c0ae25470..691e76930 100644 --- a/bin/init_model.py +++ b/bin/init_model.py @@ -206,7 +206,7 @@ def main(lang_id, lang_data_dir, corpora_dir, model_dir): tag_map = json.load((lang_data_dir / 'tag_map.json').open()) setup_tokenizer(lang_data_dir, model_dir / 'tokenizer') - setup_vocab(get_lang_class(lang_id).default_lex_attrs(), tag_map, corpora_dir, + setup_vocab(get_lang_class(lang_id).Defaults.lex_attr_getters, tag_map, corpora_dir, model_dir / 'vocab') if (lang_data_dir / 'gazetteer.json').exists():