Skip to content

Commit

Permalink
Test dynamic language
Browse files Browse the repository at this point in the history
  • Loading branch information
Mubaraq Sani authored and Mubaraq Sani committed Aug 18, 2023
1 parent 69e5816 commit 812bcbc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/speech_to_text/counter_in_tgt_lang_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, args):
def add_args(parser):
parser.add_argument("--wait-seconds", default=1, type=int)
parser.add_argument(
"--tgt-lang", default="en", type=str, choices=["en", "es", "de"]
"--tgt-lang", default="en", type=str, # choices=["en", "es", "de"]
)

def policy(self, states: Optional[AgentStates] = None):
Expand Down
7 changes: 6 additions & 1 deletion examples/speech_to_text/eval.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
simuleval \
--agent english_counter_agent.py \
--agent counter_in_tgt_lang_agent.py \
--source-segment-size 1000 \
--source source.txt --target reference/en.txt \
--tgt-lang tgt-lang.txt \
--output output


# default="en", type=str, choices=["en", "es", "de"]
# --tgt_lang tgt-lang.txt \
2 changes: 2 additions & 0 deletions examples/speech_to_text/output/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source_type: speech
target_type: speech
2 changes: 2 additions & 0 deletions examples/speech_to_text/output/metrics.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LAAL AL AP DAL
822.018 822.018 0.581 1061.271
2 changes: 2 additions & 0 deletions examples/speech_to_text/output/scores.tsv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BLEU LAAL AL AP DAL ATD
2.172 822.018 822.018 0.581 1061.271 2028.555
1 change: 1 addition & 0 deletions examples/speech_to_text/tgt-lang.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
en

0 comments on commit 812bcbc

Please sign in to comment.