Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)