code2vec icon indicating copy to clipboard operation
code2vec copied to clipboard

Question about JavaExtractor

Open DJjjjhao opened this issue 4 years ago • 1 comments

I run JavaExtractor to get the ast paths and get the output like this "assign|message|group boolean,600457869,METHOD_NAME". I feel confused about the output. Is the output split by space and what's the meaning of the number "600457869"? Thank you very much!

DJjjjhao avatar Jul 23 '21 10:07 DJjjjhao

Hi @DJjjjhao , Sorry for the late response.

The output is split by space where:

  1. The first "word" is the target label (assign|message|group)
  2. Every following "word" is a 3-tuple containing: two tokens (boolean and METHOD_NAME), with the hash of the path (600457869).

See additional details here: https://github.com/tech-srl/code2vec#extending-to-other-languages

Best, Uri

urialon avatar Jul 29 '21 20:07 urialon