Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
albbas committed Sep 27, 2023
1 parent 14f6361 commit 799a220
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/num2letters.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def digit_as_text(number, lang):
f"lang-{lang}/src/transcriptions/transcriptor-numbers-digit2text.filtered.lookup.hfstol",
)
if not os.path.exists(digit_hfstol):
raise SystemExit(
f"{digit_hfstol} does not exist.\nPlease compile lang-{lang}"
)
raise SystemExit(f"{digit_hfstol} does not exist.\nPlease compile lang-{lang}")

result = run(
f"hfst-lookup -q {digit_hfstol}".split(),
Expand All @@ -46,7 +44,6 @@ def digit_as_text(number, lang):


def generate_inflected_number(line, lang):

generator = f"/usr/share/giella/{lang}/generator-gt-norm.hfstol"
result = run(
f"hfst-lookup -q {generator}".split(),
Expand Down

0 comments on commit 799a220

Please sign in to comment.