-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[natural_translit] Add new Phon class. Add vowels and pulmonic conson…
…ants with dedicated IPA symbols to the multilingual Phon inventory. The default phonological features are derived from the location of the phoneme on the IPA table. PiperOrigin-RevId: 718116084
- Loading branch information
1 parent
016b469
commit a71185d
Showing
7 changed files
with
3,392 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
nisaba/scripts/natural_translit/phonology/inventories/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright 2024 Nisaba Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Phonological object inventories.""" | ||
|
||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
py_library( | ||
name = "x_mul", | ||
srcs = ["x_mul.py"], | ||
deps = [ | ||
"//nisaba/scripts/natural_translit/phonology:phonological_symbol", | ||
], | ||
) | ||
|
||
py_test( | ||
name = "x_mul_test", | ||
srcs = ["x_mul_test.py"], | ||
main = "x_mul_test.py", | ||
deps = [ | ||
":x_mul", | ||
"//nisaba/scripts/natural_translit/utils:test_op", | ||
"@io_abseil_py//absl/testing:absltest", | ||
], | ||
) |
Oops, something went wrong.