def detect_type_column(self, col_name) -> str:
    seg_words = self.vocabulary.get_seg_words(col_name)
    last_word = str(seg_words[(- 1)]).lower()
    if (last_word in self.enum_type_key_word):
        return const.ENUM
    if (last_word in self.brand_type_key_word):
        return const.BRAND
    if (last_word in self.date_type_key_word):
        return const.DATE
    if (last_word in self.person_type_key_word):
        return const.PERSON
    if (last_word in self.org_type_key_word):
        return const.ORG
    if (last_word in self.price_type_key_word):
        return const.PRICE
    return const.TEXT
def detect_type_column(self, col_name) -> str:
    seg_words = self.vocabulary.get_seg_words(col_name)
    last_word = str(seg_words[(- 1)]).lower()
    if (last_word in self.enum_type_key_word):
        return const.ENUM
    if (last_word in self.brand_type_key_word):
        return const.BRAND
    if (last_word in self.date_type_key_word):
        return const.DATE
    if (last_word in self.person_type_key_word):
        return const.PERSON
    if (last_word in self.org_type_key_word):
        return const.ORG
    if (last_word in self.price_type_key_word):
        return const.PRICE
    return const.TEXT