Skip to content

Commit

Permalink
Menu: Add Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
BLKSerene committed Jan 2, 2025
1 parent 2d6662c commit bac07bd
Show file tree
Hide file tree
Showing 17 changed files with 303 additions and 189 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
## [3.6.0](https://github.com/BLKSerene/Wordless/releases/tag/3.6.0) - ??/??/2025
### 🎉 New Features
- Measures: Add effect size - conditional probability / ΔP / mutual information (normalized) / μ-value / pointwise mutual information (squared) / pointwise mutual information (normalized) / relative risk
- Menu: Add Edit
- Settings: Add Settings - Measures - Effect Size - Mutual Information / Pointwise Mutual Information / Pointwise Mutual Information (Cubic) / Pointwise Mutual Information (Squared)
- Utils: Add Stanza's Sindhi dependency parser

Expand Down
2 changes: 1 addition & 1 deletion tests/test_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_profiler():
main,
dialog_progress = wl_dialogs_misc.Wl_Dialog_Progress_Process_Data(main),
update_gui = update_gui,
profiler_tab = 'all'
tab = 'all'
).run()

def update_gui(err_msg, texts_stats_files):
Expand Down
2 changes: 1 addition & 1 deletion utils/wl_downloader_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def run_cli(commands):
if platform_os == 'Darwin':
subprocess.run(['python3', '-m'] + commands, check = True)
elif platform_os == 'Linux':
subprocess.run(['python3.10', '-m'] + commands, check = True)
subprocess.run(['python3.11', '-m'] + commands, check = True)
except subprocess.CalledProcessError:
subprocess.run(['python', '-m'] + commands, check = True)

Expand Down
14 changes: 5 additions & 9 deletions wordless/wl_colligation_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class Wrapper_Colligation_Extractor(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'colligation_extractor'

# Table
self.table_colligation_extractor = Wl_Table_Colligation_Extractor(self)

Expand Down Expand Up @@ -143,18 +145,12 @@ def __init__(self, main):
self.checkbox_use_regex,
self.checkbox_match_without_tags,
self.checkbox_match_tags
) = wl_widgets.wl_widgets_search_settings(
self,
tab = 'colligation_extractor'
)
) = wl_widgets.wl_widgets_search_settings(self, tab = self.tab)

(
self.label_context_settings,
self.button_context_settings
) = wl_widgets.wl_widgets_context_settings(
self,
tab = 'colligation_extractor'
)
) = wl_widgets.wl_widgets_context_settings(self, tab = self.tab)

self.checkbox_multi_search_mode.stateChanged.connect(self.search_settings_changed)
self.line_edit_search_term.textChanged.connect(self.search_settings_changed)
Expand Down Expand Up @@ -299,7 +295,7 @@ def __init__(self, main):
self.combo_box_use_data,
self.checkbox_use_pct,
self.checkbox_use_cumulative
) = wl_widgets.wl_widgets_fig_settings(self, tab = 'colligation_extractor')
) = wl_widgets.wl_widgets_fig_settings(self, tab = self.tab)

self.label_rank = QLabel(self.tr('Rank:'), self)
(
Expand Down
14 changes: 5 additions & 9 deletions wordless/wl_collocation_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ class Wrapper_Collocation_Extractor(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'collocation_extractor'

# Table
self.table_collocation_extractor = Wl_Table_Collocation_Extractor(self)

Expand Down Expand Up @@ -143,18 +145,12 @@ def __init__(self, main):
self.checkbox_use_regex,
self.checkbox_match_without_tags,
self.checkbox_match_tags
) = wl_widgets.wl_widgets_search_settings(
self,
tab = 'collocation_extractor'
)
) = wl_widgets.wl_widgets_search_settings(self, tab = self.tab)

(
self.label_context_settings,
self.button_context_settings
) = wl_widgets.wl_widgets_context_settings(
self,
tab = 'collocation_extractor'
)
) = wl_widgets.wl_widgets_context_settings(self, tab = self.tab)

self.checkbox_multi_search_mode.stateChanged.connect(self.search_settings_changed)
self.line_edit_search_term.textChanged.connect(self.search_settings_changed)
Expand Down Expand Up @@ -298,7 +294,7 @@ def __init__(self, main):
self.combo_box_use_data,
self.checkbox_use_pct,
self.checkbox_use_cumulative
) = wl_widgets.wl_widgets_fig_settings(self, tab = 'collocation_extractor')
) = wl_widgets.wl_widgets_fig_settings(self, tab = self.tab)

