KoichiYasuoka
commited on
Commit
•
eb1db6e
1
Parent(s):
e8d7850
lemma improved
Browse files
ud.py
CHANGED
@@ -55,7 +55,7 @@ class UniversalDependenciesPipeline(TokenClassificationPipeline):
|
|
55 |
w[-1]=z[c[-1]] if c[-1] in z else "ッ"
|
56 |
if g:
|
57 |
l="".join(w).replace(" ","") if max(w)<"z" else c
|
58 |
-
l=l.replace("sh","s").replace("ch","c").replace("au","aw").replace("iu","iw").replace("eu","ew").replace("ou","ow").replace("ai","ay").replace("ui","uy").replace("ei","ey").replace("oi","oy")
|
59 |
if q[i][1]=="人称接辞":
|
60 |
if l.find("=")<0:
|
61 |
l="="+l if i>h[i] else l+"="
|
|
|
55 |
w[-1]=z[c[-1]] if c[-1] in z else "ッ"
|
56 |
if g:
|
57 |
l="".join(w).replace(" ","") if max(w)<"z" else c
|
58 |
+
l=l.replace("sh","s").replace("ch","c").replace("au","aw").replace("iu","iw").replace("eu","ew").replace("uu","uw").replace("ou","ow").replace("ai","ay").replace("ui","uy").replace("ei","ey").replace("oi","oy")
|
59 |
if q[i][1]=="人称接辞":
|
60 |
if l.find("=")<0:
|
61 |
l="="+l if i>h[i] else l+"="
|