Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lista=[]
- temp = None
- for concept in uql:
- print concept
- for element in dckf:
- print element
- conid=element["con_id"]
- docid=element["doc_id"]
- keyid=element["key_id"]
- if conid==concept["con_id"] and keyid in concept.keys():
- if not temp or docid!=temp["doc_id"] :
- temp={"doc_id": docid, "con_id": conid}
- lista.append(temp)
- temp[keyid]=concept[keyid]*element["freq"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement