fairseq-gec icon indicating copy to clipboard operation
fairseq-gec copied to clipboard

How should I use pretrained model to process new data

Open 13145314593 opened this issue 4 years ago • 4 comments

I want to use the pretrained model checkpoint9.pt directly to process the new data, how do I organize the code.(The methods I find on baidu cannot be used, so I ask you for some suggestion ,like torch.load() function)

13145314593 avatar Dec 19 '19 08:12 13145314593

I have exactly the same question, my main issues is that I can not find the script that preprocesses the oriinal CONLL dataset.

MrRobot2211 avatar Dec 20 '19 14:12 MrRobot2211

I want to use the pretrained model checkpoint9.pt directly to process the new data, how do I organize the code.(The methods I find on baidu cannot be used, so I ask you for some suggestion ,like torch.load() function)

You want to load the pre-trained model for evaluation, right? You should change the "--path" parameter in the generate.sh.

zhawe01 avatar Dec 24 '19 03:12 zhawe01

I have exactly the same question, my main issues is that I can not find the script that preprocesses the oriinal CONLL dataset.

We didn't release the preprocess scripts for the original CONLL dataset.

zhawe01 avatar Dec 24 '19 03:12 zhawe01

How to deal with the problem of 'command python2 not found' in the generate.sh? And how to use the m2scorer?

iewang avatar Mar 13 '20 01:03 iewang