diff --git a/CHANGELOG.md b/CHANGELOG.md index e03a19b4a..ee32bbc05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@

📄 Changelog

-## [3.6.0](https://github.com/BLKSerene/Wordless/releases/tag/3.6.0) - ??/??/2024 +## [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 - Settings: Add Settings - Measures - Effect Size - Mutual Information / Pointwise Mutual Information / Pointwise Mutual Information (Cubic) / Pointwise Mutual Information (Squared) @@ -31,6 +31,7 @@ - File Area: Fix Open Files - Encoding - File Area: Fix Open Files - Opening Non-text Files - Do not show this again - Utils: Fix Wordless's Japanese kanji tokenizer +- Work Area: Fix Wordlist Generator - Filter results - Number of syllables - Work Area: Fix Work Area - Filter results - File to filter ### ❌ Removals diff --git a/wordless/wl_results/wl_results_filter.py b/wordless/wl_results/wl_results_filter.py index 724a67d8f..9999e8506 100644 --- a/wordless/wl_results/wl_results_filter.py +++ b/wordless/wl_results/wl_results_filter.py @@ -387,6 +387,7 @@ def __init__(self, main, table): self.col_text_dispersion = self.main.settings_global['measures_dispersion'][measure_dispersion]['col_text'] self.col_text_adjusted_freq = self.main.settings_global['measures_adjusted_freq'][measure_adjusted_freq]['col_text'] + self.has_syllabification = settings['generation_settings']['syllabification'] self.has_dispersion = measure_dispersion != 'none' self.has_adjusted_freq = measure_adjusted_freq != 'none' @@ -404,7 +405,7 @@ def __init__(self, main, table): settings = self.settings, filter_name = f'len_{self.type_node}' )) - if self.tab == 'wordlist_generator': + if self.tab == 'wordlist_generator' and settings['generation_settings']['syllabification']: self.layouts_filters.append(widgets_filter( self, label = self.tr('Number of syllables:'), @@ -468,7 +469,9 @@ class Wl_Worker_Results_Filter_Wordlist_Generator(wl_threading.Wl_Worker): def run(self): if self.dialog.tab == 'wordlist_generator': col_node = self.dialog.table.find_header_hor(self.tr('Token')) - col_num_syls = self.dialog.table.find_header_hor(self.tr('Syllabification')) + + if self.dialog.has_syllabification: + col_num_syls = self.dialog.table.find_header_hor(self.tr('Syllabification')) elif self.dialog.tab == 'ngram_generator': col_node = self.dialog.table.find_header_hor(self.tr('N-gram')) @@ -536,7 +539,7 @@ def run(self): if self.dialog.table.model().item(i, col_freq).val > 0: filters.append(len_node_min <= len_node <= len_node_max) - if self.dialog.tab == 'wordlist_generator': + if self.dialog.tab == 'wordlist_generator' and self.dialog.has_syllabification: filter_num_syls = False syllabification = self.dialog.table.model().item(i, col_num_syls).text()