Skip to content

Commit

Permalink
Mergio cod dependbot
Browse files Browse the repository at this point in the history
  • Loading branch information
str20tbl committed Feb 6, 2024
1 parent 459cf15 commit 496470e
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Normaliser demo
"""

from techiaith.tts.testun.normaliser import parse_text


Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/date_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
TODO: yn + 2000 - 2050(?) = yn nwy fil x x
TODO: Degawdau 1920au - "un naw dau ddegau" (?) 20au - "ugeiniau"
"""

import re

from .lookups import days, months, mutations, number_dict
Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/known_phrases.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Script to replace known phrases in text
"""

black_list = [
["golwg360", "golwg tri chwech dim"],
["s4c", "es pedwar ec"],
Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/lexicon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Make a lexicon of words and their gender
"""

import importlib.resources as ir

from . import data
Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/money.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Parse monitory values
"""

from .lookups import number_dict
from .number_norm import errors, find_numbers, find_replace

Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/normaliser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Parse text using spacy to find the required normalisation
"""

from string import punctuation

import spacy
Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/number_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Main number normalisation
"""

import re

from .lexicon import build_lexicon
Expand Down
1 change: 1 addition & 0 deletions src/techiaith/tts/testun/time_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Time normaliser
"""

import re

from .lookups import mut_numbers, numbers
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_date_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test number normaliser
"""

from techiaith.tts.testun.date_norm import expand_date_welsh

tests = [
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_known_phrase.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test known_phrases
"""

from techiaith.tts.testun.known_phrases import replace_phrase

# ERAILL POSIB: S4C ("es pedwar ec")
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_lecsicon.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test building of the lexicon
"""

from techiaith.tts.testun.lexicon import build_lexicon


Expand Down
1 change: 1 addition & 0 deletions src/tests/test_money_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test money normaliser
"""

from techiaith.tts.testun.money import clean_money

tests = [
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_number_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test number normaliser
"""

from techiaith.tts.testun.number_norm import find_numbers

# numbers_traditional = [
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test parser
"""

from techiaith.tts.testun.normaliser import parse_text

tests = [
Expand Down
1 change: 1 addition & 0 deletions src/tests/test_time_norm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test time normalisation
"""

from techiaith.tts.testun.time_norm import expand_time_welsh

# bore = 12:01am - 11:59am
Expand Down

0 comments on commit 496470e

Please sign in to comment.