tech-srl / code2seq

Code for the model presented in the paper: "code2seq: Generating Sequences from Structured Representations of Code"
http://code2seq.org
MIT License
555 stars 164 forks source link

Error running prediction on Code2seq released model #107

Closed Avv22 closed 2 years ago

Avv22 commented 2 years ago

Hello,

I tried to run the other version of code2seq available for tensorflow 2.4.1 and Python 3.8.1 with tensorflow-addons 0.15.0, but go the following issue:

warnings.warn( usage: code2seq.py [-h] (-d DATA_PATH | -l FILE) [-m FILE] [-s FILE] [-t FILE] [-p PREDICT] [--debug] [--seed SEED] code2seq.py: error: argument -p/--predict: expected one argument

The file predict.sh has the following content:

#!/usr/bin/env bash

python code2seq.py -m $(pwd)/model_iter52.release.data-00000-of-00001 -p

image