Skip to content

Commit

Permalink
Fix pytype
Browse files Browse the repository at this point in the history
  • Loading branch information
wq2012 committed Oct 21, 2024
1 parent 98ad96e commit 6e061a9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions DiarizationLM/diarizationlm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""__init__ file."""

from . import levenshtein
from . import utils
from . import metrics

levenshtein_with_edits = levenshtein.levenshtein_with_edits
PromptOptions = utils.PromptOptions
transcript_preserving_speaker_transfer = (
utils.transcript_preserving_speaker_transfer)
Expand Down
2 changes: 1 addition & 1 deletion DiarizationLM/diarizationlm/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
try:
import word_levenshtein as levenshtein
except ModuleNotFoundError:
import levenshtein
from diarizationlm import levenshtein


@dataclasses.dataclass
Expand Down
2 changes: 1 addition & 1 deletion DiarizationLM/diarizationlm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
try:
import word_levenshtein as levenshtein
except ModuleNotFoundError:
import levenshtein
from diarizationlm import levenshtein

PUNCTUATIONS = [",", ".", "_", "?", "!", "-", '"', "'"]

Expand Down
2 changes: 1 addition & 1 deletion DiarizationLM/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import setuptools

VERSION = "0.1.2"
VERSION = "0.1.3"

with open("README.md", "r") as file_object:
LONG_DESCRIPTION = file_object.read()
Expand Down

0 comments on commit 6e061a9

Please sign in to comment.