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
import csv | |
mrconso = open("/Path/MRCONSO.RRF", 'r') | |
mrsty = open("/Path/MRSTY.RRF", 'r') | |
cuituidict = {} | |
for line in mrsty.readlines(): | |
splitline = line.split("|") | |
cui = splitline[0] | |
tui = splitline[1] | |
if(cuituidict.get(cui) == None): | |
cuituidict[cui] = [tui] |
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
#!/usr/bin/env python | |
#the above just indicates to use python to intepret this file | |
# --------------------------------------------------------------- | |
#This mapper code will input a line of text and output <word, 1> | |
# | |
# --------------------------------------------------------------- | |
import sys #a python module with system functions for this OS |
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
public static void main(String[] args){ | |
System.out.print("hello world") | |
} |