Update README.md
Browse files
README.md
CHANGED
@@ -33,21 +33,7 @@ dataset = load_dataset("qbao775/PARARULE-Plus-Depth-4")
|
|
33 |
|
34 |
## How to train a model using the dataset?
|
35 |
|
36 |
-
You can follow the `text-classification` [example code](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification#text-classification-examples) from huggingface.
|
37 |
-
|
38 |
-
Here is a script to run the code. You can change the model name if you want.
|
39 |
-
```
|
40 |
-
python run_glue_no_trainer.py \
|
41 |
-
--model_name_or_path bert-base-cased \
|
42 |
-
--task_name qbao775/PARARULE-Plus-Depth-4 \
|
43 |
-
--do_train \
|
44 |
-
--do_eval \
|
45 |
-
--max_seq_length 128 \
|
46 |
-
--per_device_train_batch_size 32 \
|
47 |
-
--learning_rate 2e-5 \
|
48 |
-
--num_train_epochs 3 \
|
49 |
-
--output_dir /tmp/PARARULE-Plus-Depth-4/
|
50 |
-
```
|
51 |
|
52 |
## Citation
|
53 |
```
|
|
|
33 |
|
34 |
## How to train a model using the dataset?
|
35 |
|
36 |
+
You can follow the `text-classification` [example code](https://github.com/huggingface/transformers/tree/main/examples/pytorch/text-classification#text-classification-examples) from huggingface and make some changes for the data loading.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
## Citation
|
39 |
```
|