Skip to content

Commit

Permalink
Merge pull request #1023 from ajdapretnar/col-output-names
Browse files Browse the repository at this point in the history
OWCollocations: fix header names
  • Loading branch information
PrimozGodec authored Nov 17, 2023
2 parents 139eedf + c4e9468 commit 87a7580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orangecontrib/text/widgets/owcollocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 87a7580

Please sign in to comment.