import csv


def parse_ngram_file(csv_file):
    """Parse a single ngram wordlist into a hashtable."""
    ngrams = {}
    with open(csv_file, newline='') as f:
        for row in csv.reader(f):
            ngram = tuple(row[0].split())
            ngrams[ngram] = True

    return ngrams