CODE2VEC

Demonstration of principles shown in the paperĀ code2vec: Learning Distributed Representations of Code
Input some Java code inside the editor and click on the arrow to generate predictions for the method's name.
You can use the examples provided below the editor (click on each one to replace editor's contents) or insert your own code.
JAVA
Examples:
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • random

Playground

Most Similar

Predict the most similar word in meaning.

Example

count -> length
...is similar to:
Predict

Combinations

Find combination of names.

Example

equals + toLower -> equalsIgnoreCase
and
...combined, are similar to:
predict

Analogies

Figure out SAT-style analogies.

Example

Receive is to download as send is to -> upload
is to
as...
...is to:
predict

About

code2vec is a dedicated website for demonstrating the principles shown in the paper
code2vec: Learning Distributed Representations of Code

Authors

Website Credits