# Path: JapaneseTokenizer/init_logger.py
# def init_logger(logger):
#     # type: (logging.Logger) -> logging.Logger
#     logger.addHandler(st_handler)
#     logger.propagate = False
# 
#     return logger


import subprocess
import multiprocessing
import socket
import logging
import six
import pexpect
import shutil
import signal
import os
from subprocess import Popen, PIPE, STDOUT
from JapaneseTokenizer import init_logger
from typing import Union
from six import text_type
#! -*- coding: utf-8 -*-
# socket object
# logger
# typing
# else
logger = init_logger.init_logger(logging.getLogger(init_logger.LOGGER_NAME))


class ProcessDownException(Exception):
    pass



# Path: JapaneseTokenizer/init_logger.py
# def init_logger(logger):
#     # type: (logging.Logger) -> logging.Logger
#     logger.addHandler(st_handler)
#     logger.propagate = False
# 
#     return logger


# Path: JapaneseTokenizer/common/sever_handler.py
import subprocess
import multiprocessing
import socket
import logging
import six
import pexpect
import shutil
import signal
import os
from subprocess import Popen, PIPE, STDOUT
from JapaneseTokenizer import init_logger
from typing import Union
from six import text_type

#! -*- coding: utf-8 -*-
# socket object
# logger
# typing
# else
logger = init_logger.init_logger(logging.getLogger(init_logger.LOGGER_NAME))


class ProcessDownException(Exception):
    pass



class UnixProcessHandler(object):