Skip to content

Commit

Permalink
bump hf
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemoka committed Jan 29, 2024
1 parent 8b97851 commit a2b0bd9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions batchalign/models/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch
from transformers.models.whisper.modeling_whisper import _dynamic_time_warping as _dynamic_time_warping
from transformers.models.whisper.modeling_whisper import _median_filter as _median_filter
from transformers.models.whisper.generation_whisper import _dynamic_time_warping as _dynamic_time_warping
from transformers.models.whisper.generation_whisper import _median_filter as _median_filter

import numpy as np

Expand Down
4 changes: 2 additions & 2 deletions batchalign/models/whisper_fa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from torchaudio import load
from torchaudio import transforms as T
from scipy.ndimage import median_filter
from transformers.models.whisper.modeling_whisper import _dynamic_time_warping as dtw
from transformers.models.whisper.modeling_whisper import _median_filter as median_filter
from transformers.models.whisper.generation_whisper import _dynamic_time_warping as dtw
from transformers.models.whisper.generation_whisper import _median_filter as median_filter

from batchalign.models import ASRAudioFile

Expand Down
3 changes: 2 additions & 1 deletion batchalign/pipelines/morphosyntax/ud.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ def morphoanalyze(doc: Document, status_hook:callable = None):
lang.append("zh-hans")

elif not any([i in ["hr", "zh", "zh-hans", "ja", "ko",
"sl", "sr", "bg", "ru"] for i in lang]):
"sl", "sr", "bg", "ru", "et", "hu",
"eu", "el", "he"] for i in lang]):
if "en" in lang:
config["processors"]["mwt"] = "gum"
else:
Expand Down
6 changes: 3 additions & 3 deletions batchalign/version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
0.4.1-post.0
Jan 27th, 2024
More non-MWT languages
0.4.2
Jan 28th, 2024
Even more non-MWT languages; bump HF
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def read(fname):
"pydub>=0.25.1,<0.26.0",
"imblearn",
"plotly>=5.18.0",
"transformers>=4.36",
"transformers>=4.37",
"tokenizers>=0.14.1",
"pycountry>=22.3",
"stanza>=1.7",
Expand Down

0 comments on commit a2b0bd9

Please sign in to comment.