Giter Club home page Giter Club logo

Comments (7)

Ravoxsg avatar Ravoxsg commented on August 20, 2024

Hi @LisaWang0306 , you need to generate the data (=summary candidates) first.
This is done in src/candidate_generation/main_candidate_generation.py
This will generate num_beams candidate for each source document in the dataset.

Then, you need to score these candidates to evaluate the re-ranking.
This is done in src/candidate_generation/main_scores.py

Let me know if you need any help running these scripts.

from summareranker.

Hannibal046 avatar Hannibal046 commented on August 20, 2024

Hi, when executing src/candidate_generation/main_candidate_generation.py, it gives following error. So could you please share a sample file to show how do you organize your data file ? It seems each line of txt file is a article-summary pair ?

FileNotFoundError: [Errno 2] No such file or directory: '/data/mathieu/DATASETS/RedditTIFU/data/en/val_text.txt'

from summareranker.

LisaWang0306 avatar LisaWang0306 commented on August 20, 2024

Hi @Ravoxsg, thanks for your reply!
I have the same question with @Hannibal046. The RedditTIFU dataset I find is a large json file. How do you organize it to txt files?
Thanks!

from summareranker.

Ravoxsg avatar Ravoxsg commented on August 20, 2024

Hi guys @Hannibal046 and @LisaWang0306
I've added a new script main_download_dataset.py which downloads the dataset from HuggingFace datasets, and saves it into .txt files. Have a look at it there:
https://github.com/Ravoxsg/SummaReranker/blob/main/src/candidate_generation/main_download_dataset.py

I've also updated the Readme accordingly.

Please note: you need to change every path flagged by a todo symbol in all the python files starting with main (main_download_dataset.py, main_candidate_generation.py, main_scores.py, etc).

from summareranker.

Ravoxsg avatar Ravoxsg commented on August 20, 2024

These paths specify where you want to save the files (dataset files, generated summaries, summary scores, etc etc).

from summareranker.

Ravoxsg avatar Ravoxsg commented on August 20, 2024

I typically save them outside of the code repository.

from summareranker.

Ravoxsg avatar Ravoxsg commented on August 20, 2024

@Hannibal046 @LisaWang0306 I refactored to relative paths, should be easier to follow all steps. Lmk.

from summareranker.

Related Issues (8)

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.