Skip to content

Commit

Permalink
Merge pull request LxMLS#131 from kepler/fix-128
Browse files Browse the repository at this point in the history
Replace deprecated usage of numpy.matrix by numpy.array
  • Loading branch information
ramon-astudillo committed Jun 10, 2019
2 parents 2d2f924 + 70e1400 commit f55a3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxmls/parsing/dependency_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def parse_marginals_nonproj(self, scores):

nw = nr - 1

s = np.matrix(scores)
lap = np.matrix(np.zeros((nw+1, nw+1)))
s = np.array(scores)
lap = np.array(np.zeros((nw+1, nw+1)))
for m in range(1, nw+1):
d = 0.0
for h in range(0, nw+1):
Expand Down

0 comments on commit f55a3cd

Please sign in to comment.