From b8613b9a52db9552243dbe30c562788f6c499643 Mon Sep 17 00:00:00 2001 From: xuezhong Date: Mon, 8 Oct 2018 06:25:32 +0000 Subject: [PATCH] change path name --- .../README.md | 0 .../args.py | 0 .../data/download.sh | 0 .../data/md5sum.txt | 0 .../dataset.py | 0 .../rc_model.py | 0 .../run.py | 2 +- .../run.sh | 0 .../utils/__init__.py | 0 .../utils/download_thirdparty.sh | 0 .../utils/dureader_eval.py | 7 +++---- .../utils/get_vocab.py | 0 .../utils/marco_tokenize_data.py | 0 .../utils/marcov1_to_dureader.py | 0 .../utils/marcov2_to_v1_tojsonl.py | 0 .../utils/preprocess.py | 0 .../utils/run_marco2dureader_preprocess.sh | 0 .../vocab.py | 0 18 files changed, 4 insertions(+), 5 deletions(-) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/README.md (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/args.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/data/download.sh (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/data/md5sum.txt (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/dataset.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/rc_model.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/run.py (99%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/run.sh (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/__init__.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/download_thirdparty.sh (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/dureader_eval.py (99%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/get_vocab.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/marco_tokenize_data.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/marcov1_to_dureader.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/marcov2_to_v1_tojsonl.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/preprocess.py (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/utils/run_marco2dureader_preprocess.sh (100%) rename fluid/{machine_reading_comprehesion => machine_reading_comprehension}/vocab.py (100%) 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 1e3f9655..1b68d79f 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 d6098887..fe43989c 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 -- GitLab