From c4e94687c4a44c4ad43e2d90286165eeb07a6fba Mon Sep 17 00:00:00 2001 From: Ajda Date: Fri, 10 Nov 2023 14:02:21 +0100 Subject: [PATCH] OWCollocations: fix header names --- orangecontrib/text/widgets/owcollocations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orangecontrib/text/widgets/owcollocations.py b/orangecontrib/text/widgets/owcollocations.py index d44d23d7c..9ef3e1451 100644 --- a/orangecontrib/text/widgets/owcollocations.py +++ b/orangecontrib/text/widgets/owcollocations.py @@ -124,7 +124,7 @@ def __init__(self) -> None: # GUI self.collModel = model = BarRatioTableModel(parent=self) # type: # TableModel - model.setHorizontalHeaderLabels(["Method", "Score"]) + model.setHorizontalHeaderLabels(["Collocation", "Score"]) self.collView = view = TableView(self) # type: TableView self.mainArea.layout().addWidget(view) view.setModel(model) @@ -189,8 +189,8 @@ def commit(self): self.Outputs.corpus.send(output) def create_scores_table(self): - domain = Domain([ContinuousVariable("Collocations")], - metas=[StringVariable("Scores")]) + domain = Domain([ContinuousVariable("Scores")], + metas=[StringVariable("Collocations")]) collocations, scores = self.results