UMT icon indicating copy to clipboard operation
UMT copied to clipboard

Question of the MT-bert code

Open blink7-lab opened this issue 4 years ago • 6 comments

Dear Jeffery,I'm very interested in your work of this paper.I have a little problem about the code.If I want to implement MT-BERT-CRF, which part of the code should I modify?Thank u.

blink7-lab avatar Nov 20 '20 08:11 blink7-lab

Hi there,

Thanks for your interest in our paper! I am not sure which MT-BERT-CRF you are referring to. But if it is a pre-trained model, you can first add the link of this pre-trained model in line 43 to line 51 of the "mner_modeling.py" file under "my_bert" folder, and then set the parameter "bert_model" to your pre-trained model name in the "run_mtmner_crf.sh" file.

Best, Jianfei

jefferyYu avatar Nov 21 '20 00:11 jefferyYu

Thank you for your reply. If there are any other questions I would like to discuss with you, I will contact you again. Thanks again

blink7-lab avatar Nov 21 '20 07:11 blink7-lab

code sorry to disturb u again,dear Jeffery.I would like to ask,what the ‘self_attention‘ ‘self_attention_v2’ ‘vismap2text’ and ‘vismap2text_v2’ stand for?

blink7-lab avatar Nov 22 '20 12:11 blink7-lab

Hi there,

‘self_attention‘ stands for the self attention layer for the auxiliary task (in the left channel of Fig.2.a), whereas ‘self_attention_v2’ stands for the self attention layer for our main MNER task (in the right channel of Fig.2.a). ‘vismap2text’ and ‘vismap2text_v2’ are both used to project the image representation (2048 dimension) into the space of the text representation (768 dimension), and they are respectively employed to produce the Image-Aware Word Representation (in the left channel of Fig.2.b) and the Word-Aware Visual Representation (in the right channel of Fig.2.b).

Best, Jianfei

jefferyYu avatar Nov 23 '20 07:11 jefferyYu

ok I got it.Thanks for your patience!!!

blink7-lab avatar Nov 23 '20 08:11 blink7-lab

I am sorry to disturb u again,dear Jeffery.I have the problems about the some results,which I use the some version with you.I don't know if it's a matter of warning. Will it affect the final result?How should I deal with it? 屏幕截图

blink7-lab avatar Jan 08 '21 02:01 blink7-lab