#!/usr/bin/env python

__author__ = "<NAME>"
__copyright__ = "Copyright 2020, The Spark Structured Playground Project"
__credits__ = []
__license__ = "Apache License"
__version__ = "2.0"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "Education Purpose"

import argparse
import gin

if __name__ == "__main__":
    optparse = argparse.ArgumentParser("Twitter Spark SentimentAnalysis pipeline:")

    optparse.add_argument("-cfg", "--config_file",
                          default="config/default_ssp_config.gin",
                          required=False,
                          help="File path of config.ini")

    parsed_args = optparse.parse_args()

    gin.parse_config_file(parsed_args.config_file)
    from ssp.spark.streaming.analytics.sentiment_analysis import SentimentAnalysis
    nlp_processing = SentimentAnalysis()

    nlp_processing.process()
