asahi417 / lm-question-generation

Multilingual/multidomain question generation datasets, models, and python library for question generation.
https://www.autoqg.net
MIT License
313 stars 30 forks source link

Can I give the path to the offline model? #10

Closed yanshuaibupt closed 1 year ago

yanshuaibupt commented 1 year ago

Thanks for your excellent job! I have a question for loading model, I want to download the LM model on my machine, can I load it using lmqg? like: model = TransformersQG('my path/my model')

asahi417 commented 1 year ago

Thanks for your kind words! As long as the model is saved in the huggingface model format, it should work with the way you shared.