ebanalyse / NERDA

Framework for fine-tuning pretrained transformers for Named-Entity Recognition (NER) tasks
MIT License
153 stars 35 forks source link

About load_network_from_file function #31

Open MahmoudAliEng opened 2 years ago

MahmoudAliEng commented 2 years ago

I trained my model, now in a new execution I want to use it to predict text, but the function of load is not static, so I'm obliged to create an instance of NERDA, but the model is already trained I want just use the load_network_from_file method.

I think you can make the function static (just add @staticmethod decorator above the function), please.

Thank you