pastebin

Paste #82696: Untitled Python paste by 121.33.190.186

def st(kind, parted):
    global total_freq
    pb = 1
    pb_a = 1
    for i in parted:
        if i in kind:
            print "find!"
        else:
            kind[i] = 0.001
        if i in total_freq:
            print "find"
        else:
            total_freq[i] = 0.001
        pw = total_freq[i] / total_freq["total_count"]
        print total_freq[i]
        print "\n"
        pw_a = kind[i] / kind["total_count"]

        pb *= pw
        pb_a *= pw_a
    return pb_a / pb

Private
Wrap long lines

2 + 2 =