Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorgechato/sauce

Super smart, super custom autocomplete code. AI to build code with you. You can implement it in a plugin for example:
https://github.com/jorgechato/sauce

keras public python tensorflow

Last synced: 27 days ago
JSON representation

Super smart, super custom autocomplete code. AI to build code with you. You can implement it in a plugin for example:

Awesome Lists containing this project

README

        

# Sauce

A recurrent neural network & LSTM AI to autocomplete code.

### Install
#### Local
```zsh
$ pip install -r requirements.txt
```
#### Docker
```zsh
$ docker build -t sauce .

$ docker run -d \
-v ${PWD}/data:/code/data \
-v ${PWD}/out:/code/out \
-v ${PWD}/weights:/code/weights \
--name sauce-train sauce
```
### Get data
Concatenate all files you have written splitted by language in a single file. You
can use the following command:
```zsh
$ cat /**/*.py > ./data/python.txt
```
### Train
```zsh
$ python train.py --data
# or to show the full options
$ python train.py -h
```
### Folder structure
```zsh
.
├── Dockerfile
├── README.md
├── requirements.txt
├── sauce
│   ├── data.py
│   ├── __init__.py
│   ├── LSTM
│   │   ├── bidirectional.py
│   │   ├── __init__.py
│   │   └── text_generation.py
│   └── utils.py
├── train.py
├── predict.py
├── api.py
├── data
├── out
└── weights
```