#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Created by @author: priyank ''' import json import requests from SocketServer import ThreadingMixIn import threading import codecs import re import cgi from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from optparse import OptionParser from urlparse import urlparse, parse_qs import os import sys from argparse import ArgumentParser #configuring commandline parser and check if the all command line parameters are valid parser=ArgumentParser() parser.add_argument('-c', '--serverConfigFile', help='server configuration file (with path)', required=True) parser.add_argument('-i', '--inputFile', help='inputFile (with path)', required=True) args = parser.parse_args() #getting command line config files and check if files exist serverFile = args.serverConfigFile inputFile = args.inputFile #function to get sentences from SSF def sentenceCollector(inputString): if "Sentence>\n=2: if line.startswith('