Comments (2)
Ahh I see. Many thanks.
from electra_pytorch.
Hi @PhilipMay
electra_pytorch/_utils/utils.py
Lines 137 to 140 in f4940c7
- Every "row" in the original (raw) huggingface dataset contains a column 'text', which is a document (a very long python string)
ELECTRADataProcessor
will read that long string and split it by\n
into sentences and clear empty sentences by defaultELECTRADataProcessor
sequentially concatenate all sentences from the same document in the same way the official one do it, into many "sample"s.- In conclusion,
ELECTRADataProcessor.map
take a raw huggingface dataset with document as row and output a preprocessed huggingface dataset which has "row" as sample, and each row is with columns "input_ids", "attention_mask", ....
Feel free to tag me if you still have some questions.
from electra_pytorch.
Related Issues (20)
- How do I extract and save the discriminator from the checkpoint? HOT 3
- GPU utilization falls back to 0% when training with multiple GPUs HOT 5
- Sequence length too long for `ELECTRADataProcessor`. HOT 3
- Small typo in the README.md HOT 1
- How do I continue language model training? HOT 3
- How can I pretrain ELECTRA starting from weights from google ? HOT 9
- Is multi_task.py in a working state and if so how should one use it? HOT 1
- Is it possible to perform the fine-tuning within the HuggingFace library? HOT 3
- How to load the cached data from ELECTRAProcessor? HOT 1
- 如何多卡并行训练模型(How to train multi-card models in parallel?) HOT 1
- Training time and ++ version HOT 1
- Pyarrow dataloading issue HOT 2
- Use different tokenizer (and specify special tokens) HOT 1
- SST-2 accuracy is 50% after finetuning HOT 10
- Relative importance of different "tricks" in README HOT 1
- NameError: name 'sort_by_run' is not defined HOT 2
- Custom Dataset
- License info is required
- Python version
- Restarting from previous checkpoint
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 electra_pytorch.