1
$\begingroup$

I understand that there are data augmentation techniques for natural language such as word/sentence shuffling, word replacement with synonyms and syntax-tree manipulation.

However, I have hard time finding data augmentation techniques for code snippets(e.g. java, c++, etc).

For example, natural language (e.g. I am a human) and code snippet (e.g. def function(foo): print(foo)) have quite different syntactic and semantic characteristics. Thus, I don't think the data augmentation techniques for natural language (e.g. word replacement with synonyms) can be applied to code snippets.

Could someone tell me what are some common data augmentation used for code? Thank you.

$\endgroup$
2
  • $\begingroup$ I cant follow what this means. Can you give more context? $\endgroup$ Commented Aug 19, 2022 at 11:49
  • $\begingroup$ I'm sorry for not being clear. I updated the post with more details. Thank you. $\endgroup$
    – jjwest
    Commented Aug 20, 2022 at 1:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.