import json


def load_table(pinyin_word_table_path):
    """
    Load pinyin-word table from pinyin_word_table_path.

    Args:
        pinyin_word_table_path: Path to the source pinyin-word table json file.

    Returns:
        pinyin-word table, a dict, key->pinyin, value->(word, log(probability)).
    """
    with open(pinyin_word_table_path, 'r') as f:
        return json.load(f)