# Path: adsft/tasks.py
# def task_check_if_extract(message):
# def task_extract(message):
#     def task_extract_grobid(message):
# def task_output_results(msg):
# def task_identify_facilities(message):
# 
# Path: adsft/utils.py
# class FileInputStream(object):
# class TextCleaner(object):
#     def __init__(self, input_stream):
#     def print_info(self):
#     def extract(self, force_extract=False, force_send=False):
#     def __init__(self, text):
#     def translate(self):
#     def decode(self):
#     def normalise(self):
#     def trimwords(self, maxlength=100):
#     def run(self, translate=True, decode=True, normalise=True, trim=True):
# def get_filenames(file_string):


import sys
import os
import tempfile
import argparse
import json
from builtins import zip
from builtins import str
from adsft import tasks, utils
from adsputils import setup_logging, load_config
#!/usr/bin/env python

# ============================= INITIALIZATION ==================================== #

proj_home = os.path.realpath(os.path.dirname(__file__))
config = load_config(proj_home=proj_home)
logger = setup_logging('run.py', proj_home=proj_home,
                        level=config.get('LOGGING_LEVEL', 'INFO'),

# Path: adsft/tasks.py
# def task_check_if_extract(message):
# def task_extract(message):
#     def task_extract_grobid(message):
# def task_output_results(msg):
# def task_identify_facilities(message):
# 
# Path: adsft/utils.py
# class FileInputStream(object):
# class TextCleaner(object):
#     def __init__(self, input_stream):
#     def print_info(self):
#     def extract(self, force_extract=False, force_send=False):
#     def __init__(self, text):
#     def translate(self):
#     def decode(self):
#     def normalise(self):
#     def trimwords(self, maxlength=100):
#     def run(self, translate=True, decode=True, normalise=True, trim=True):
# def get_filenames(file_string):


# Path: run.py
import sys
import os
import tempfile
import argparse
import json
from builtins import zip
from builtins import str
from adsft import tasks, utils
from adsputils import setup_logging, load_config

#!/usr/bin/env python

# ============================= INITIALIZATION ==================================== #

proj_home = os.path.realpath(os.path.dirname(__file__))
config = load_config(proj_home=proj_home)
logger = setup_logging('run.py', proj_home=proj_home,
                        level=config.get('LOGGING_LEVEL', 'INFO'),

                        attach_stdout=config.get('LOG_STDOUT', False))