Skip to content

Commit

Permalink
Exposed (commented out) Unicode-mode reverse translitation test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674271043
  • Loading branch information
agutkin authored and copybara-github committed Sep 13, 2024
1 parent 3ea898f commit 8f9110f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions nisaba/scripts/brahmic/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ nisaba_grm_textproto_test(
grammar = ":iso",
)

# TODO: This test is currently failing.
# nisaba_grm_textproto_test(
# name = "iso_utf8_test",
# grammar = ":iso_utf8",
# textproto = "testdata/iso.textproto",
# token_type = "utf8",
# )

nisaba_compile_multi_grm_py(
name = "fixed",
outs = {
Expand Down
3 changes: 1 addition & 2 deletions nisaba/scripts/brahmic/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ def generator_main(exporter_map: multi_grm.ExporterMapping):
exporter[f'FROM_{script}'] = from_script
exporter[f'TO_{script}'] = to_script
# TODO: The utf8 version of `FROM_BRAHMIC` transducer is
# failing to rewrite any native script inputs. The corresponding
# 'iso_utf8_test' is missing as well.
# failing to rewrite any native script inputs.
exporter['FROM_BRAHMIC'] = rw.Rewrite(
p.union(*from_script_fsts).optimize(),
sigma=p.union(*sigma_fsts).optimize()
Expand Down

0 comments on commit 8f9110f

Please sign in to comment.