def __init__(self, item, ConTextCategory, scope=None, tagid=None, **kwargs): """ item: contextItem used to generate term ConTextCategory: category this term is being used for in pyConText variants """ self.__item = item self.__category = self.__item.getCategory() self.__spanStart = 0 self.__spanEnd = 0 self.__foundPhrase = '' self.__foundDict = {} self.__capture = {} self.__ConTextCategory = ConTextCategory if not tagid: tagid = uuid.uid1().int self.__tagID = tagid if scope == None: self.__scope = [] else: self.__scope = list(scope) self.__SCOPEUPDATED = False
def __init__(self, item, ConTextCategory, scope=None, tagid=None, **kwargs): """ item: contextItem used to generate term ConTextCategory: category this term is being used for in pyConText variants """ self.__item = item self.__category = self.__item.getCategory() self.__spanStart = 0 self.__spanEnd = 0 self.__foundPhrase = '' self.__foundDict = {} self.__ConTextCategory = ConTextCategory if not tagid: tagid = uuid.uid1().int self.__tagID = tagid if scope == None: self.__scope = [] else: self.__scope = list(scope) self.__SCOPEUPDATED = False