Skip to content

Instantly share code, notes, and snippets.

@santhalakshminarayana
Created January 6, 2020 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santhalakshminarayana/6e4f885e5b98d5a2d92e5e9a4b762f15 to your computer and use it in GitHub Desktop.
Save santhalakshminarayana/6e4f885e5b98d5a2d92e5e9a4b762f15 to your computer and use it in GitHub Desktop.
tot_pairs = len(co_occ_matrix)
p1, p2,occs = list(), list(), list()
for i in co_occ_matrix.keys():
p1.append(i[0])
p2.append(i[1])
occs.append(co_occ_matrix[i])
p1 = np.array(p1)
p2 = np.array(p2)
occs = np.array(occs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment