コード例 #1
0
ファイル: kokKelimeler.py プロジェクト: ahmetax/trderlem
def up_lo_kontrol2():
    up = "ÇĞIİÖŞÜ"
    lo = "çğıiöşü"

    s = kucukharf(up)
    if kucukharf(up) != lo:
        print("kucukharf(up) != lo")
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))
コード例 #2
0
ファイル: kokKelimeler.py プロジェクト: erkantaylan/trderlem
def up_lo_kontrol2():
    up = "ÇĞIİÖŞÜ"
    lo = "çğıiöşü"

    s = kucukharf(up)
    if kucukharf(up) != lo:
        print("kucukharf(up) != lo")
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))
コード例 #3
0
ファイル: kokKelimeler.py プロジェクト: ahmetax/trderlem
        print("kucukharf({}) != {}".format(up, s))
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))


if __name__ == "__main__":
    s = kucukharf("Bir varmis bir yokmus bu köse yaz kösesi bu köse kis kösesi ortasinda su sisesi")
    print(s)
    print(duzelt(s))

    """
    say = 0
    fout =open("veri/ekler.txt","w",encoding="utf-8")
    fcok =open("veri/coklar.txt","w",encoding="utf-8")
    fyok =open("veri/yoklar.txt","w",encoding="utf-8")
    ftek =open("veri/tekler.txt","w",encoding="utf-8")
    t0 = time.perf_counter()
    for soz in dertop:
        adaylar = []        #kök adayları buraya depolanacak
        s=soz
        if s in lstKokler:
            adaylar.append(s)
コード例 #4
0
ファイル: kokKelimeler.py プロジェクト: erkantaylan/trderlem
    else:
        print("kucukharf({}) = {}".format(up, s))

    s = buyukharf(lo)
    if buyukharf(lo) != up:
        print("buyukharf(lo) != up")
        print("buyukharf({}) != {}".format(lo, s))
        for i in range(len(s)):
            print("({} - {}) ".format(s[i], hex(ord(s[i]))))
    else:
        print("buyukharf({}) = {}".format(lo, s))


if __name__ == "__main__":
    s = kucukharf(
        'Bir varmis bir yokmus bu köse yaz kösesi bu köse kis kösesi ortasinda su sisesi'
    )
    print(s)
    print(duzelt(s))
    """
    say = 0
    fout =open("veri/ekler.txt","w",encoding="utf-8")
    fcok =open("veri/coklar.txt","w",encoding="utf-8")
    fyok =open("veri/yoklar.txt","w",encoding="utf-8")
    ftek =open("veri/tekler.txt","w",encoding="utf-8")
    t0 = time.perf_counter()
    for soz in dertop:
        adaylar = []        #kök adayları buraya depolanacak
        s=soz
        if s in lstKokler:
            adaylar.append(s)