Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568642752
  • Loading branch information
Nisaba Authors authored and copybara-github committed Sep 26, 2023
1 parent 360c856 commit e41cd26
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions nisaba/scripts/abjad_alphabet/nfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try for Urdu:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/abjad_alphabet:nfc
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/abjad_alphabet/nfc.far \
--rules=ARAB \
< /tmp/arab_word_list.txt
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/abjad_alphabet/reading_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try for Urdu:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/abjad_alphabet:reading_norm
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far \
bazel-bin/nisaba/scripts/abjad_alphabet/reading_norm.far \
--rules=UR \
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/abjad_alphabet/reading_norm_utf8.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try for Urdu:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/abjad_alphabet:reading_norm
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far \
bazel-bin/nisaba/scripts/abjad_alphabet/reading_norm.far \
--rules=UR \
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/abjad_alphabet/reversible_roman.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
```shell
ABJAD_ALPHABET_DIR=nisaba/scripts/abjad_alphabet
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
${ABJAD_ALPHABET_DIR}:reversible_roman
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=blaze-genfiles/${ABJAD_ALPHABET_DIR}/reversible_roman.far \
--rules=FROM_UR \
< /tmp/urdu_word_list.txt
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/abjad_alphabet/visual_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
To try for Urdu:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/abjad_alphabet:visual_norm_byte
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far \
bazel-bin/nisaba/scripts/abjad_alphabet/visual_norm_byte.far \
--rules=UR \
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ If the script tag is not supported `brahmic.ScriptError` exception is thrown.
Example for commandline access:

```
bazel build -c opt nlp/grm/language/rewrite-tester \
bazel build -c opt nlp/grm2/thrax/rewrite-tester \
nisaba/scripts/brahmic/visual_norm.far
cat deva-words.txt |
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/visual_norm.far \
--rules=DEVA > visual_normed_deva_words.txt
```
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/fixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
To try:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:fixed
cat /tmp/ml-latn-text.txt |
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/fixed.far \
--rules=MLYM > /tmp/ml-text.txt
```
Expand Down
8 changes: 4 additions & 4 deletions nisaba/scripts/brahmic/iso.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
To try:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:iso
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/iso.far \
--rules=FROM_BRAHMIC \
< /tmp/words.txt
Expand All @@ -31,10 +31,10 @@
To create input - output tsv:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:iso
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/iso.far \
--rules=FROM_BRAHMIC \
< /tmp/words.txt \
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/nfc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
To try each rule:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:nfc
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/nfc.far \
--rules=DEVA < /tmp/deva_words.txt
```
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/reading_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try each rule:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:reading_norm
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/reading_norm.far \
--rules=MLYM < /tmp/mlym_words.txt
```
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/visual_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try each rule:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:visual_norm
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/visual_norm.far \
--rules=MLYM < /tmp/mlym_words.txt
```
Expand Down
4 changes: 2 additions & 2 deletions nisaba/scripts/brahmic/wellformed.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
To try:
```sh
bazel build -c opt nlp/grm/language:rewrite-tester \
bazel build -c opt nlp/grm2/thrax:rewrite-tester \
nisaba/scripts/brahmic:wellformed
bazel-bin/external/org_opengrm_thrax/rewrite-tester \
bazel-bin/nlp/grm2/thrax/rewrite-tester \
--far=bazel-bin/nisaba/scripts/brahmic/wellformed.far \
--rules=DEVA \
< /tmp/words_to_verify.txt
Expand Down

0 comments on commit e41cd26

Please sign in to comment.