Skip to content

Vocabulary of code2vec in dataset #128

Open

Description

@anon721702

Dear Sir,

  • I would like to what exists in the java14m.dict.c2v file in dataset folder. As I am trying to see the content but its encoding is different. Please share file which has normal readable format.

  • Also, how you have created vocabulary for the same, please elaborate a little.

Activity

  1. urialon commented on Aug 14, 2021

    @urialon
    Collaborator

    Hi @anon721702 ,
    Thank you for your interest in code2vec, and sorry for the delayed response.

    You can reproduce the way that our code opens this file:
    https://github.com/tech-srl/code2vec/blob/master/vocabularies.py#L75 to see its content.

    You can see how this file was created here:
    https://github.com/tech-srl/code2vec/blob/master/preprocess.py#L16

    Best,
    Uri

  2. urialon commented on Aug 14, 2021

    @urialon
    Collaborator

    By the way,
    See our newer code2seq model's demo and code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions