from sqlalchemy import create_engine # the Python SQL toolkit and Object Relational Mapper from sqlalchemy.orm import sessionmaker # ORM submodule of SQLAlchemy __version__ = '1.1.1' DRAGONFIRE_PATH = os.path.dirname( os.path.abspath(inspect.getfile(inspect.currentframe()))) FNULL = open(os.devnull, 'w') GENDER_PREFIX = {'male': 'sir', 'female': 'my lady'} CONVERSATION_ID = uuid.uuid4() userin = None nlp = spacy.load('en') # Load en_core_web_sm, English, 50 MB, default model learner = Learner(nlp) odqa = ODQA(nlp) dc = DeepConversation() coref = NeuralCoref(nlp) e = Event() user_answering = { 'status': False, 'for': None, 'reason': None, 'options': None } try: raw_input # Python 2 except NameError: raw_input = input # Python 3
from sqlalchemy import create_engine # the Python SQL toolkit and Object Relational Mapper from sqlalchemy.orm import sessionmaker # ORM submodule of SQLAlchemy __version__ = '1.0.2' DRAGONFIRE_PATH = os.path.dirname( os.path.abspath(inspect.getfile(inspect.currentframe()))) FNULL = open(os.devnull, 'w') GENDER_PREFIX = {'male': 'sir', 'female': 'my lady'} CONVERSATION_ID = uuid.uuid4() userin = None nlp = spacy.load('en') # Load en_core_web_sm, English, 50 MB, default model learner = Learner(nlp) omniscient = Omniscient(nlp) dc = DeepConversation() coref = NeuralCoref() e = Event() user_answering = { 'status': False, 'for': None, 'reason': None, 'options': None } try: raw_input # Python 2 except NameError: raw_input = input # Python 3