KoichiYasuoka
commited on
Commit
•
fdeb6f4
1
Parent(s):
5752f6c
bug fix
Browse files
README.md
CHANGED
@@ -57,7 +57,7 @@ class UDgoeswith(object):
|
|
57 |
v=[(s,e) for s,e in w["offset_mapping"] if s<e]
|
58 |
for i,(s,e) in enumerate(v,1):
|
59 |
q=self.model.config.id2label[p[i,h[i]]].split("|")
|
60 |
-
u+="\t".join([str(i),text[s:e],"_",q[0],"
|
61 |
return u+"\n"
|
62 |
|
63 |
nlp=UDgoeswith("KoichiYasuoka/deberta-base-ainu-ud-goeswith")
|
|
|
57 |
v=[(s,e) for s,e in w["offset_mapping"] if s<e]
|
58 |
for i,(s,e) in enumerate(v,1):
|
59 |
q=self.model.config.id2label[p[i,h[i]]].split("|")
|
60 |
+
u+="\t".join([str(i),text[s:e],"_",q[0],"|".join(q[1:-1]),"_",str(h[i]),q[-1],"_","_" if i<len(v) and e<v[i][0] else "SpaceAfter=No"])+"\n"
|
61 |
return u+"\n"
|
62 |
|
63 |
nlp=UDgoeswith("KoichiYasuoka/deberta-base-ainu-ud-goeswith")
|