Open konL opened 2 years ago
And is it possible to predict the names of identifiers at other granularities?(field, variable....)Thank you!
Hi @konL , Thank you for your interest in our work!
The extract_paths
API is exactly the same as the JavaExtractor, which is included in the codebase, but wrapped in a class that makes it a Lambda function in AWS. This way, manual examination (interactive mode) could be performed faster and easier.
In too long examples, the extract_paths
API just times out.
You can either create a test set from your long examples using the preprocess.sh
script, and evaluate (run the model in --test
mode, as explained here) these examples on your machine.
If you wish to keep this "interactive" behavior, you can wrap the JavaExtractor with a local server that accepts POST requests, but it will require a little more work.
see also: https://github.com/tech-srl/code2seq/issues/85
Best Uri
Hi! Thank you for your work! I used the command
to predict a new name for a single method, and it works well a for shorter method. But for a longer method I get a TimeError, I have looked at the code and found that it is mainly related to the extract_paths I think this is related to http requests, but I don't understand why it is related to method length. How should I solve this problem? My error messages:
Thank you!