def ReadNonScoredWords(non_scored_words_file):
    global non_scored_words
    try:
        f = open(non_scored_words_file)
    except:
        sys.exit(('modify_ctm_edits.py: error opening file: --non-scored-words=' + non_scored_words_file))
    for line in f.readlines():
        a = line.split()
        if (not (len(line.split()) == 1)):
            sys.exit('modify_ctm_edits.py: bad line in non-scored-words file {0}: {1}'.format(non_scored_words_file, line))
        non_scored_words.add(a[0])
    f.close()
def ReadNonScoredWords(non_scored_words_file):
    global non_scored_words
    try:
        f = open(non_scored_words_file)
    except:
        sys.exit(('modify_ctm_edits.py: error opening file: --non-scored-words=' + non_scored_words_file))
    for line in f.readlines():
        a = line.split()
        if (not (len(line.split()) == 1)):
            sys.exit('modify_ctm_edits.py: bad line in non-scored-words file {0}: {1}'.format(non_scored_words_file, line))
        non_scored_words.add(a[0])
    f.close()