algorithms/itemSimilarity.py
def parseVector(line):
    '''
    Parse each line of the specified data file, assuming a "|" delimiter.
    Converts each rating to a float
    '''
    line = line.split("|")
    return line[0],(line[1],float(line[2]))

    Parse each line of the specified data file, assuming a "|" delimiter.
    Converts each rating to a float
    
Parse each line of the specified data file, assuming a "|" delimiter.
Converts each rating to a float
Parse each line of the specified data file assuming a " | " delimiter . Converts each rating to a float
def parseVector(line):
    line = line.split("|")
    return line[0],(line[1],float(line[2]))
def parseVector ( line ) : line = line . split ( "|" ) return line [ 0 ] , ( line [ 1 ] , float ( line [ 2 ] ) )
Parse each line of the specified data file, assuming a "|" delimiter.
Parse each line of the specified data file assuming a " | " delimiter .
'''
    Parse each line of the specified data file, assuming a "|" delimiter.
    Converts each rating to a float
    '''
line