Skip to content

Use Deep Learning to guess a programming language given a snippet

Notifications You must be signed in to change notification settings

pietromoretto/lanGuesser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lanGuesser

lanGuesser uses a Deep Learning model to identify a programming language based on code snippet.

Preparation

Data has been extracted from Google BigQuery and downloaded as a CSV file for every programming language. bigquery

Training

Model has been trained on a Jupyter Notebook in Google Colab using Tensorflow and Keras. model

Supported Languages

Languages
Python Java Javascript Go
PHP SQL HTML CSS

Local Setup

In mysite folder there is a Flask Web App that allows you to test the model on your local computer.

Steps

  • Create a virtual environment with either
      virtualenv myenv
      conda create --name myenv
  • Install necessary packages with either
      pip install -r pip_requirements.txt
      while read requirement; do conda install --yes $requirement; done < requirements.txt
  • Run
      python flask_app.py
  • Enjoy it!

lanGuesser