microsoft / CodeBERT

CodeBERT
MIT License
2.08k stars 430 forks source link

What can UniXcoder do #321

Open LO-FANG opened 2 months ago

LO-FANG commented 2 months ago

Hi,every one. Can UniXcoder do vulnerability detection tasks? What's the format of the datasets should I process.

Tamal-Mondal commented 2 months ago

Yes, I have used it before for defect detection like tasks.

You can refer to the defect detection pipeline in CodeXglue (https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/Defect-detection). Here CodeBERT is used as an encoder and mostly just the encoder needs to be replaced with UnixCoder and rest of the setup you can follow.

LO-FANG commented 2 months ago

是的,我以前曾将它用于任务等缺陷检测。

您可以参考 CodeXglue (https://github.com/microsoft/CodeXGLUE/tree/main/Code-Code/Defect-detection) 中的缺陷检测管道。在这里,CodeBERT 被用作编码器,大多数情况下,只有编码器需要替换为 UnixCoder 和您可以遵循的其余设置。

Hug,Thanks for the information, have a god day!