preprocessing.exc()

    # 2. Extract Features
    extract_feature.exc()

    # 3. Random Data
    random_data.exc()

    # 4. Train Data
    tacc = train.exc()

    # 5. Test
    # 5.1. Test Term Classification
    ttacc = tt.exc()
    # 5.2. Test Address Segmentation
    tas.exc()

    millis_E = int(round(time.time() * 1000))

    logs.append([timeManage.getTime(),
                 (millis_E - millis_S)/1000,
                 ', '.join([key for key in preprocessing_name if preprocessing_name[key]])
                    if bpreprocessing else '',
                 str(len(getFeatureNames())) + ' features: ' + ', '.join(getFeatureNames()),
                 model_type,
                 modelDetails(),
                 tacc,
                 ttacc]
            )

workbook = xlsxwriter.Workbook(folder_running_logs + '/' + file_log)
Exemple #2
0
    preprocessing.exc()

    # 2. Extract Features
    extract_feature.exc()

    # 3. Random Data
    random_data.exc()

    # 4. Train Data
    tacc = train.exc()

    # 5. Test
    # 5.1. Test Term Classification
    ttacc = tt.exc()
    # 5.2. Test Address Segmentation
    acc = tas.exc()

    millis_E = int(round(time.time() * 1000))

    features = getFeatureNames()
    tfilters = getTemplateRemoveFilters()

    logs.append([
        timeManage.getTime(), (millis_E - millis_S) / 1000, ', '.join(
            [key for key in preprocessing_name
             if preprocessing_name[key]]) if bpreprocessing else '',
        str(len(features)) + ' features: ' + ', '.join(features), model_type,
        modelDetails(), tacc, ttacc,
        str(len(tfilters)) + ' filters: ' + ', '.join(tfilters), acc
    ])
from libs.segment import templateSegment

# X = templateSegment('81 Duong 16, P. Binh Tri Dong B, Q.Binh Tan, 0909218877, Dinh Thi Bich Phuong', 3)

# X = templateSegment('a,cb         b', 3)

# from libs.features import feature
#
# X = feature('nguyen thi thanh thuy')
#
# None

from execute.test_address_segment import exc

exc()
None
Exemple #4
0
    preprocessing.exc()

    # 2. Extract Features
    extract_feature.exc()

    # 3. Random Data
    random_data.exc()

    # 4. Train Data
    tacc = train.exc()

    # 5. Test
    # 5.1. Test Term Classification
    ttacc = tt.exc()
    # 5.2. Test Address Segmentation
    acc = tas.exc()

    millis_E = int(round(time.time() * 1000))

    features = getFeatureNames()
    tfilters = getTemplateRemoveFilters()

    logs.append([timeManage.getTime(),
                 (millis_E - millis_S)/1000,
                 ', '.join([key for key in preprocessing_name if preprocessing_name[key]])
                    if bpreprocessing else '',
                 str(len(features)) + ' features: ' + ', '.join(features),
                 model_type,
                 modelDetails(),
                 tacc,
                 ttacc,
# from libs.segment import templateSegment
#
# X = templateSegment('81 Duong 16, P. Binh Tri Dong B, Q.Binh Tan, 0909218877, Dinh Thi Bich Phuong', 3)

# X = templateSegment('a,cb         b', 3)

# from libs.features import feature
#
# X = feature('nguyen thi thanh thuy')
#
# None

from execute.test_address_segment import exc

exc()
None


# from libs.features import preprocess, feature
#
# X = feature(preprocess('(+84 )342-1+ Du.ong 16'))
# None