-
-
Save tengpeng/1e4996861685ea0019df39e596829223 to your computer and use it in GitHub Desktop.
dict match bid_img
This file contains hidden or 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
bid_img = defaultdict(list) | |
for line in train_photo_to_biz_ids: | |
pid, bid2 = [v.strip() for v in line.split(',')] | |
bid2 = bid2.strip("\r\n") | |
bid_img[bid2].append(pid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment