import json
import ast


def loadAspectTermSentimentData(termSentimentDataPath):
    """
    Module to load aspect term sentiment data from Aspect Term Sentiment Extraction Module
    Args:
       termSentimentDataPath: aspect term sentiment data path 
    Returns:
        termSentiData: dictionary of aspect terms and its sentiment
    """    
    with open(termSentimentDataPath) as termSentiFile:
        termSentiData = json.load(termSentiFile)
    termSentiData = ast.literal_eval(json.dumps(termSentiData, ensure_ascii=False, encoding='utf8'))
    return termSentiData