Giter Site home page Giter Site logo

Comments (7)

urialon avatar urialon commented on May 23, 2024

Hi @BUCTwangkun ,

  1. What did intend to do?
  2. What command line exactly did you run?
  3. What did you change compared to the original code?
  4. Why did you preprocess Java-small, if it is already available preprocessed?

Best,
Uri

from code2seq.

BUCTwangkun avatar BUCTwangkun commented on May 23, 2024

Thanks for your reply~

  1. I want to try to combine your model and mine, but our model's imputs are different.
  2. sh preprocess.sh
  3. I dont change the original code
  4. Because of using multi-threads in your dataset, so the order of the dataset is different from mine. I want to preprocess java-small to keep same order

from code2seq.

urialon avatar urialon commented on May 23, 2024

Which changes have you performed in preprocess.sh?
Are you sure you are running this preprocessing on the raw .java files?

from code2seq.

BUCTwangkun avatar BUCTwangkun commented on May 23, 2024

I didnt change the preprocess.sh except the data path and num_thread(I set num_threads=1 in order to keep the same order) and I am sure running this preprocessing on the raw .java files.
And I find there are errors just in running train set. The val and test dataset are right for me

from code2seq.

urialon avatar urialon commented on May 23, 2024

I don't understand where this error is coming from, I'll try to check.
BUT - there is no guarantee on the order of examples, even if you are running with num_threads=1.
Even with num_threads=1, there are 6 processes (defined here), it's just that each of them runs with a single thread.

Even if you canceled that, and set it to run with 1 process having 1 thread - I am not sure that the order will be deterministic (for example, because I'm not sure that listing the files in a directory is deterministic).

I will still try to figure out what's wrong, but I recommend giving up on the order constraint or enforce it in some other way (e.g, assign each example a unique ID).

Please attach your terminal log (the stdout) when running preprocess.sh and the file error_log.txt. (delete error_log.txt, and run preprocess.sh to geta fresh error_log.txt).

from code2seq.

urialon avatar urialon commented on May 23, 2024

Regarding the errors - you can ignore them.
Some files in the training set simply don't parse. You can just ignore these errors and you will see that the training set still has almost 700k examples (wc -l java-small.train.c2s).

from code2seq.

BUCTwangkun avatar BUCTwangkun commented on May 23, 2024

ok, thanks you~

from code2seq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.