# Path: dsenser/constants.py
# CONNECTIVE = "Connective"
# 
# TOK_LIST = "TokenList"


from dsenser.constants import CONNECTIVE, TOK_LIST
from datetime import datetime
from functools import wraps
import sys

        Returns:
          method: wrapped method

        """
        def _wrapper(*args, **kwargs):
            print(self.msg + " started", file=sys.stderr)
            start_time = datetime.utcnow()
            a_func(*args, **kwargs)
            end_time = datetime.utcnow()
            time_delta = (end_time - start_time).total_seconds()
            print(self.msg + " finished ({:.2f} sec)".format(time_delta),
                  file=sys.stderr)
        return wraps(a_func)(_wrapper)


##################################################################
# Methods
def is_explicit(a_rel):
    """Check whether given relation is explicit.

    Args:
      a_rel (dict):
       discourse relation to classify

    Returns:
      bool:
        ``True`` if the relation is explicit, ``False`` otherwise

    """

# Path: dsenser/constants.py
# CONNECTIVE = "Connective"
# 
# TOK_LIST = "TokenList"


# Path: dsenser/utils.py
from dsenser.constants import CONNECTIVE, TOK_LIST
from datetime import datetime
from functools import wraps
import sys


        Returns:
          method: wrapped method

        """
        def _wrapper(*args, **kwargs):
            print(self.msg + " started", file=sys.stderr)
            start_time = datetime.utcnow()
            a_func(*args, **kwargs)
            end_time = datetime.utcnow()
            time_delta = (end_time - start_time).total_seconds()
            print(self.msg + " finished ({:.2f} sec)".format(time_delta),
                  file=sys.stderr)
        return wraps(a_func)(_wrapper)


##################################################################
# Methods
def is_explicit(a_rel):
    """Check whether given relation is explicit.

    Args:
      a_rel (dict):
       discourse relation to classify

    Returns:
      bool:
        ``True`` if the relation is explicit, ``False`` otherwise

    """

    return bool(a_rel[CONNECTIVE][TOK_LIST])