Commit
•
68e4882
1
Parent(s):
a91df99
katakana improved
Browse files
ud.py
CHANGED
@@ -37,7 +37,7 @@ class UniversalDependenciesPipeline(TokenClassificationPipeline):
|
|
37 |
v[i-1]=(v[i-1][0],e,v[i-1][2]+c)
|
38 |
q.pop(i)
|
39 |
u="\n"
|
40 |
-
z={"a":"
|
41 |
f=-1
|
42 |
for i,(s,e,c) in reversed(list(enumerate(v))):
|
43 |
if t[s]=="\u309a":
|
|
|
37 |
v[i-1]=(v[i-1][0],e,v[i-1][2]+c)
|
38 |
q.pop(i)
|
39 |
u="\n"
|
40 |
+
z={"a":"ア","i":"イ","u":"ウ","e":"エ","o":"オ","k":"ㇰ","s":"ㇱ","t":"ㇳ","n":"ㇴ","h":"ㇷ","m":"ㇺ","r":"ㇽ","p":"ㇷ゚"}
|
41 |
f=-1
|
42 |
for i,(s,e,c) in reversed(list(enumerate(v))):
|
43 |
if t[s]=="\u309a":
|