Created
January 6, 2020 06:29
-
-
Save santhalakshminarayana/6e4f885e5b98d5a2d92e5e9a4b762f15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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