tbabm / cup Goto Github PK
View Code? Open in Web Editor NEWJust-In-Time Comment UPdater
Just-In-Time Comment UPdater
Line 91 in 43ebf64
I'm afraid that the above code causes the following line error.
Line 122 in 43ebf64
The error log is shown here:
Traceback (most recent call last):
File "infer.py", line 100, in <module>
main()
File "infer.py", line 96, in main
infer(args)
File "infer.py", line 91, in infer
infer_instance.infer()
File "infer.py", line 65, in infer
hypos = self.beam_search(test_set)
File "infer.py", line 55, in beam_search
example_hypos = self._model.beam_search(example, self.beam_size, self.max_dec_step, BeamClass)
File "D:\Projects\CommentUpdate_cup\models\updater.py", line 175, in beam_search
hypos = self.nl_decoder.beam_search(example, beam_size, max_dec_step, BeamClass, **decoder_kwargs)
File "D:\Projects\CommentUpdate_cup\models\decoder.py", line 273, in beam_search
state_tm1 = beam.step(words_log_prob, state_tm1)
File "D:\Projects\CommentUpdate_cup\models\beam.py", line 122, in step
new_hypo_sents.append(self.live_hypo_sents[hypo_id] + [word_id])
TypeError: list indices must be integers or slices, not float
Dear authors.
Thanks for your great work. Recently, our group is trying to train your model with our dataset. I see there are a lot of "idx" in .jsonl files of your dataset, but we can not understand what is this for. To avoid potential bias, could you tell us what "idx" means? In addition, there are some .pkl files in your dataset, could you tell us how are these files generated? Thanks a lot.
Best wishes
Dear authors.
Thanks for your great work. Recently, we are trying to follow CUP and train your model on our dataset. While it seems that you did not provide the edit sequence generator. To avoid potential bias, if itβs convenient, could you provide the related code? Thanks a lot.
Best
Bo.
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.