Skip to content

Commit

Permalink
improve demo
Browse files Browse the repository at this point in the history
  • Loading branch information
eroux committed Jan 14, 2023
1 parent b206b49 commit 3548d3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ def toEnglish(s, mode):
if line.startswith('#'):
print(line[1:])
continue
print("Unicode: "+line)
words = line.split()
res = ""
res_kvp = ""
res_api = ""
for word in words:
res += converter_kvp.get_api(word)+' '
#res = toEnglish(res, "expert")
print(res)
res_kvp += converter_kvp.get_api(word)+' '
res_api += converter_fast.get_api(word)+' '
print("MST-schema: "+res_api)
print("KVP-schema: "+res_kvp)


#Chinese transcription
sentence = "བཀྲ་ཤིས་"
Expand Down

0 comments on commit 3548d3a

Please sign in to comment.