Comments (5)
Hi @nikhilrayaprolu,
I faced the same problem with you, it was because the preprocessing script on whole cnndm training dataset took more than 32GB RAM. I would suggest you to split the train set into several parts, then merge them later after preprocess on those parts finished.
from ctrl-sum.
I don't remember the exact step I've done back then, but the idea is this.
I did something like
split -n l/${nsplit} /path-to-file/train.source /path-to-file/train.source.
it will create train.source.00, train.source.01, ... , train.source.${nsplit}
Then I rename the generated files to
train_1.source, train_2.source, ..., train_${nsplit}.source.
After that you could run
python scripts/preprocess.py cnndm --mode pipeline --split train_1,train_2,...,train_${nsplit}
wait until the preprocessing step is done, then I manually copy and paste the generated files into one big train.source
file.
Or you can simply use bigger RAM machine to preprocess without splitting the file.
from ctrl-sum.
from ctrl-sum.
thanks for the reply @geeraay
from ctrl-sum.
@geeraay can you provide some more explanation on how the splitting and merging is done. Any accompanying code would really be helpful.
from ctrl-sum.
Related Issues (16)
- Unconditional Summarization Evaluation HOT 13
- Oracle entity in Table 2 VS. Oracle keywords in Table 7 HOT 5
- Question about the baselines used in the paper HOT 2
- Error: Could not find or load main class edu.stanford.nlp.process.PTBTokenizer HOT 1
- how to do test-time keyword extraction? HOT 9
- 'Confidence score' for a generated summary? HOT 2
- Error when using long text summaries HOT 2
- What is the input sequence size ? HOT 1
- hello! could you provide the contributions test data in your paper? thank you very much! HOT 1
- Tagger: bert or roberta? HOT 11
- fairseq-train: error: argument --restore-file: expected one argument HOT 4
- Qs on finetuning by myself on CNN dataset HOT 5
- package for CTRLsum (easy to use) HOT 5
- Summary length truncated even set min_length explicitly HOT 3
- Use only selected sentences in source document 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 ctrl-sum.