Skip to content

Commit b07501a

Browse files
authored
Polish BERT example (#229)
1 parent 484b9b2 commit b07501a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/bert/data/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This gives the explanation on data preparation.
22

3-
When you run `data/download_glue_data.py` in the parent directory, by default, all datasets in GLEU will be stored here. For more information on GLUE, please refer to
3+
When you run `data/download_glue_data.py` in the parent directory, by default, all datasets in the General Language Understanding Evaluation (GLUE) will be stored here. For more information on GLUE, please refer to
44
[gluebenchmark](https://gluebenchmark.com/tasks)
55

66
Here we show the data format of the SSN-2 dataset.
@@ -26,4 +26,4 @@ index sentence
2626
* The test data is in a different format: the first column is a unique index for each test example, the second column is the space-seperated string.
2727

2828

29-
In [`bert/utils/data_utils.py`](https://github.com/asyml/texar/blob/master/examples/bert/utils/data_utils.py), there are 5 types of `Data Processor` Implemented. You can run `python bert_classifier_main.py` and specify `--task` to run on different datasets.
29+
In [`bert/utils/data_utils.py`](https://github.com/asyml/texar-pytorch/blob/master/examples/bert/utils/data_utils.py), there are 5 types of `Data Processor` implemented. You can run `python bert_classifier_main.py` and specify `--task` to run on different datasets.

examples/bert/prepare_data.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@
4444
help="The output directory where the pickled files will be generated. "
4545
"By default it will be set to 'data/{task}'. E.g.: if "
4646
"task is 'MRPC', it will be set as 'data/MRPC'")
47-
parser.add_argument(
48-
"--lower-case", type=bool, default=True,
49-
help="Whether to lower case the input text. Should be True for uncased "
50-
"models and False for cased models.")
5147
parser.add_argument(
5248
"--config-data", default="config_data", help="The dataset config.")
5349
args = parser.parse_args()

0 commit comments

Comments
 (0)