yzhangcs / parser

:rocket: State-of-the-art parsers for natural language.
https://parser.yzhang.site/
MIT License
827 stars 139 forks source link

config.ini is not work for n_embed #39

Closed yuxiazff closed 4 years ago

yuxiazff commented 4 years ago

I have change "n_embed" in config.ini from 100 to 300,but when i run biaffine.dependency with the embedding file "sgns.renmin.word"(the size of embeddings in "sgns.renmin.word" is 300), the programe report an error. when i debug, i find "n_embed" in "models/dependncy" is still 100, it have not change to 300!!!! that means, "n_embed" in the programe can not change according to "config.ini". so i have to change "n_embed" in "models/dependncy" to 300 by hand.

yzhangcs commented 4 years ago

Seems that the setting is suppressed by argparse args. I'm working to provide a more appropriate way to deal with default settings.

yuxiazff commented 4 years ago

ok, i get it.

yuxiazff commented 4 years ago

I am sorry, it's my fault, i didn't appended the param "-c config.ini" when i trainned the model.