SenticGCNBertPostprocessor

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

Class to initialise the Postprocessor for SenticGCNBertModel. Class to postprocess SenticGCNBertModel output to get a list of input text tokens, aspect token index and prediction labels.

Parameters
  • return_full_text (bool) – Flag to indicate if the full text should be included in the output.

  • return_aspects_text (bool) – Flag to indicate if the list of aspects text should be included in the output.