Exemple #1
0
def mei_go():
    for j in range(1, 3):
        run(1, 1, 1, j, 1, 1)
Exemple #2
0
def nGram_go():
    for i in range(1, 10):
        j = 1
        #for j in range(1,3):
        run(j, float(i) / 10, 1, 1, 1, 1)
Exemple #3
0
def mGram_go():
    for i in range(1, 10):
        for j in range(1, 4):
            run(1, 1, 1, 1, j, float(i) / 10)
Exemple #4
0
    if mem.available < 40 * pow(10, 9):
        key = str(
            raw_input(
                "NOTE: this program is highly resource intensive!"
                "\nIt is not recommended to run on a system with less than 40Gb available system memory.\nProceed? (Y/n): "
            ))
        while key != 'Y':
            if key == 'n':
                sys.exit(0)
            else:
                os.system('clear')
                key = str(raw_input('Proceed? (Y/n): '))

    clearCache(False, True)
    run(
        1, 1, 1, 1, 1, 1
    )  # run default values to save each process computing algorithms outside their scope

    p1 = Process(target=nGram_go)
    #p2 = Process(target=mGram_go())
    #p3 = Process(target=nei_go())
    #p4 = Process(target=mei_go())
    # for i in range (1, 10):
    #     for j in range(1,4):
    #         #p1 = Process(target=run, args= (j, float(i)/10, 1, 1, 1, 1)) # nGram
    #         p2 = Process(target=run, args=(1, 1, j, 1, 1, 1))            # neighborhood
    #         p3 = Process(target=run, args=(1, 1, 1, j, 1, 1))            # metaphone-neighborhood
    #         p4 = Process(target=run, args=(1, 1, 1, 1, j, float(i) / 10))# metaphone-ngram

    p1.start()