Skip to content

Commit 70bb483

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 061a73a commit 70bb483

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

nemo_text_processing/text_normalization/ko/taggers/tokenize_and_classify.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
import pynini
1818
from pynini.lib import pynutil
1919

20-
from nemo_text_processing.text_normalization.ko.graph_utils import (
21-
GraphFst,
22-
generator_main,
23-
)
24-
20+
from nemo_text_processing.text_normalization.ko.graph_utils import GraphFst, generator_main
2521
from nemo_text_processing.text_normalization.ko.taggers.cardinal import CardinalFst
2622
from nemo_text_processing.utils.logging import logger
2723

nemo_text_processing/text_normalization/ko/verbalizers/post_processing.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
import pynini
1919

20-
from nemo_text_processing.text_normalization.en.graph_utils import (
21-
NEMO_SIGMA,
22-
generator_main,
23-
)
20+
from nemo_text_processing.text_normalization.en.graph_utils import NEMO_SIGMA, generator_main
2421
from nemo_text_processing.utils.logging import logger
2522

2623

@@ -48,6 +45,6 @@ def __init__(self, cache_dir: str = None, overwrite_cache: bool = False):
4845

4946
if far_file:
5047
generator_main(far_file, {"post_process_graph": self.fst})
51-
48+
5249
def get_postprocess_graph(self):
5350
return pynini.cdrewrite(pynini.cross("", ""), "", "", pynini.closure(NEMO_SIGMA)).optimize()

0 commit comments

Comments
 (0)