Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

preprocess.sh 583 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. #!/bin/bash
  2. ENTITIES="euadr GAD"
  3. MAX_LENGTH=128
  4. for ENTITY in $ENTITIES
  5. do
  6. echo "***** " $ENTITY " Preprocessing Start *****"
  7. for SPLIT in {1..10}
  8. do
  9. DATA_DIR=../datasets/RE/$ENTITY/$SPLIT
  10. mv $DATA_DIR/train.tsv $DATA_DIR/train_original.tsv
  11. mv $DATA_DIR/test.tsv $DATA_DIR/test_original.tsv
  12. # Preprocess for BERT-based models
  13. python scripts/preprocess.py $DATA_DIR/train_original.tsv train > $DATA_DIR/train.tsv
  14. python scripts/preprocess.py $DATA_DIR/test_original.tsv test > $DATA_DIR/test.tsv
  15. done
  16. echo "***** " $ENTITY " Preprocessing Done *****"
  17. done
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...