From 2b7fecd854afdbfe4eb5c8b14b00b36935196069 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Mar 2024 01:10:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- matcha/models/baselightningmodule.py | 1 + matcha/text/__init__.py | 1 + matcha/text/symbols.py | 1 + matcha/utils/generate_data_statistics.py | 1 + 4 files changed, 4 insertions(+) diff --git a/matcha/models/baselightningmodule.py b/matcha/models/baselightningmodule.py index 3724888..f0de555 100644 --- a/matcha/models/baselightningmodule.py +++ b/matcha/models/baselightningmodule.py @@ -2,6 +2,7 @@ This is a base lightning module that can be used to train a model. The benefit of this abstraction is that all the logic outside of model definition can be reused for different models. """ + import inspect from abc import ABC from typing import Any, Dict diff --git a/matcha/text/__init__.py b/matcha/text/__init__.py index 71a4b57..452ea64 100644 --- a/matcha/text/__init__.py +++ b/matcha/text/__init__.py @@ -1,4 +1,5 @@ """ from https://github.com/keithito/tacotron """ + from matcha.text import cleaners from matcha.text.symbols import symbols diff --git a/matcha/text/symbols.py b/matcha/text/symbols.py index 7018df5..6249513 100644 --- a/matcha/text/symbols.py +++ b/matcha/text/symbols.py @@ -2,6 +2,7 @@ Defines the set of symbols used in text input to the model. """ + _pad = "_" _punctuation = ';:,.!?¡¿—…"«»“” ' _letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" diff --git a/matcha/utils/generate_data_statistics.py b/matcha/utils/generate_data_statistics.py index 96a5382..fbfedf7 100644 --- a/matcha/utils/generate_data_statistics.py +++ b/matcha/utils/generate_data_statistics.py @@ -4,6 +4,7 @@ Parameters from hparam.py will be used """ + import argparse import json import os