tuw_nlp/text/segmentation.py
def is_err(self, sen1, sen2):
        """determine if the split between sen1 and sen2 was an error"""

        if sen1.text.endswith(':'):
            return True, True

        for abbr in ABBREV:
            if sen1.text.endswith(f' {abbr}'):
                return True, True

        for month in MONTH:
            if sen2.text.startswith(month):
                return True, True

        return False, None
determine if the split between sen1 and sen2 was an error
determine if the split between sen1 and sen2 was an error
determine if the split between sen1 and sen2 was an error
def is_err(self, sen1, sen2):
        if sen1.text.endswith(':'):
            return True, True
        for abbr in ABBREV:
            if sen1.text.endswith(f' {abbr}'):
                return True, True
        for month in MONTH:
            if sen2.text.startswith(month):
                return True, True
        return False, None
def is_err ( self , sen1 , sen2 ) : if sen1 . text . endswith ( ':' ) : return True , True for abbr in ABBREV : if sen1 . text . endswith ( f' {abbr}' ) : return True , True for month in MONTH : if sen2 . text . startswith ( month ) : return True , True return False , None
determine if the split between sen1 and sen2 was an error
determine if the split between sen1 and sen2 was an error
"""determine if the split between sen1 and sen2 was an error"""
self
sen1
sen2