self.label_rank = QLabel(self.tr('Rank:'), self)
(
Expand Down
13 changes: 5 additions & 8 deletions wordless/wl_concordancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ class Wrapper_Concordancer(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'concordancer'

# Table
self.table_concordancer = Wl_Table_Concordancer(self)

layout_results = wl_layouts.Wl_Layout()
Expand Down Expand Up @@ -120,18 +123,12 @@ def __init__(self, main):
self.checkbox_use_regex,
self.checkbox_match_without_tags,
self.checkbox_match_tags
) = wl_widgets.wl_widgets_search_settings(
self,
tab = 'concordancer'
)
) = wl_widgets.wl_widgets_search_settings(self, tab = self.tab)

(
self.label_context_settings,
self.button_context_settings
) = wl_widgets.wl_widgets_context_settings(
self,
tab = 'concordancer'
)
) = wl_widgets.wl_widgets_context_settings(self, tab = self.tab)

self.checkbox_multi_search_mode.stateChanged.connect(self.search_settings_changed)
self.line_edit_search_term.textChanged.connect(self.search_settings_changed)
Expand Down
13 changes: 5 additions & 8 deletions wordless/wl_concordancer_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class Wrapper_Concordancer_Parallel(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'concordancer_parallel'

# Table
self.table_concordancer_parallel = Wl_Table_Concordancer_Parallel(self)

layout_results = wl_layouts.Wl_Layout()
Expand Down Expand Up @@ -106,18 +109,12 @@ def __init__(self, main):
self.checkbox_use_regex,
self.checkbox_match_without_tags,
self.checkbox_match_tags
) = wl_widgets.wl_widgets_search_settings(
self,
tab = 'concordancer_parallel'
)
) = wl_widgets.wl_widgets_search_settings(self, tab = self.tab)

(
self.label_context_settings,
self.button_context_settings
) = wl_widgets.wl_widgets_context_settings(
self,
tab = 'concordancer_parallel'
)
) = wl_widgets.wl_widgets_context_settings(self, tab = self.tab)

self.checkbox_multi_search_mode.stateChanged.connect(self.search_settings_changed)
self.line_edit_search_term.textChanged.connect(self.search_settings_changed)
Expand Down
13 changes: 5 additions & 8 deletions wordless/wl_dependency_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ class Wrapper_Dependency_Parser(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'dependency_parser'

# Table
self.table_dependency_parser = Wl_Table_Dependency_Parser(self)

layout_results = wl_layouts.Wl_Layout()
Expand Down Expand Up @@ -111,19 +114,13 @@ def __init__(self, main):
self.checkbox_use_regex,
self.checkbox_match_without_tags,
self.checkbox_match_tags
) = wl_widgets.wl_widgets_search_settings_tokens(
self,
tab = 'dependency_parser'
)
) = wl_widgets.wl_widgets_search_settings_tokens(self, tab = self.tab)
self.checkbox_match_dependency_relations = QCheckBox(self.tr('Match dependency relations'), self)

(
self.label_context_settings,
self.button_context_settings
) = wl_widgets.wl_widgets_context_settings(
self,
tab = 'dependency_parser'
)
) = wl_widgets.wl_widgets_context_settings(self, tab = self.tab)

self.checkbox_multi_search_mode.stateChanged.connect(self.search_settings_changed)
self.line_edit_search_term.textChanged.connect(self.search_settings_changed)
Expand Down
4 changes: 3 additions & 1 deletion wordless/wl_keyword_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class Wrapper_Keyword_Extractor(wl_layouts.Wl_Wrapper):
def __init__(self, main):
super().__init__(main)

self.tab = 'keyword_extractor'

# Table
self.table_keyword_extractor = Wl_Table_Keyword_Extractor(self)

Expand Down Expand Up @@ -178,7 +180,7 @@ def __init__(self, main):
self.combo_box_use_data,
self.checkbox_use_pct,
self.checkbox_use_cumulative
) = wl_widgets.wl_widgets_fig_settings(self, tab = 'keyword_extractor')
) = wl_widgets.wl_widgets_fig_settings(self, tab = self.tab)

self.label_rank = QLabel(self.tr('Rank:'), self)
(
Expand Down
Loading

0 comments on commit bac07bd

Please sign in to comment.