Visualiser

class grewtse.visualise.GrewTSEVisualiser[source]

Bases: object

A basic visualisation class that creates a violin plot based on a syntactic evaluation.

visualise_syntactic_performance(results, title, target_x_label, alt_x_label, x_axis_label, y_axis_label, filename)[source]

Visualise a syntactic performance evaluation result.

Parameters:
  • results (DataFrame) – pass the results DataFrame created by the GrewTSEEvaluator.

  • title (str) – Give the diagram a main title.

  • target_x_label (str) – Give the original target word and hence first word in the minimal pair a label e.g. ‘Accusative’.

  • alt_x_label (str) – Give the second element in the minimal pair a label e.g. ‘Dative’.

  • x_axis_label (str) – Give the X Axis a title.

  • y_axis_label (str) – Give the Y Axis a title.

  • filename (str) – A filename to save the visualisation.

Return type:

None

Returns: