TwentyNine
commited on
Commit
β’
a77af43
1
Parent(s):
908620a
streamline operation and add example of incorrect conversion
Browse files
README.md
CHANGED
@@ -44,8 +44,8 @@ fix_tokenizer(tokenizer, 'ain_Latn')
|
|
44 |
|
45 |
def convert(
|
46 |
text,
|
47 |
-
model,
|
48 |
-
tokenizer,
|
49 |
src_lang='ain_Japn',
|
50 |
tgt_lang='ain_Latn',
|
51 |
max_length='auto',
|
@@ -71,10 +71,14 @@ def convert(
|
|
71 |
return out[0]
|
72 |
return
|
73 |
|
74 |
-
convert("γγ€γγ»γΏγγ―γ³γ³γγ«γΉγ€"
|
75 |
-
# 'pon seta ku=kor rusuy'
|
76 |
|
77 |
-
convert("γΏγ³γ γγ£γγγγͺγ«γ³γγγ€γ§"
|
78 |
-
# 'tanto γγ£γγ or un paye'
|
79 |
-
#
|
|
|
|
|
|
|
|
|
80 |
```
|
|
|
44 |
|
45 |
def convert(
|
46 |
text,
|
47 |
+
model=model,
|
48 |
+
tokenizer=tokenizer,
|
49 |
src_lang='ain_Japn',
|
50 |
tgt_lang='ain_Latn',
|
51 |
max_length='auto',
|
|
|
71 |
return out[0]
|
72 |
return
|
73 |
|
74 |
+
convert("γγ€γγ»γΏγγ―γ³γ³γγ«γΉγ€")
|
75 |
+
# GOOD: 'pon seta ku=kor rusuy'
|
76 |
|
77 |
+
convert("γΏγ³γ γγ£γγγγͺγ«γ³γγγ€γ§")
|
78 |
+
# OK: 'tanto γγ£γγ or un paye'
|
79 |
+
# IDEAL: 'tanto GAKKO or un paye' or 'tanto GAKKOU or un paye'
|
80 |
+
|
81 |
+
convert("γΏγ³γ γγ£γγγγͺγ«γ³γγγ€γ§")
|
82 |
+
# OK: 'tanto γγ£γγ or un paye'
|
83 |
+
# IDEAL: 'tanto GAKKO or un paye' or 'tanto GAKKOU or un paye'
|
84 |
```
|