Closed MingHong1019 closed 2 years ago
Hi, thanks a lot for pointing out the issues. This is still a very early version of the code and will be cleaned up more in the coming days.
Thanks a lot for suggestion "--consider_mutual_O", and I have add that argument and it works. By the way, the paper said that you have fine-tuning in the target domain using the label like ORG and LOCATION in Ontonotes dataset. However, I couldn't find any fine-tuning step during testing on the FewNerd dataset in the code.
If you carefully follow the code at container.py source file, you'll notice this line. Whenever do_finetune_support_only is enabled, it will finetune the model with the support set.
in line 129, 130,131, 115 of file utils.py
for line 115, assert a tuple will return none value and will not report error.
in line 129, 130,131, 115, the filtered_embedding/repeated_output_embeddings are repeted by 'len(output_embedding_mu)/filtered_instances_nos' times. So these tensors can not be reshape as (filtered_instances_nos, filtered_instances_nos), I change that to (filtered_instances_nos, -1) and code works.
I'm not realy sure about these problems, could you please help me for that?
https://github.com/psunlpgroup/CONTaiNER/blob/main/src/utils.py#L129