ebanalyse / NERDA

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

Could you please explain how to load a local conll2003 formatted file? #4

Closed Hansyvea closed 3 years ago

Hansyvea commented 3 years ago

How could I save the trained model locally and load it next time? didn't see this in the tutorial (Perhaps it is too easy... but I couldn't find a way) Thanks in advance.

furkan-celik commented 3 years ago

You can read a file and convert to the same format. I have some txt files and I parsed them to a dictionary with sentences and labels keys which is the same structure you can see on ConLL dataset outputs. After creating that dictionary, both sentences and labels as lists, I have successfully trained model.

smaakage85 commented 3 years ago

yes @furkan-celik .

Did this solve your issue, @Hansyvea ?

I close this issue.

Best, Lars

Hansyvea commented 3 years ago

yes @furkan-celik .

Did this solve your issue, @Hansyvea ?

I close this issue.

Best, Lars

yes, I do, thank you for your and furkan's reply!