Comments (7)
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.
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.
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.
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.
These paths specify where you want to save the files (dataset files, generated summaries, summary scores, etc etc).
from summareranker.
I typically save them outside of the code repository.
from summareranker.
@Hannibal046 @LisaWang0306 I refactored to relative paths, should be easier to follow all steps. Lmk.
from summareranker.
Related Issues (8)
- Could you provide a detailed instruction HOT 2
- Experiment set up HOT 6
- How to train the re-ranker model? HOT 6
- Generation Hyperparameters HOT 2
- ERROR: Cannot install -r requirements.txt (line 11) and huggingface-hub==0.2.1 because these package versions have conflicting dependencies HOT 5
- About the generate model HOT 1
- Error when running file candidate_generation.sh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from summareranker.