Commit
·
9152388
1
Parent(s):
15f1564
bug fix
Browse files
README.md
CHANGED
@@ -79,7 +79,7 @@ class TransformersUD(object):
|
|
79 |
h=ufal.chu_liu_edmonds.chu_liu_edmonds(m)[0]
|
80 |
if [0 for i in h if i==0]!=[0]:
|
81 |
i=([p for s,e,p in w]+["root"]).index("root")
|
82 |
-
j=numpy.nanargmax(m[:,0])
|
83 |
m[0:j,0]=m[j+1:,0]=numpy.nan
|
84 |
h=ufal.chu_liu_edmonds.chu_liu_edmonds(m)[0]
|
85 |
u="# text = "+text.replace("\n"," ")+"\n"
|
|
|
79 |
h=ufal.chu_liu_edmonds.chu_liu_edmonds(m)[0]
|
80 |
if [0 for i in h if i==0]!=[0]:
|
81 |
i=([p for s,e,p in w]+["root"]).index("root")
|
82 |
+
j=i+1 if i<n else numpy.nanargmax(m[:,0])
|
83 |
m[0:j,0]=m[j+1:,0]=numpy.nan
|
84 |
h=ufal.chu_liu_edmonds.chu_liu_edmonds(m)[0]
|
85 |
u="# text = "+text.replace("\n"," ")+"\n"
|