giganticode / probes Goto Github PK
View Code? Open in Web Editor NEWProbing pre-trained source code models
Probing pre-trained source code models
Thanks a lot for your great work. I met errors when loading CodeT5, PLBART-mtjava and PLBART-large models.
For codet5, I change the code as follows:
tokenizer = RobertaTokenizer.from_pretrained(modelname, cache_dir="~/tmp") model = T5ForConditionalGeneration.from_pretrained(modelname, config=config, cache_dir="~/tmp")
For PLBART-mtjava and PLBART-large models, I found a useful issue
Hello, I have read your article carefully. It is a very interesting work, but I still have some problems.
(1)May I ask which dataset does "the test dataset provided by Ahmad et al. (2021a) consisting of 10k examples of Java functions and methods" refer to?
(2) What do the abbreviations of the datasets in this repo represent and how they are constructed?
Thank you for your time in advance!
How are your AST node taggingextracted into the txt, and what does each column in the AST txt file represent?
Hello, thanks a lot for your great work. When I run probe_classifier.py. There are some errors:
File "probe_classifier.py", line 205, in
train_X, train_y, dev_X, dev_y, test_X, test_y, feat_dim, num_classes, cat2id, id2cat = load_data()
File "probe_classifier.py", line 35, in load_data
feat_jsonl = json.loads(feat_jsonl)
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/fang/anaconda3/envs/probe_env/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
And I have no idea how to fix it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.