Fixed translations + Resizing line overlap + Disabled No type + Reorganized settings + Other fixes

This commit is contained in:
lkrsnik 2024-07-25 09:29:10 +02:00
parent adff072475
commit ac733092cc
9 changed files with 354 additions and 282 deletions

53
app.py
View File

@ -31,6 +31,42 @@ def get_locale():
return DEFAULT_LANGUAGE
def ilog(n, base):
"""
Find the integer log of n with respect to the base.
>>> import math
>>> for base in range(2, 16 + 1):
... for n in range(1, 1000):
... assert ilog(n, base) == int(math.log(n, base) + 1e-10), '%s %s' % (n, base)
"""
count = 0
while n >= base:
count += 1
n //= base
return count
def sci_notation(n, prec=2):
"""
Represent n in scientific notation, with the specified precision.
>>> sci_notation(1234 * 10**1000)
'1.234e+1003'
>>> sci_notation(10**1000 // 2, prec=1)
'5.0e+999'
"""
if -100000 < n < 100000:
return str(n)
if n < 0:
return "-" + sci_notation(-n, prec=prec)
base = 10
exponent = ilog(n, base)
mantissa = n / base**exponent
return '{0:.{1}f}e{2:+d}'.format(mantissa, prec, exponent)
def create_app():
app = Flask(__name__, static_url_path='/stark/static')
@ -50,7 +86,7 @@ def create_app():
# mandatory parameters with default value
configs['internal_saves'] = './internal_saves'
configs['cpu_cores'] = 12
configs['cpu_cores'] = 1
configs['complete_tree_type'] = True
configs['dependency_type'] = True
configs['node_order'] = True
@ -150,12 +186,19 @@ def create_app():
for j, v in enumerate(row):
content_dict[head[j]].append(v)
displayed_head = [v for k, v in table_columns2displayed_table_columns.items() if k in head]
head = [(k, v) for k, v in table_columns2displayed_table_columns.items() if k in head]
displayed_content_dict = {}
for h in displayed_head:
displayed_content_dict[h] = content_dict[displayed_table_columns2table_columns[h]]
for f_h, h in head:
if f_h == '%DIFF' or f_h == 'OR':
# for num_str in content_dict[displayed_table_columns2table_columns[h]]:
# if n < 0:
# return "-" + sci_notation(-n, prec=prec)
# sci_notation(eval(num))
displayed_content_dict[f_h] = [sci_notation(eval(n)) for n in content_dict[displayed_table_columns2table_columns[h]]]
else:
displayed_content_dict[f_h] = content_dict[displayed_table_columns2table_columns[h]]
return render_template('result.html', head_row=displayed_head, content=displayed_content_dict)
return render_template('result.html', head=head, content=displayed_content_dict)
@app.route('/stark/', methods=['GET', 'POST'])
# @headers({'Cache-Control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'})

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-07-04 11:51+0200\n"
"POT-Creation-Date: 2024-07-23 14:29+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,113 +17,113 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.14.0\n"
#: app.py:108
#: app.py:144
msgid "Tree"
msgstr ""
#: app.py:109
#: app.py:145
msgid "Frequency"
msgstr ""
#: app.py:110
#: app.py:146
msgid "Frequency in B"
msgstr ""
#: app.py:111
#: app.py:147
msgid "Order"
msgstr ""
#: app.py:112
#: app.py:148
msgid "Number of nodes"
msgstr ""
#: app.py:113
#: app.py:149
msgid "Head node"
msgstr ""
#: app.py:114
#: app.py:150
msgid "Grew-match URL"
msgstr ""
#: app.py:115
#: app.py:151
msgid "Ratio"
msgstr ""
#: app.py:116
#: app.py:152
msgid "%DIFF"
msgstr ""
#: app.py:117
#: app.py:153
msgid "OR"
msgstr ""
#: app.py:118
#: app.py:154
msgid "BIC"
msgstr ""
#: app.py:119
#: app.py:155
msgid "MI"
msgstr ""
#: app.py:120
#: app.py:156
msgid "logDice"
msgstr ""
#: app.py:121
#: app.py:157
msgid "t-score"
msgstr ""
#: app.py:124
#: app.py:160
msgid "Frequency in A"
msgstr ""
#: app.py:188 app.py:189
#: app.py:231 app.py:232
msgid "Please insert either input url or file, not both of them."
msgstr ""
#: app.py:199 app.py:280
#: app.py:242 app.py:323
msgid "Incorrect URL!"
msgstr ""
#: app.py:201 app.py:202
#: app.py:244 app.py:245
msgid "Please insert either input url or provide a file."
msgstr ""
#: app.py:210
#: app.py:253
msgid "Please select at least one node type."
msgstr ""
#: app.py:215
#: app.py:258
msgid "Node option"
msgstr ""
#: app.py:215
#: app.py:258
msgid "is not supported. Please enter valid options."
msgstr ""
#: app.py:268 app.py:269
#: app.py:311 app.py:312
msgid "Please insert either compare url or file, not both of them."
msgstr ""
#: app.py:292
#: app.py:335
msgid "Please insert an Integer."
msgstr ""
#: app.py:317
#: app.py:360
msgid ""
"Processing failed! Please recheck your settings, e.g. input format or "
"head node description."
msgstr ""
#: app.py:326
#: app.py:369
msgid "Frequency "
msgstr ""
#: app.py:326
#: app.py:369
msgid "Frequency in A "
msgstr ""
#: app.py:327 templates/base.html:20 templates/base.html:22
#: app.py:370 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15
msgid "code"
msgstr ""
@ -208,19 +208,19 @@ msgstr ""
msgid "Upload a treebank"
msgstr ""
#: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:178
#: templates/index.html:12 templates/index.html:20 templates/index.html:173
#: templates/index.html:180
msgid "in CONLL-U format"
msgstr ""
#: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:151 templates/index.html:170 templates/index.html:171
#: templates/index.html:12 templates/index.html:46 templates/index.html:50
#: templates/index.html:96 templates/index.html:111 templates/index.html:127
#: templates/index.html:133 templates/index.html:139 templates/index.html:145
#: templates/index.html:153 templates/index.html:172 templates/index.html:173
msgid "Help"
msgstr ""
#: templates/index.html:15 templates/index.html:174
#: templates/index.html:15 templates/index.html:176
msgid "Browse"
msgstr ""
@ -228,145 +228,141 @@ msgstr ""
msgid "Upload"
msgstr ""
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "Or"
msgstr ""
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "insert a URL link to a treebank in CONLL-U format"
msgstr ""
#: templates/index.html:29 templates/index.html:188
msgid "Example"
msgstr ""
#: templates/index.html:38
#: templates/index.html:40
msgid "Tree specification"
msgstr ""
#: templates/index.html:44
#: templates/index.html:46
msgid "Tree size"
msgstr ""
#: templates/index.html:44
#: templates/index.html:46
msgid "number of tokens in the tree"
msgstr ""
#: templates/index.html:48
#: templates/index.html:50
msgid "Node type"
msgstr ""
#: templates/index.html:48
#: templates/index.html:50
msgid "token characteristics to consider"
msgstr ""
#: templates/index.html:54
msgid "No type"
msgstr ""
#: templates/index.html:63
#: templates/index.html:56
msgid "Part-of-speech"
msgstr ""
#: templates/index.html:69
#: templates/index.html:62
msgid "Lemma"
msgstr ""
#: templates/index.html:75
#: templates/index.html:68
msgid "Form"
msgstr ""
#: templates/index.html:89
#: templates/index.html:74
msgid "No type"
msgstr ""
#: templates/index.html:91
msgid "Advanced settings"
msgstr ""
#: templates/index.html:94
#: templates/index.html:96
msgid "Labeled trees"
msgstr ""
#: templates/index.html:94
#: templates/index.html:96
msgid "include names of dependency relations"
msgstr ""
#: templates/index.html:98 templates/index.html:113 templates/index.html:155
#: templates/index.html:100 templates/index.html:115 templates/index.html:157
msgid "No"
msgstr ""
#: templates/index.html:101 templates/index.html:116 templates/index.html:158
#: templates/index.html:103 templates/index.html:118 templates/index.html:160
msgid "Yes"
msgstr ""
#: templates/index.html:109
#: templates/index.html:111
msgid "Fixed order"
msgstr ""
#: templates/index.html:109
#: templates/index.html:111
msgid "differentiate trees based on surface word order"
msgstr ""
#: templates/index.html:125
#: templates/index.html:127
msgid "Head"
msgstr ""
#: templates/index.html:125
#: templates/index.html:127
msgid "specify potential restrictions on the head node"
msgstr ""
#: templates/index.html:131
#: templates/index.html:133
msgid "Ignored labels"
msgstr ""
#: templates/index.html:131
#: templates/index.html:133
msgid "specify the dependency labels of nodes to be ignored"
msgstr ""
#: templates/index.html:137
#: templates/index.html:139
msgid "Query"
msgstr ""
#: templates/index.html:137
#: templates/index.html:139
msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr ""
#: templates/index.html:143
#: templates/index.html:145
msgid "Frequency threshold"
msgstr ""
#: templates/index.html:143
#: templates/index.html:145
msgid "specify the minimum frequency of a tree in the treebank"
msgstr ""
#: templates/index.html:151
#: templates/index.html:153
msgid "Association measures"
msgstr ""
#: templates/index.html:151
#: templates/index.html:153
msgid "print MI, logDice and t-score"
msgstr ""
#: templates/index.html:166
#: templates/index.html:168
msgid "Compare treebanks"
msgstr ""
#: templates/index.html:170
#: templates/index.html:172
msgid ""
"Select a reference treebank to identify key phenomena (prints the "
"&#37;DIFF, BIC and OR keyness scores)."
msgstr ""
#: templates/index.html:171 templates/index.html:178
#: templates/index.html:173 templates/index.html:180
msgid "Upload a compare corpus"
msgstr ""
#: templates/index.html:202
#: templates/index.html:206
msgid "Submit"
msgstr ""
#: templates/index.html:210
#: templates/index.html:214
msgid "No results"
msgstr ""
#: templates/index.html:211
#: templates/index.html:215
msgid "Processing with your settings didnt produce any results!"
msgstr ""

