Skip to content

Commit

Permalink
Added future tense forms of zullen highlighted in gray in action widget
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsVroegh committed Nov 11, 2024
1 parent 107fc11 commit 927e4c1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion orangecontrib/storynavigation/widgets/OWSNActionAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<mark class="entity" style="background: #DB7093; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;">
Action | present tense
</mark>
<mark class="entity" style="background: #C7BFC2; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em;">
Action | future tense
</mark>
{}
</div>
<br/>
Expand Down Expand Up @@ -348,6 +351,7 @@ class Error(OWWidget.Error):
# Parts of speech (POS) checkbox selected initialization
past_vbz = Setting(True)
present_vbz = Setting(True)
future_vbz = Setting(True)
all_pos = Setting(True)
zero_pos = Setting(False)
custom = Setting(True)
Expand Down Expand Up @@ -420,6 +424,13 @@ def __init__(self):
"Actions - present tense",
callback=self.pos_selection_changed,
)
self.futurevc = gui.checkBox(
self.postags_box,
self,
"future_vbz",
"Actions - future tense",
callback=self.pos_selection_changed,
)

self.custom_tags = gui.checkBox(
self.postags_box,
Expand All @@ -435,7 +446,7 @@ def __init__(self):
self.allc = gui.checkBox(self.postags_box, self, "all_pos", "All")
self.allc.setChecked(False)
self.allc.stateChanged.connect(self.on_state_changed_pos)
self.pos_checkboxes = [self.pastvc, self.presentvc, self.custom_tags]
self.pos_checkboxes = [self.pastvc, self.presentvc, self.futurevc, self.custom_tags]

self.controlArea.layout().addWidget(self.postags_box)
# Auto-commit box
Expand Down Expand Up @@ -806,6 +817,7 @@ def show_docs(self):
value,
self.past_vbz,
self.present_vbz,
self.future_vbz,
self.custom,
self.story_elements_dict[str(c_index)]
)
Expand Down

0 comments on commit 927e4c1

Please sign in to comment.