diff --git a/fluid/machine_reading_comprehesion/README.md b/fluid/machine_reading_comprehension/README.md similarity index 100% rename from fluid/machine_reading_comprehesion/README.md rename to fluid/machine_reading_comprehension/README.md diff --git a/fluid/machine_reading_comprehesion/args.py b/fluid/machine_reading_comprehension/args.py similarity index 100% rename from fluid/machine_reading_comprehesion/args.py rename to fluid/machine_reading_comprehension/args.py diff --git a/fluid/machine_reading_comprehesion/data/download.sh b/fluid/machine_reading_comprehension/data/download.sh similarity index 100% rename from fluid/machine_reading_comprehesion/data/download.sh rename to fluid/machine_reading_comprehension/data/download.sh diff --git a/fluid/machine_reading_comprehesion/data/md5sum.txt b/fluid/machine_reading_comprehension/data/md5sum.txt similarity index 100% rename from fluid/machine_reading_comprehesion/data/md5sum.txt rename to fluid/machine_reading_comprehension/data/md5sum.txt diff --git a/fluid/machine_reading_comprehesion/dataset.py b/fluid/machine_reading_comprehension/dataset.py similarity index 100% rename from fluid/machine_reading_comprehesion/dataset.py rename to fluid/machine_reading_comprehension/dataset.py diff --git a/fluid/machine_reading_comprehesion/rc_model.py b/fluid/machine_reading_comprehension/rc_model.py similarity index 100% rename from fluid/machine_reading_comprehesion/rc_model.py rename to fluid/machine_reading_comprehension/rc_model.py diff --git a/fluid/machine_reading_comprehesion/run.py b/fluid/machine_reading_comprehension/run.py similarity index 99% rename from fluid/machine_reading_comprehesion/run.py rename to fluid/machine_reading_comprehension/run.py index 1e3f965506ca27cc74f380a2307b8bcacfa6a56f..1b68d79f284104097da6b208aee4d763c4f3dcbc 100644 --- a/fluid/machine_reading_comprehesion/run.py +++ b/fluid/machine_reading_comprehension/run.py @@ -21,7 +21,7 @@ import time import os import random import json -import six +import six import paddle import paddle.fluid as fluid diff --git a/fluid/machine_reading_comprehesion/run.sh b/fluid/machine_reading_comprehension/run.sh similarity index 100% rename from fluid/machine_reading_comprehesion/run.sh rename to fluid/machine_reading_comprehension/run.sh diff --git a/fluid/machine_reading_comprehesion/utils/__init__.py b/fluid/machine_reading_comprehension/utils/__init__.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/__init__.py rename to fluid/machine_reading_comprehension/utils/__init__.py diff --git a/fluid/machine_reading_comprehesion/utils/download_thirdparty.sh b/fluid/machine_reading_comprehension/utils/download_thirdparty.sh similarity index 100% rename from fluid/machine_reading_comprehesion/utils/download_thirdparty.sh rename to fluid/machine_reading_comprehension/utils/download_thirdparty.sh diff --git a/fluid/machine_reading_comprehesion/utils/dureader_eval.py b/fluid/machine_reading_comprehension/utils/dureader_eval.py similarity index 99% rename from fluid/machine_reading_comprehesion/utils/dureader_eval.py rename to fluid/machine_reading_comprehension/utils/dureader_eval.py index d60988871a63ce304fc1afbf0af7b1c1801e2161..fe43989ca955a01d6cb8b791a085ee33b8fff6c5 100644 --- a/fluid/machine_reading_comprehesion/utils/dureader_eval.py +++ b/fluid/machine_reading_comprehension/utils/dureader_eval.py @@ -528,10 +528,9 @@ def main(args): except AssertionError as ae: err = ae - print( - json.dumps( - format_metrics(metrics, args.task, err), ensure_ascii=False).encode( - 'utf8')) + print(json.dumps( + format_metrics(metrics, args.task, err), ensure_ascii=False).encode( + 'utf8')) if __name__ == '__main__': diff --git a/fluid/machine_reading_comprehesion/utils/get_vocab.py b/fluid/machine_reading_comprehension/utils/get_vocab.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/get_vocab.py rename to fluid/machine_reading_comprehension/utils/get_vocab.py diff --git a/fluid/machine_reading_comprehesion/utils/marco_tokenize_data.py b/fluid/machine_reading_comprehension/utils/marco_tokenize_data.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/marco_tokenize_data.py rename to fluid/machine_reading_comprehension/utils/marco_tokenize_data.py diff --git a/fluid/machine_reading_comprehesion/utils/marcov1_to_dureader.py b/fluid/machine_reading_comprehension/utils/marcov1_to_dureader.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/marcov1_to_dureader.py rename to fluid/machine_reading_comprehension/utils/marcov1_to_dureader.py diff --git a/fluid/machine_reading_comprehesion/utils/marcov2_to_v1_tojsonl.py b/fluid/machine_reading_comprehension/utils/marcov2_to_v1_tojsonl.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/marcov2_to_v1_tojsonl.py rename to fluid/machine_reading_comprehension/utils/marcov2_to_v1_tojsonl.py diff --git a/fluid/machine_reading_comprehesion/utils/preprocess.py b/fluid/machine_reading_comprehension/utils/preprocess.py similarity index 100% rename from fluid/machine_reading_comprehesion/utils/preprocess.py rename to fluid/machine_reading_comprehension/utils/preprocess.py diff --git a/fluid/machine_reading_comprehesion/utils/run_marco2dureader_preprocess.sh b/fluid/machine_reading_comprehension/utils/run_marco2dureader_preprocess.sh similarity index 100% rename from fluid/machine_reading_comprehesion/utils/run_marco2dureader_preprocess.sh rename to fluid/machine_reading_comprehension/utils/run_marco2dureader_preprocess.sh diff --git a/fluid/machine_reading_comprehesion/vocab.py b/fluid/machine_reading_comprehension/vocab.py similarity index 100% rename from fluid/machine_reading_comprehesion/vocab.py rename to fluid/machine_reading_comprehension/vocab.py