View File

@ -33,13 +33,24 @@ function readValuesFromLocalstorage() {
if (inputName === 'frequency_threshold' && text_val === null) {
text_val = '1'
}
if (inputName === 'display_size' && text_val === null) {
text_val = '1-10'
}
inputElement.val(text_val);
} else if (inputType === 'checkbox') {
console.log('aaa')
var check_value = localStorage.getItem(inputName);
if (check_value !== null) {
inputElement.prop('checked', check_value === 'true');
}
if (inputName === 'node_type_none' && check_value === null) {
$('input.association_measures').prop('disabled', true);
$('input.association_measures').prop('checked', false);
} else if(inputName === 'node_type_none' && check_value == 'true') {
$('input.association_measures').prop('disabled', true);
$('input.association_measures').prop('checked', false);
}
}
}
@ -85,6 +96,23 @@ document.addEventListener("DOMContentLoaded", function(event) {
}
});
function adjustLabelPosition() {
$('.dynamic-height').each(function() {
var $label = $(this).find('label');
var $input = $(this).find('input');
// Get the original top and left positions
var originalTop = parseFloat($label.css('top'));
var labelHeight = parseFloat($label.css('height'));
var labelLineHeight = parseFloat($label.css('line-height'));
var heightDelta = (Math.floor(labelHeight / labelLineHeight) - 1) * labelLineHeight;
$label.css({
top: -heightDelta
});
});
}
(function($){
$(function(){
@ -143,19 +171,29 @@ document.addEventListener("DOMContentLoaded", function(event) {
$('input.node_type').on('change', function(e) {
if (this.name == 'node_type_none') {
$('input.node_type').not(this).prop('checked', false);
$('input.association_measures').prop('disabled', true);
$('input.association_measures').prop('checked', false);
} else {
$('input.node_type_none').prop('checked', false);
$('input.association_measures').prop('disabled', false);
}
});
$('a.example-input-link').click(function(e) {
$('#input_url').val(this.href)
$('label[for="input_url"]').addClass('active')
e.preventDefault();
});
$('a.example-compare-link').click(function(e) {
$('#compare_url').val(this.href)
$('label[for="compare_url"]').addClass('active')
e.preventDefault();
});
// Initial adjustment
adjustLabelPosition();
// Adjust on window resize
$(window).resize(adjustLabelPosition);
})(jQuery);

View File

@ -24,11 +24,11 @@
</div>
</div>
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="input_url" name="input_url" type="text" class="validate{% if 'input_url' in validation %} invalid{% endif %}">
<label for="input_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} (<a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="UD_English-GUM"><span class="menu-title sr-only">UD_English-GUM</span></a>,
<a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_French-FTB/master/fr_ftb-ud-train.conllu" title="UD_French-FTB"><span class="menu-title sr-only">UD_French-FTB</span></a>,
<a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_Slovenian-SSJ/master/sl_ssj-ud-train.conllu" title="UD_Slovenian-SSJ"><span class="menu-title sr-only">UD_Slovenian-SSJ</span></a>)</label>
<label for="input_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} <a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-dev.conllu" title="UD_English-GUM"><span class="menu-title sr-only">UD_English-GUM</span></a> -
<a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_French-GSD/master/fr_gsd-ud-dev.conllu" title="UD_French-GSD"><span class="menu-title sr-only">UD_French-GSD</span></a> -
<a class="nav-link example-input-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_Slovenian-SSJ/master/sl_ssj-ud-dev.conllu" title="UD_Slovenian-SSJ"><span class="menu-title sr-only">UD_Slovenian-SSJ</span></a>)</label>
{% if 'input_url' in validation %}
<span class="helper-text" data-error="{{validation['input_url']}}"></span>
{% endif %}
@ -40,25 +40,9 @@
<h6>{{ _('Tree specification') }}</h6>
<div class="card">
<div class="card-content">
<div class="row">
<div class="input-field col s12">
<input id="display_size" name="display_size" type="text" class="validate">
<label for="display_size"><b>{{ _('Tree size') }}</b>: {{ _('number of tokens in the tree') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--size" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
</div>
</div>
<label><b>{{ _('Node type') }}</b>: {{ _('token characteristics to consider') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--node_type" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
<div class="row">
<div class="input-field">
<div class="col s3">
<label>
<input type="checkbox" class="node_type node_type_none filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_none" checked="checked" />
<span>{{ _('No type') }}</span>
{% if 'node_type' in validation %}
<span class="helper-text" data-error="{{validation['node_type']}}"></span>
{% endif %}
</label>
</div>
<div class="col s3">
<label>
<input type="checkbox" class="node_type filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_upos" />
@ -77,6 +61,15 @@
<span>{{ _('Form') }}</span>
</label>
</div>
<div class="col s3">
<label>
<input type="checkbox" class="node_type node_type_none filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_none" checked="checked" />
<span>{{ _('No type') }}</span>
{% if 'node_type' in validation %}
<span class="helper-text" data-error="{{validation['node_type']}}"></span>
{% endif %}
</label>
</div>
<!-- Shared error message for all checkboxes -->
{% if 'node_type' in validation %}
<div class="col s12">
@ -85,12 +78,6 @@
{% endif %}
</div>
</div>
</div>
</div>
<br>
<h6><a class="waves-effect waves-light inline expand" id="advanced-tree-expand"><i class="material-icons em-1">add</i> {{ _('Advanced settings') }}</a></h6>
<div class="card" id="advanced-tree">
<div class="card-content">
<div class="row">
<div class="col s12">
<label><b>{{ _('Labeled trees') }}</b>: {{ _('include names of dependency relations') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--labeled" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
@ -121,26 +108,38 @@
</div>
</div>
</div>
</div>
</div>
<br>
<h6><a class="waves-effect waves-light inline expand" id="advanced-tree-expand"><i class="material-icons em-1">add</i> {{ _('Advanced settings') }}</a></h6>
<div class="card" id="advanced-tree">
<div class="card-content">
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="root_restriction" name="root_restriction" type="text" class="validate">
<label for="root_restriction"><b>{{ _('Head') }}</b>: {{ _('specify potential restrictions on the head node') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--head" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="ignored_labels" name="ignored_labels" type="text" class="validate">
<label for="ignored_labels"><b>{{ _('Ignored labels') }}</b>: {{ _('specify the dependency labels of nodes to be ignored') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--ignore_labels" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="display_size" name="display_size" type="text" class="validate" value="1-10">
<label for="display_size"><b>{{ _('Tree size') }}</b>: {{ _('number of tokens in the tree') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--size" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
</div>
</div>
<div class="row">
<div class="input-field col s12 dynamic-height">
<input id="query" name="query" type="text" class="validate">
<label for="query"><b>{{ _('Query') }}</b>: {{ _('write a query. Note: Tree size attribute will be ignored!') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--query" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="frequency_threshold" name="frequency_threshold" type="text" class="validate {% if 'frequency_threshold' in validation %} invalid{% endif %}" value="1">
<label for="frequency_threshold"><b>{{ _('Frequency threshold') }}</b>: {{ _('specify the minimum frequency of a tree in the treebank') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--frequency_threshold" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
{% if 'frequency_threshold' in validation %}
@ -155,7 +154,7 @@
<div class="switch">
<label>
{{ _('No') }}
<input type="checkbox" name="association_measures">
<input class="association_measures" type="checkbox" name="association_measures">
<span class="lever"></span>
{{ _('Yes') }}
</label>
@ -185,11 +184,11 @@
</div>
</div>
<div class="row">
<div class="input-field col s12">
<div class="input-field col s12 dynamic-height">
<input id="compare_url" name="compare_url" type="text" class="validate{% if 'compare_url' in validation %} invalid{% endif %}">
<label for="compare_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} (<a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="UD_English-GUM"><span class="menu-title sr-only">UD_English-GUM</span></a>,
<a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_French-FTB/master/fr_ftb-ud-train.conllu" title="UD_French-FTB"><span class="menu-title sr-only">UD_French-FTB</span></a>,
<a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_Slovenian-SSJ/master/sl_ssj-ud-train.conllu" title="UD_Slovenian-SSJ"><span class="menu-title sr-only">UD_Slovenian-SSJ</span></a>)</label>
<label for="compare_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} <a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-dev.conllu" title="UD_English-GUM"><span class="menu-title sr-only">UD_English-GUM</span></a> -
<a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_French-GSD/master/fr_gsd-ud-dev.conllu" title="UD_French-GSD"><span class="menu-title sr-only">UD_French-GSD</span></a> -
<a class="nav-link example-compare-link" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_Slovenian-SSJ/master/sl_ssj-ud-dev.conllu" title="UD_Slovenian-SSJ"><span class="menu-title sr-only">UD_Slovenian-SSJ</span></a>)</label>
{% if 'compare_url' in validation %}
<span class="helper-text" data-error="{{validation['compare_url']}}"></span>
{% endif %}

View File

@ -23,9 +23,9 @@
<table>
<thead>
<tr>
{% for head in head_row %}
{% if not head == 'Grew-match URL' %}
<th><span>{{ head }} </span><span class="th-desc">&#x25be;</span><span class="th-asc">&#x25b4;</span></th>
{% for h, h_t in head %}
{% if not h == 'Grew-match URL' %}
<th><span>{{ h_t }} </span><span class="th-desc">&#x25be;</span><span class="th-asc">&#x25b4;</span></th>
{% endif %}
{% endfor %}
</tr>

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-07-04 11:51+0200\n"
"POT-Creation-Date: 2024-07-23 14:29+0200\n"
"PO-Revision-Date: 2024-02-14 14:36+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: en <LL@li.org>\n"
@ -18,99 +18,99 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.14.0\n"
#: app.py:108
#: app.py:144
msgid "Tree"
msgstr ""
#: app.py:109
#: app.py:145
msgid "Frequency"
msgstr ""
#: app.py:110
#: app.py:146
msgid "Frequency in B"
msgstr "Frequency-B"
#: app.py:111
#: app.py:147
msgid "Order"
msgstr ""
#: app.py:112
#: app.py:148
msgid "Number of nodes"
msgstr "Node count"
#: app.py:113
#: app.py:149
msgid "Head node"
msgstr "Head"
#: app.py:114
#: app.py:150
msgid "Grew-match URL"
msgstr ""
#: app.py:115
#: app.py:151
msgid "Ratio"
msgstr ""
#: app.py:116
#: app.py:152
msgid "%DIFF"
msgstr ""
#: app.py:117
#: app.py:153
msgid "OR"
msgstr ""
#: app.py:118
#: app.py:154
msgid "BIC"
msgstr ""
#: app.py:119
#: app.py:155
msgid "MI"
msgstr ""
#: app.py:120
#: app.py:156
msgid "logDice"
msgstr ""
#: app.py:121
#: app.py:157
msgid "t-score"
msgstr ""
#: app.py:124
#: app.py:160
msgid "Frequency in A"
msgstr "Frequency-A"
#: app.py:188 app.py:189
#: app.py:231 app.py:232
msgid "Please insert either input url or file, not both of them."
msgstr "Please insert either a file or a URL link, not both of them."
#: app.py:199 app.py:280
#: app.py:242 app.py:323
msgid "Incorrect URL!"
msgstr ""
#: app.py:201 app.py:202
#: app.py:244 app.py:245
msgid "Please insert either input url or provide a file."
msgstr "Please insert either a file or a URL link."
#: app.py:210
#: app.py:253
msgid "Please select at least one node type."
msgstr ""
#: app.py:215
#: app.py:258
msgid "Node option"
msgstr "Node option"
#: app.py:215
#: app.py:258
msgid "is not supported. Please enter valid options."
msgstr ""
#: app.py:268 app.py:269
#: app.py:311 app.py:312
msgid "Please insert either compare url or file, not both of them."
msgstr "Please insert either a file or a URL link, not both of them."
#: app.py:292
#: app.py:335
msgid "Please insert an Integer."
msgstr "Please insert an integer number."
#: app.py:317
#: app.py:360
msgid ""
"Processing failed! Please recheck your settings, e.g. input format or head "
"node description."
@ -118,15 +118,15 @@ msgstr ""
"Processing failed! Please recheck your settings, e.g. input format or query "
"description."
#: app.py:326
#: app.py:369
msgid "Frequency "
msgstr ""
#: app.py:326
#: app.py:369
msgid "Frequency in A "
msgstr "Frequency-A "
#: app.py:327 templates/base.html:20 templates/base.html:22
#: app.py:370 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15
msgid "code"
msgstr "en"
@ -234,19 +234,19 @@ msgstr "Input treebank"
msgid "Upload a treebank"
msgstr "Upload a treebank"
#: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:178
#: templates/index.html:12 templates/index.html:20 templates/index.html:173
#: templates/index.html:180
msgid "in CONLL-U format"
msgstr "in CONLL-U format"
#: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:151 templates/index.html:170 templates/index.html:171
#: templates/index.html:12 templates/index.html:46 templates/index.html:50
#: templates/index.html:96 templates/index.html:111 templates/index.html:127
#: templates/index.html:133 templates/index.html:139 templates/index.html:145
#: templates/index.html:153 templates/index.html:172 templates/index.html:173
msgid "Help"
msgstr "Help"
#: templates/index.html:15 templates/index.html:174
#: templates/index.html:15 templates/index.html:176
msgid "Browse"
msgstr "Browse"
@ -254,147 +254,143 @@ msgstr "Browse"
msgid "Upload"
msgstr "Upload"
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "Or"
msgstr "Or"
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "insert a URL link to a treebank in CONLL-U format"
msgstr "insert a URL link to a treebank in CONLL-U format"
msgstr "insert a URL link to a treebank in CONLL-U format (examples:"
#: templates/index.html:29 templates/index.html:188
msgid "Example"
msgstr "Example"
#: templates/index.html:38
#: templates/index.html:40
msgid "Tree specification"
msgstr "Tree specification"
#: templates/index.html:44
#: templates/index.html:46
msgid "Tree size"
msgstr "Tree size"
#: templates/index.html:44
#: templates/index.html:46
msgid "number of tokens in the tree"
msgstr "number of tokens (words) in the tree"
#: templates/index.html:48
#: templates/index.html:50
msgid "Node type"
msgstr "Node type"
#: templates/index.html:48
#: templates/index.html:50
msgid "token characteristics to consider"
msgstr "token characteristics to consider"
#: templates/index.html:54
msgid "No type"
msgstr "No type"
#: templates/index.html:63
#: templates/index.html:56
msgid "Part-of-speech"
msgstr "Part-of-speech"
#: templates/index.html:69
#: templates/index.html:62
msgid "Lemma"
msgstr "Lemma"
#: templates/index.html:75
#: templates/index.html:68
msgid "Form"
msgstr "Form"
#: templates/index.html:89
#: templates/index.html:74
msgid "No type"
msgstr "No type"
#: templates/index.html:91
msgid "Advanced settings"
msgstr "Advanced settings"
#: templates/index.html:94
#: templates/index.html:96
msgid "Labeled trees"
msgstr "Labeled trees"
#: templates/index.html:94
#: templates/index.html:96
msgid "include names of dependency relations"
msgstr "include names of dependency relations"
#: templates/index.html:98 templates/index.html:113 templates/index.html:155
#: templates/index.html:100 templates/index.html:115 templates/index.html:157
msgid "No"
msgstr "No"
#: templates/index.html:101 templates/index.html:116 templates/index.html:158
#: templates/index.html:103 templates/index.html:118 templates/index.html:160
msgid "Yes"
msgstr "Yes"
#: templates/index.html:109
#: templates/index.html:111
msgid "Fixed order"
msgstr "Fixed order"
#: templates/index.html:109
#: templates/index.html:111
msgid "differentiate trees based on surface word order"
msgstr "differentiate trees based on surface word order"
#: templates/index.html:125
#: templates/index.html:127
msgid "Head"
msgstr "Head"
#: templates/index.html:125
#: templates/index.html:127
msgid "specify potential restrictions on the head node"
msgstr "specify potential restrictions on the head node"
#: templates/index.html:131
#: templates/index.html:133
msgid "Ignored labels"
msgstr ""
#: templates/index.html:131
#: templates/index.html:133
msgid "specify the dependency labels of nodes to be ignored"
msgstr ""
#: templates/index.html:137
#: templates/index.html:139
msgid "Query"
msgstr ""
#: templates/index.html:137
#: templates/index.html:139
msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr ""
#: templates/index.html:143
#: templates/index.html:145
msgid "Frequency threshold"
msgstr "Frequency threshold"
#: templates/index.html:143
#: templates/index.html:145
msgid "specify the minimum frequency of a tree in the treebank"
msgstr "specify the minimum frequency of a tree in the treebank"
#: templates/index.html:151
#: templates/index.html:153
msgid "Association measures"
msgstr "Association measures"
#: templates/index.html:151
#: templates/index.html:153
msgid "print MI, logDice and t-score"
msgstr "print MI, logDice and t-score"
#: templates/index.html:166
#: templates/index.html:168
msgid "Compare treebanks"
msgstr ""
#: templates/index.html:170
#: templates/index.html:172
msgid ""
"Select a reference treebank to identify key phenomena (prints the frequency ration and the &#37;DIFF, "
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, "
"BIC and OR keyness scores)."
msgstr ""
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, "
"BIC and Odds Ratio scores)."
"Select a reference treebank to identify key phenomena (prints the frequency "
"ration and the &#37;DIFF, BIC and OR keyness scores)."
#: templates/index.html:171 templates/index.html:178
#: templates/index.html:173 templates/index.html:180
msgid "Upload a compare corpus"
msgstr "Upload a reference treebank"
#: templates/index.html:202
#: templates/index.html:206
msgid "Submit"
msgstr "Get trees"
#: templates/index.html:210
#: templates/index.html:214
msgid "No results"
msgstr ""
#: templates/index.html:211
#: templates/index.html:215
msgid "Processing with your settings didnt produce any results!"
msgstr "Processing with your settings did not produce any results."
@ -410,6 +406,9 @@ msgstr "Back to selected settings"
msgid "Download complete results"
msgstr "Download complete results"
#~ msgid "Example"
#~ msgstr "Example"
#~ msgid "intro_description"
#~ msgstr ""
#~ "Welcome to the online demo interface for STARK - a highly-customizible "

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-07-04 11:51+0200\n"
"POT-Creation-Date: 2024-07-23 14:29+0200\n"
"PO-Revision-Date: 2024-02-14 14:36+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: sl <LL@li.org>\n"
@ -18,99 +18,99 @@ msgstr ""
"n%100==4 ? 2 : 3);\n"
"Generated-By: Babel 2.14.0\n"
#: app.py:108
#: app.py:144
msgid "Tree"
msgstr "Drevo"
#: app.py:109
#: app.py:145
msgid "Frequency"
msgstr "Pogostost"
#: app.py:110
#: app.py:146
msgid "Frequency in B"
msgstr "Pogostost v B"
#: app.py:111
#: app.py:147
msgid "Order"
msgstr "Besedni red"
#: app.py:112
#: app.py:148
msgid "Number of nodes"
msgstr "Št. vozlišč"
#: app.py:113
#: app.py:149
msgid "Head node"
msgstr "Jedro"
#: app.py:114
#: app.py:150
msgid "Grew-match URL"
msgstr "Povezava na Grew-match"
#: app.py:115
#: app.py:151
msgid "Ratio"
msgstr ""
#: app.py:116
#: app.py:152
msgid "%DIFF"
msgstr ""
#: app.py:117
#: app.py:153
msgid "OR"
msgstr ""
#: app.py:118
#: app.py:154
msgid "BIC"
msgstr ""
#: app.py:119
#: app.py:155
msgid "MI"
msgstr "MI"
#: app.py:120
#: app.py:156
msgid "logDice"
msgstr "logDice"
#: app.py:121
#: app.py:157
msgid "t-score"
msgstr "t-test"
#: app.py:124
#: app.py:160
msgid "Frequency in A"
msgstr "Pogostost v A"
#: app.py:188 app.py:189
#: app.py:231 app.py:232
msgid "Please insert either input url or file, not both of them."
msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega."
#: app.py:199 app.py:280
#: app.py:242 app.py:323
msgid "Incorrect URL!"
msgstr "URL ni pravilne oblike."
#: app.py:201 app.py:202
#: app.py:244 app.py:245
msgid "Please insert either input url or provide a file."
msgstr "Naložite datoteko ali vnesite povezavo URL."
#: app.py:210
#: app.py:253
msgid "Please select at least one node type."
msgstr "Izberite vsaj eno možnost (npr. besedno vrsto)."
#: app.py:215
#: app.py:258
msgid "Node option"
msgstr "Vrsta vozlišč"
#: app.py:215
#: app.py:258
msgid "is not supported. Please enter valid options."
msgstr "vmesnik ne podpira. Vnesite eno izmed veljavnih možnosti."
#: app.py:268 app.py:269
#: app.py:311 app.py:312
msgid "Please insert either compare url or file, not both of them."
msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega."
#: app.py:292
#: app.py:335
msgid "Please insert an Integer."
msgstr "Vnesite celo število (npr. 3)."
#: app.py:317
#: app.py:360
msgid ""
"Processing failed! Please recheck your settings, e.g. input format or head "
"node description."
@ -118,15 +118,15 @@ msgstr ""
"Procesiranje ni bilo uspešno! Preverite nastavitve, kot sta format ali opis "
"lastnosti jedra."
#: app.py:326
#: app.py:369
msgid "Frequency "
msgstr "Pogostost "
#: app.py:326
#: app.py:369
msgid "Frequency in A "
msgstr "Pogostost v A "
#: app.py:327 templates/base.html:20 templates/base.html:22
#: app.py:370 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15
msgid "code"
msgstr "sl"
@ -235,19 +235,19 @@ msgstr "Vhodni podatki"
msgid "Upload a treebank"
msgstr "Naložite korpus"
#: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:178
#: templates/index.html:12 templates/index.html:20 templates/index.html:173
#: templates/index.html:180
msgid "in CONLL-U format"
msgstr "v formatu CONLL-U"
#: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:151 templates/index.html:170 templates/index.html:171
#: templates/index.html:12 templates/index.html:46 templates/index.html:50
#: templates/index.html:96 templates/index.html:111 templates/index.html:127
#: templates/index.html:133 templates/index.html:139 templates/index.html:145
#: templates/index.html:153 templates/index.html:172 templates/index.html:173
msgid "Help"
msgstr "pomoč"
#: templates/index.html:15 templates/index.html:174
#: templates/index.html:15 templates/index.html:176
msgid "Browse"
msgstr "Izberi"
@ -255,149 +255,143 @@ msgstr "Izberi"
msgid "Upload"
msgstr "Naloži datoteko"
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "Or"
msgstr "Ali"
#: templates/index.html:29 templates/index.html:188
#: templates/index.html:29 templates/index.html:190
msgid "insert a URL link to a treebank in CONLL-U format"
msgstr "vnesite povezavo URL do korpusa v formatu CONLL-U"
msgstr "vnesite povezavo URL do korpusa v formatu CONLL-U (primeri:"
#: templates/index.html:29 templates/index.html:188
msgid "Example"
msgstr "primer"
#: templates/index.html:38
#: templates/index.html:40
msgid "Tree specification"
msgstr "Opredelitev dreves"
#: templates/index.html:44
#: templates/index.html:46
msgid "Tree size"
msgstr "Velikost drevesa"
#: templates/index.html:44
#: templates/index.html:46
msgid "number of tokens in the tree"
msgstr "število vozlišč (besed) v drevesu"
#: templates/index.html:48
#: templates/index.html:50
msgid "Node type"
msgstr "Vrsta vozlišč"
#: templates/index.html:48
#: templates/index.html:50
msgid "token characteristics to consider"
msgstr "upoštevane lastnosti besed"
#: templates/index.html:54
msgid "No type"
msgstr "Brez vrste"
#: templates/index.html:63
#: templates/index.html:56
msgid "Part-of-speech"
msgstr "Besedna vrsta"
#: templates/index.html:69
#: templates/index.html:62
msgid "Lemma"
msgstr "Lema"
#: templates/index.html:75
#: templates/index.html:68
msgid "Form"
msgstr "Oblika"
#: templates/index.html:89
#: templates/index.html:74
msgid "No type"
msgstr "Brez vrste"
#: templates/index.html:91
msgid "Advanced settings"
msgstr "Napredne nastavitve"
#: templates/index.html:94
#: templates/index.html:96
msgid "Labeled trees"
msgstr "Označena drevesa"
#: templates/index.html:94
#: templates/index.html:96
msgid "include names of dependency relations"
msgstr "izpis vrste relacij med besedami"
#: templates/index.html:98 templates/index.html:113 templates/index.html:155
#: templates/index.html:100 templates/index.html:115 templates/index.html:157
msgid "No"
msgstr "Ne"
#: templates/index.html:101 templates/index.html:116 templates/index.html:158
#: templates/index.html:103 templates/index.html:118 templates/index.html:160
msgid "Yes"
msgstr "Da"
#: templates/index.html:109
#: templates/index.html:111
msgid "Fixed order"
msgstr "Nespremenljiv besedni red"
#: templates/index.html:109
#: templates/index.html:111
msgid "differentiate trees based on surface word order"
msgstr "ločevanje dreves glede na zaporedje besed v besedilu"
#: templates/index.html:125
#: templates/index.html:127
msgid "Head"
msgstr "Jedro"
#: templates/index.html:125
#: templates/index.html:127
msgid "specify potential restrictions on the head node"
msgstr "izpis dreves z vnaprej določenimi lastnostmi jedrne besede v drevesu"
#: templates/index.html:131
#: templates/index.html:133
msgid "Ignored labels"
msgstr "Nerelevantne relacije"
#: templates/index.html:131
#: templates/index.html:133
msgid "specify the dependency labels of nodes to be ignored"
msgstr "seznam skladenjskih oznak vozlišč, ki se lahko pojavijo v drevesu, a niso prikazane v izpisu"
msgstr "relacije vozlišč, ki naj se ne prikazujejo v izpisu"
#: templates/index.html:137
#: templates/index.html:139
msgid "Query"
msgstr "Iskalni pogoj"
#: templates/index.html:137
#: templates/index.html:139
msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr ""
"izpis dreves z vnaprej določeno strukturo (nastavitev velikosti drevesa se s "
"tem ne upošteva.) "
msgstr "izpis dreves z vnaprej določeno strukturo"
#: templates/index.html:143
#: templates/index.html:145
msgid "Frequency threshold"
msgstr "Frekvenčni prag"
#: templates/index.html:143
#: templates/index.html:145
msgid "specify the minimum frequency of a tree in the treebank"
msgstr "najmanjše število pojavitev drevesa v korpusu"
#: templates/index.html:151
#: templates/index.html:153
msgid "Association measures"
msgstr "Mere povezovalnosti"
#: templates/index.html:151
#: templates/index.html:153
msgid "print MI, logDice and t-score"
msgstr "izračun vrednosti MI, logDice in t-test"
#: templates/index.html:166
#: templates/index.html:168
msgid "Compare treebanks"
msgstr "Primerjava korpusov"
#: templates/index.html:170
#: templates/index.html:172
msgid ""
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, "
"BIC and OR keyness scores)."
msgstr ""
"Primerjava z rezultati v referenčnem korpusu (izračun razmerja frekvenc ter vrednosti &#37;DIFF, "
"BIC in Odds Ratio)"
"Primerjava z rezultati v referenčnem korpusu (izračun razmerja frekvenc ter "
"vrednosti &#37;DIFF, BIC in Odds Ratio)"
#: templates/index.html:171 templates/index.html:178
#: templates/index.html:173 templates/index.html:180
msgid "Upload a compare corpus"
msgstr "Naložite referenčni korpus"
#: templates/index.html:202
#: templates/index.html:206
msgid "Submit"
msgstr "Poišči drevesa"
#: templates/index.html:210
#: templates/index.html:214
msgid "No results"
msgstr "Brez zadetkov"
#: templates/index.html:211
#: templates/index.html:215
msgid "Processing with your settings didnt produce any results!"
msgstr "Procesiranje z izbranimi nastavitvami ne vrača rezultatov."
@ -413,6 +407,9 @@ msgstr "Nazaj na izbrane nastavitve"
msgid "Download complete results"
msgstr "Prenesi datoteko s celotnimi rezultati"
#~ msgid "Example"
#~ msgstr "primer"
#~ msgid "Please provide information about minimum and maximum tree size."
#~ msgstr "Določite najmanjše in največje število vozlišč v drevesu."