# -*- coding: utf-8 -*-

import deepnlpf.log as log

class Execute (object):
    """ Execute Scripts External in Outher Language Programation. """

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        
        r = ro.r
        r.source(script)
        
        return r.main(*args)

    def run_java(self, jar_file, *args):
        try:
            import subprocess
            
            return subprocess.check_output(['java', '-jar', jar_file, *args], shell=False)
        except Exception as err:
            log.logger.error(err)
f41b69472c5a86bb18bd7bd8bc2c33dfbc35e253
<mask token>


class Execute(object):
    <mask token>

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        r = ro.r
        r.source(script)
        return r.main(*args)
    <mask token>

<mask token>


class Execute(object):
    <mask token>

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        r = ro.r
        r.source(script)
        return r.main(*args)

    def run_java(self, jar_file, *args):
        try:
            import subprocess
            return subprocess.check_output(['java', '-jar', jar_file, *args
                ], shell=False)
        except Exception as err:
            log.logger.error(err)

<mask token>


class Execute(object):
    """ Execute Scripts External in Outher Language Programation. """

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        r = ro.r
        r.source(script)
        return r.main(*args)

    def run_java(self, jar_file, *args):
        try:
            import subprocess
            return subprocess.check_output(['java', '-jar', jar_file, *args
                ], shell=False)
        except Exception as err:
            log.logger.error(err)

import deepnlpf.log as log


class Execute(object):
    """ Execute Scripts External in Outher Language Programation. """

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        r = ro.r
        r.source(script)
        return r.main(*args)

    def run_java(self, jar_file, *args):
        try:
            import subprocess
            return subprocess.check_output(['java', '-jar', jar_file, *args
                ], shell=False)
        except Exception as err:
            log.logger.error(err)

# -*- coding: utf-8 -*-

import deepnlpf.log as log

class Execute (object):
    """ Execute Scripts External in Outher Language Programation. """

    def __init__(self):
        pass

    def run_r(self, script, *args):
        import rpy2.robjects as ro
        
        r = ro.r
        r.source(script)
        
        return r.main(*args)

    def run_java(self, jar_file, *args):
        try:
            import subprocess
            
            return subprocess.check_output(['java', '-jar', jar_file, *args], shell=False)
        except Exception as err:
            log.logger.error(err)