old_contents: #!/usr/bin/env python3
  
  for lang in ("sme", "est", "fin"):
      for gender in ("M", "F"):
          for tool in ("s", "v"):
              for order in range(5,9):
                  for type in ("m", "w"):
                      with open("{}{}_cow_{}_{}g_{}.sh".format(lang,gender,tool,order,type), 'w') as f:
                          print("export TRAIN_NAME='{}{}_co_{}_{}g_{}'".format(lang,gender,tool,order,type), file=f)
                          print("export TRAIN_DIR=$GROUP_DIR/p/sami/lmmodels/complete/$TRAIN_NAME", file=f)
                          print(file=f)
                          print("export SOURCE_FILES=$GROUP_DIR/p/sami/audio_data/{}_{}/train.trn".format(lang, gender), file=f)
                          print(file=f)
                          print("export NGRAM_ORDER={}".format(order), file=f)
                          print("export PRUNE_THRESHOLD=5e-9", file=f)
                          print(file=f)
                          print("export LA_NGRAM_ORDER={}".format(order//3), file=f)
                          print("export LA_PRUNE_THRESHOLD=5e-8", file=f)
  
                          if type == "m":
                              print("export MORPH_TRAIN_OPTIONS=\"\"", file=f)
                          if tool == "v":
                              print("export VARIKN_OPTIONS=\"\"", file=f)
                              count = 100
                              if lang != "sme":
                                  count = 100000
                              print("export VARIKN_DEVSIZE={}".format(count), file=f)
new_contents: #!/usr/bin/env python3
  
  for lang in ("sme", "est", "fin"):
      for gender in ("M", "F"):
          for tool in ("s", "v"):
              for order in range(5,9):
                  for type in ("m", "w"):
                      with open("{}{}_cow_{}_{}g_{}.sh".format(lang,gender,tool,order,type), 'w') as f:
                          print("export TRAIN_NAME='{}{}_co_{}_{}g_{}'".format(lang,gender,tool,order,type), file=f)
                          print("export TRAIN_DIR=$GROUP_DIR/p/sami/lmmodels/complete/$TRAIN_NAME", file=f)
                          print(file=f)
                          print("export SOURCE_FILES=$GROUP_DIR/p/sami/audio_data/{}_{}/train.trn".format(lang, gender), file=f)
                          print(file=f)
                          print("export NGRAM_ORDER={}".format(order), file=f)
                          print("export PRUNE_THRESHOLD=5e-9", file=f)
                          print(file=f)
                          print("export LA_NGRAM_ORDER={}".format(order//3), file=f)
                          print("export LA_PRUNE_THRESHOLD=5e-8", file=f)
  
                          if type == "m":
                              print("export MORPH_TRAIN_OPTIONS=\"\"", file=f)
                          if tool == "v":
                              print("export VARIKN_OPTIONS=\"\"", file=f)
                              count = 100
                              print("export VARIKN_DEVSIZE={}".format(count), file=f)
subject: fix complete run configs