<commit_before>#!/usr/bin/env python3
import os
import glob


for lang in ("sme", "est", "fin"):
    for gender in ("M", "F"):
        for order in [4,10,20]:
            with open("{}{}_b_v_{}g_m.sh".format(lang,gender,order), 'w') as f:
                print("export TEST_NAME='{}{}_b_v_{}g_m'".format(lang,gender,order), file=f)
                print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
                print(file=f)
                print("export TEST_LM_SCALES=30", file=f)
                print(file=f)

                possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
                am = possible_ams[0][:-3]

                print("export TEST_AM={}".format(am), file=f)
                print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}{}_b_v_{}g_m".format(lang,gender,order), file=f)

                print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
                print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)

                print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)<commit_msg>Recog config b60k<commit_after>#!/usr/bin/env python3
import os
import glob


for lang in ("sme", "est", "fin"):
    for gender in ("M", "F"):
        for order in [4,10,20]:
            with open("{}{}_b_v_{}g_m.sh".format(lang,gender,order), 'w') as f:
                print("export TEST_NAME='{}{}_b_v_{}g_m'".format(lang,gender,order), file=f)
                print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
                print(file=f)
                print("export TEST_LM_SCALES=30", file=f)
                print(file=f)

                possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
                am = possible_ams[0][:-3]

                print("export TEST_AM={}".format(am), file=f)
                print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}{}_b_v_{}g_m".format(lang,gender,order), file=f)

                print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
                print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)

                print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)


for lang in ("sme", "est", "fin"):
    for gender in ("M", "F"):
        for order in [4,10,20]:
            with open("{}{}_b60k_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
                print("export TEST_NAME='{}{}_b60k_v_{}g_m'".format(lang,gender,order), file=f)
                print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
                print(file=f)
                print("export TEST_LM_SCALES=30", file=f)
                print(file=f)

                possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
                am = possible_ams[0][:-3]

                print("export TEST_AM={}".format(am), file=f)
                print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60k_v_{}g_m".format(lang,order), file=f)

                print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
                print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)

                print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)

for lang in ("sme", "est", "fin"):
    for gender in ("M", "F"):
        for order in [4,10,20]:
            with open("{}{}_b60kv_v_{}g_m.sh".format(lang, gender ,order), 'w') as f:
                print("export TEST_NAME='{}{}_b60kv_v_{}g_m'".format(lang,gender,order), file=f)
                print("export TEST_DIR=$GROUP_DIR/p/sami/recog_tests/biglm/", file=f)
                print(file=f)
                print("export TEST_LM_SCALES=30", file=f)
                print(file=f)

                possible_ams = list(glob.glob(os.environ["GROUP_DIR"]+"/p/sami/models/{}_{}/hmm/*_22.ph".format(lang, gender)))
                am = possible_ams[0][:-3]

                print("export TEST_AM={}".format(am), file=f)
                print("export TEST_LM=$GROUP_DIR/p/sami/lmmodels/biglm/{}_b60kv_v_{}g_m".format(lang,order), file=f)

                print("export TEST_TRN=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.trn".format(lang, gender), file=f)
                print("export TEST_WAVLIST=$GROUP_DIR/p/sami/audio_data/{}_{}/devel200.scp".format(lang, gender), file=f)

                print("export ONE_BYTE_ENCODING=ISO-8859-10", file=f)
{'fraction_non_alphanumeric': 0.18485617597292725, 'fraction_numerical': 0.02284263959390863, 'mean_word_length': 2.643297380585516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2353656', 'n_tokens_mistral': 1790, 'n_tokens_neox': 1664, 'n_words': 229}