def _safe_div(self, v1, v2):
        if v2 == 0:
            return -1
        else:
            return v1 / v2
Safe floating point division function, does not allow division by 0
dataset/ETHPy150Open nltk/nltk/nltk/tag/tnt.py/TnT._safe_div