def __init__(self, pack: DataPack, begin: int, end: int): super().__init__(pack, begin, end) self.speaker: Optional[str] = None self.part_id: Optional[int] = None self.sentiment: Dict[str, float] = dict() self.classification: Dict[str, float] = dict() self.classifications: FDict[str, Classification] = FDict(self)
def __init__(self, pack: DataPack, begin: int, end: int): super().__init__(pack, begin, end) self.document_class: List[str] = [] self.sentiment: Dict[str, float] = dict() self.classifications: FDict[str, Classification] = FDict(self)
def __init__(self, pack: DataPack, begin: int, end: int): super().__init__(pack, begin, end) self.string_features: List[str] = [] self.word_forms: FList['Word'] = FList(self) self.token_ranks: FDict[int, 'Word'] = FDict(self)