Added Complexity measures

This commit is contained in:
2026-08-01 20:27:51 +02:00
parent 023a220d1c
commit 1572fc826b
10 changed files with 117 additions and 57 deletions
+7 -2
View File
@@ -174,7 +174,9 @@ def create_app():
'BIC': gettext('BIC'),
'MI': gettext('MI'),
'logDice': gettext('logDice'),
't-score': gettext('t-score')
't-score': gettext('t-score'),
'Max depth': gettext('Max depth'),
'MDD': gettext('MDD')
}
if 'Absolute frequency in second treebank' in head:
table_columns2displayed_table_columns['Absolute frequency'] = gettext('Frequency in A')
@@ -254,7 +256,9 @@ def create_app():
'BIC': gettext('BIC'),
'MI': gettext('MI'),
'logDice': gettext('logDice'),
't-score': gettext('t-score')
't-score': gettext('t-score'),
'Max depth': gettext('Max depth'),
'MDD': gettext('MDD')
}
if 'Absolute frequency in second treebank' in head:
table_columns2displayed_table_columns['Absolute frequency'] = gettext('Frequency in A')
@@ -407,6 +411,7 @@ def create_app():
configs['dependency_type'] = 'labeled_trees' in form and form['labeled_trees'] == 'on'
configs['node_order'] = 'fixed_order' in form and form['fixed_order'] == 'on'
configs['association_measures'] = 'association_measures' in form and form['association_measures'] == 'on'
configs['complexity_measures'] = 'yes' if 'complexity_measures' in form and form['complexity_measures'] == 'on' else 'no'
configs['label_whitelist'] = []
configs['root_whitelist'] = []