Exemple #1
0
def fileTransfer(file1,file2):
    fileList=os.listdir(file1)
    count=0
    if(len(fileList)>1):
        for item in fileList:
            str1=file1+'/'+item
            str2=(file2+'/'+'%d.txt') % count
            print "str1 item",item
            segment.codeTransfer(str1,str2)
            count+=1
        print "fileTransfer has finished!"
        print "count=",count
    else:
        print "Eror:trainFile too little"
Exemple #2
0
import segment

segment.codeTransfer("../data/class1/1898.txt", "../data/segmentedData/code1893.txt")
print "code finished"

segment.HY_pymmseg("../data/segmentedData/code1893.txt", "../data/segmentedData/seg1893.txt")