def _transform(self, path, sentiment=True):
    file = self.open_json_file(path)
    if sentiment:
        result = self.parse_sentiment_file(file)
    else:
        result = self.parse_metadata(file)
    return result
def _transform(self, path, sentiment=True):
    file = self.open_json_file(path)
    if sentiment:
        result = self.parse_sentiment_file(file)
    else:
        result = self.parse_metadata(file)
    return result