Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
duch whisper
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed Dec 15, 2023
1 parent dff4a1b commit 8b09e3b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions baln/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def benchmark_directory(in_dir, out_dir, data_directory="data", model_path=os.pa
language = "portuguese"
elif lang == "fr":
language = "french"
elif lang == "nl":
language = "dutch"
else:
raise ValueError(f"Batchalign does not recognize the language code you provided; however, there's a good chance that it just hasn't been added to be recogonized and is actually supported by Whisper. Please reach out. Language code supplied: {lang}")

Expand Down
4 changes: 2 additions & 2 deletions baln/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from multiprocessing import Process, freeze_support

VERSION="0.3.60"
NOTES="don't output conll unless directed"
VERSION="0.3.61"
NOTES="dutch whisper"

#################### OPTIONS ################################

Expand Down
2 changes: 2 additions & 0 deletions baln/retokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ def retokenize_directory(in_directory, model_path=os.path.join("~","mfa_data","m
language = "french"
elif lang == "ca":
language = "catalan"
elif lang == "nl":
language = "dutch"
else:
raise ValueError(f"Batchalign does not recognize the language code you provided; however, there's a good chance that it just hasn't been added to be recogonized and is actually supported by Whisper. Please reach out. Language code supplied: {lang}")

Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set name = "batchalign" %}
{% set version = "0.3.60" %}
{% set version = "0.3.61" %}

package:
name: {{ name }}
Expand Down

0 comments on commit 8b09e3b

Please sign in to comment.