From 010ac7d157884b792f6442e3592b7104ab062e14 Mon Sep 17 00:00:00 2001 From: B Atmaja Date: Fri, 19 Apr 2024 16:30:51 +0900 Subject: [PATCH] add doc to test_runs.sh --- data/emorynlp/README.md | 6 +++--- test_runs.sh | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) mode change 100644 => 100755 test_runs.sh diff --git a/data/emorynlp/README.md b/data/emorynlp/README.md index 6425f93e..516d363a 100644 --- a/data/emorynlp/README.md +++ b/data/emorynlp/README.md @@ -16,6 +16,6 @@ $ python3 process_database.py ``` References: -[1] https://github.com/declare-lab/MELD -[2] S. Zahiri and J. D. Choi. Emotion Detection on TV Show Transcripts with Sequence-based Convolutional Neural Networks. In The AAAI Workshop on Affective Content Analysis, AFFCON'18, 2018. -[3] S. Poria, D. Hazarika, N. Majumder, G. Naik, E. Cambria, R. Mihalcea. MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversation. ACL 2019. \ No newline at end of file +[1] https://github.com/declare-lab/MELD +[2] S. Zahiri and J. D. Choi. Emotion Detection on TV Show Transcripts with Sequence-based Convolutional Neural Networks. In The AAAI Workshop on Affective Content Analysis, AFFCON'18, 2018. +[3] S. Poria, D. Hazarika, N. Majumder, G. Naik, E. Cambria, R. Mihalcea. MELD: A Multimodal Multi-Party Dataset for Emotion Recognition in Conversation. ACL 2019. diff --git a/test_runs.sh b/test_runs.sh old mode 100644 new mode 100755 index f7410dae..891d04fb --- a/test_runs.sh +++ b/test_runs.sh @@ -1,5 +1,21 @@ #!/bin/bash +# Display help message +function Help { + echo "Usage: test_runs.sh [options]" + echo "Options:" + echo " --Explore: test explore module" + echo " --Nkulu: test basic nkululeko" + echo " --Aug: test augmentation" + echo " --Pred: test prediction" + echo " --Demo: test demo" + echo " --Test: test test module" + echo " --Multi: test multidb" + echo " --Spot: test spotlight" + echo " --all: test all modules" + echo " --help: display this help message" +} + # test explore module function Explore { python -m nkululeko.explore --config tests/exp_emodb_explore_data.ini @@ -61,6 +77,7 @@ function Spot { python -m nkululeko.explore --config tests/exp_explore.ini } +Help for arg in "$@"; do if [[ "$arg" = --Explore ]] || [[ "$arg" = --all ]]; then Explore