From f71366dc37063eea676ff1d9d53ca36b163c1270 Mon Sep 17 00:00:00 2001 From: Gonzalo Gasca Meza Date: Wed, 10 Oct 2018 16:21:09 -0700 Subject: [PATCH 1/2] Update README.md Display folder structure. --- README.md | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7388071..42913fa 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,51 @@ Used [BahdanauAttention](https://www.tensorflow.org/api_docs/python/tf/contrib/s ## Usage ### Prepare data -Dataset is available at [harvardnlp/sent-summary](https://github.com/harvardnlp/sent-summary). Locate the summary.tar.gz file in project root directory. Then, +Dataset is available at [harvardnlp/sent-summary](https://github.com/harvardnlp/sent-summary). Locate the summary.tar.gz file in project root directory. + +Then ``` $ python prep_data.py ``` + +A new folder structure will be created: + +``` +. +├── model.py +├── prep_data.py +├── README.md +├── requirements.txt +├── sample_data.zip +├── sumdata +│ ├── DUC2003 +│ │ ├── input.txt +│ │ ├── task1_ref0.txt +│ │ ├── task1_ref1.txt +│ │ ├── task1_ref2.txt +│ │ └── task1_ref3.txt +│ ├── DUC2004 +│ │ ├── input.txt +│ │ ├── task1_ref0.txt +│ │ ├── task1_ref1.txt +│ │ ├── task1_ref2.txt +│ │ └── task1_ref3.txt +│ ├── Giga +│ │ ├── input.txt +│ │ └── task1_ref0.txt +│ └── train +│ ├── train.article.txt +│ ├── train.article.txt.gz +│ ├── train.title.txt +│ ├── train.title.txt.gz +│ ├── valid.article.filter.txt +│ └── valid.title.filter.txt +├── summary.tar.gz +├── test.py +├── train.py +└── utils.py +``` + To use Glove pre-trained embedding, download it via ``` $ python prep_data.py --glove From f2c4a73aaa8a1f1b763833067a016fb18b3476cd Mon Sep 17 00:00:00 2001 From: Gonzalo Gasca Meza Date: Wed, 10 Oct 2018 16:23:21 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 42913fa..1b76737 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,7 @@ Used [BahdanauAttention](https://www.tensorflow.org/api_docs/python/tf/contrib/s ## Usage ### Prepare data -Dataset is available at [harvardnlp/sent-summary](https://github.com/harvardnlp/sent-summary). Locate the summary.tar.gz file in project root directory. - -Then +Dataset is available at [harvardnlp/sent-summary](https://github.com/harvardnlp/sent-summary). Locate the summary.tar.gz file in project root directory. Then, ``` $ python prep_data.py ```