From 944a0e116fda9ecad7834365391113cbe7b6baaf Mon Sep 17 00:00:00 2001 From: Aflah <72096386+aflah02@users.noreply.github.com> Date: Sun, 6 Feb 2022 01:52:39 +0530 Subject: [PATCH 1/5] Update README.md Added Help --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7f62529..d3d01c6 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ fasttext == 0.8.3 kenlm - +Since TorchText 0.9.0 some functions have become legacy and their imports need to be modified slightly else they would raise attribute not found error. Incase of such errors check out [this answer](https://stackoverflow.com/a/68278366/13858953) ## Usage @@ -74,4 +74,4 @@ Because the file "ppl_yelp.binary" is too big to upload, we exclude it from the ## Outputs -Update: You can find the outputs of our model in the "outputs" folder. \ No newline at end of file +Update: You can find the outputs of our model in the "outputs" folder. From f396a32a28882d034c5e803522b9d5ff0b6743fa Mon Sep 17 00:00:00 2001 From: Aflah <72096386+aflah02@users.noreply.github.com> Date: Sun, 6 Feb 2022 02:06:17 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3d01c6..33376fb 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ torchtext >= 0.4.0 nltk -fasttext == 0.8.3 +fasttext == 0.8.3 [Using Future Versions Can Cause Errors such as ```ValueError: /home/aflah20082/HW5-TextStyleTransfer/evaluator/acc_yelp.bin has wrong file format!```](https://github.com/fastnlp/style-transformer/issues/2) kenlm From 3878bbef996c386971844b970d19eabfe8f38b8c Mon Sep 17 00:00:00 2001 From: Aflah <72096386+aflah02@users.noreply.github.com> Date: Sun, 6 Feb 2022 02:06:49 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33376fb..81214a2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ torchtext >= 0.4.0 nltk -fasttext == 0.8.3 [Using Future Versions Can Cause Errors such as ```ValueError: /home/aflah20082/HW5-TextStyleTransfer/evaluator/acc_yelp.bin has wrong file format!```](https://github.com/fastnlp/style-transformer/issues/2) +fasttext == 0.8.3 [Using Future Versions Can Cause Errors such as ```ValueError: /PATH/evaluator/acc_yelp.bin has wrong file format!```](https://github.com/fastnlp/style-transformer/issues/2) kenlm From 976c6c09332df7643d86ab131c59bc20d877ddc3 Mon Sep 17 00:00:00 2001 From: Aflah <72096386+aflah02@users.noreply.github.com> Date: Mon, 7 Feb 2022 03:34:28 +0530 Subject: [PATCH 4/5] Update README.md Added Infor for PPL File --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 81214a2..c4aeabb 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,7 @@ To evaluation the model, we used Fasttext, NLTK and KenLM toolkit to evaluate t Because the file "ppl_yelp.binary" is too big to upload, we exclude it from the "evaluator" folder. As a result, you can not evaluate the ppl score via evaluator. To solve this problem, you can use the KenLM toolkit to train a language model by yourself or use other script to evaluate it. +If you wish to get the "ppl_yelp.binary" file you might want to check out this [issue](https://github.com/fastnlp/style-transformer/issues/11) which points to this [fork](https://github.com/MarvinChung/HW5-TextStyleTransfer) which has instructions for getting it ## Outputs From db3c2e0f08b5a052935f0fdf23dec7fc4ae2fa65 Mon Sep 17 00:00:00 2001 From: Aflah <72096386+aflah02@users.noreply.github.com> Date: Mon, 7 Feb 2022 03:36:15 +0530 Subject: [PATCH 5/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4aeabb..8a6db92 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ nltk fasttext == 0.8.3 [Using Future Versions Can Cause Errors such as ```ValueError: /PATH/evaluator/acc_yelp.bin has wrong file format!```](https://github.com/fastnlp/style-transformer/issues/2) -kenlm +kenlm This step might cause errors so might want to check this [fork](https://github.com/MarvinChung/HW5-TextStyleTransfer) which uses ```pypi-kenlm``` Since TorchText 0.9.0 some functions have become legacy and their imports need to be modified slightly else they would raise attribute not found error. Incase of such errors check out [this answer](https://stackoverflow.com/a/68278366/13858953)