SenticGCNBasePostprocessor

class SenticGCNBasePostprocessor(return_full_text: bool = False, return_aspects_text: bool = False)[source]

Base postprocessor class providing common post processing functions.

__call__(processed_inputs: List[Union[sgnlp.models.sentic_gcn.preprocess.SenticGCNData, sgnlp.models.sentic_gcn.preprocess.SenticGCNBertData]], model_outputs: Union[sgnlp.models.sentic_gcn.modeling.SenticGCNModelOutput, sgnlp.models.sentic_gcn.modeling.SenticGCNBertModelOutput])List[Dict[str, Union[List[str], List[int], float]]][source]

Call self as a function.