Updated to new STARK version + some small updates

This commit is contained in:
lkrsnik 2024-07-04 13:39:46 +02:00
parent ce50960fb5
commit adff072475
10 changed files with 300 additions and 2562 deletions

45
app.py
View File

@ -112,6 +112,7 @@ def create_app():
'Number of nodes': gettext('Number of nodes'), 'Number of nodes': gettext('Number of nodes'),
'Head node': gettext('Head node'), 'Head node': gettext('Head node'),
'Grew-match URL': gettext('Grew-match URL'), 'Grew-match URL': gettext('Grew-match URL'),
'Ratio': gettext('Ratio'),
'%DIFF': gettext('%DIFF'), '%DIFF': gettext('%DIFF'),
'OR': gettext('OR'), 'OR': gettext('OR'),
'BIC': gettext('BIC'), 'BIC': gettext('BIC'),
@ -162,9 +163,15 @@ def create_app():
translations = _translations[get_locale()] translations = _translations[get_locale()]
if request.method == 'POST': if request.method == 'POST':
form = request.form form = request.form
configs = {} configs = {
'greedy_counter': 'yes',
'input_path': '',
'tree_size': '1-1000000',
'display_size': '1-1000000',
'complete_tree_type': True,
'ignored_labels': []
}
# mandatory parameters # mandatory parameters
configs['input_path'] = ''
validation = {} validation = {}
@ -194,29 +201,10 @@ def create_app():
validation['file'] = gettext('Please insert either input url or provide a file.') validation['file'] = gettext('Please insert either input url or provide a file.')
validation['input_url'] = gettext('Please insert either input url or provide a file.') validation['input_url'] = gettext('Please insert either input url or provide a file.')
tree_size_min = None if 'display_size' in form and form['display_size']:
if 'tree_size_min' in form: configs['display_size'] = form['display_size']
tree_size_min = form['tree_size_min']
tree_size_max = None
if 'tree_size_max' in form:
tree_size_max = form['tree_size_max']
def validate_tree_size(tree_size_min, tree_size_max):
if tree_size_min is None or tree_size_max is None:
validation['tree_size'] = gettext('Please provide information about minimum and maximum tree size.')
return False
if int(tree_size_min) > int(tree_size_max):
validation['tree_size'] = gettext('Tree size minimum should be smaller than tree size maximum.')
return False
return True
if validate_tree_size(tree_size_min, tree_size_max):
configs['tree_size'] = f'{tree_size_min}-{tree_size_max}' if tree_size_min != tree_size_max else f'{tree_size_min}'
def validate_node_type(node_type): def validate_node_type(node_type):
# TODO EXPAND NODE TYPE
node_type_options = {'upos', 'form', 'lemma', 'upos', 'xpos', 'feats', 'deprel'} node_type_options = {'upos', 'form', 'lemma', 'upos', 'xpos', 'feats', 'deprel'}
if len(node_type) == 0: if len(node_type) == 0:
validation['node_type'] = gettext('Please select at least one node type.') validation['node_type'] = gettext('Please select at least one node type.')
@ -230,6 +218,7 @@ def create_app():
return True return True
node_type = [] node_type = []
if 'node_type_upos' in form: if 'node_type_upos' in form:
node_type.append('upos') node_type.append('upos')
if 'node_type_form' in form: if 'node_type_form' in form:
@ -237,7 +226,9 @@ def create_app():
if 'node_type_lemma' in form: if 'node_type_lemma' in form:
node_type.append('lemma') node_type.append('lemma')
if validate_node_type(node_type): if 'node_type_none' in form:
configs['node_type'] = None
elif validate_node_type(node_type):
configs['node_type'] = '+'.join(node_type) configs['node_type'] = '+'.join(node_type)
# mandatory parameters with default value # mandatory parameters with default value
@ -246,8 +237,6 @@ def create_app():
# TODO depends on computer # TODO depends on computer
configs['cpu_cores'] = 12 configs['cpu_cores'] = 12
# TODO FINALIZE THIS!
configs['complete_tree_type'] = True
configs['dependency_type'] = 'labeled_trees' in form and form['labeled_trees'] == 'on' 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['node_order'] = 'fixed_order' in form and form['fixed_order'] == 'on'
configs['association_measures'] = 'association_measures' in form and form['association_measures'] == 'on' configs['association_measures'] = 'association_measures' in form and form['association_measures'] == 'on'
@ -257,9 +246,13 @@ def create_app():
if 'root_restriction' in form and form['root_restriction']: if 'root_restriction' in form and form['root_restriction']:
configs['root_whitelist'] = form['root_restriction'].split('|') configs['root_whitelist'] = form['root_restriction'].split('|')
if 'ignored_labels' in form and form['ignored_labels']:
configs['ignored_labels'] = form['ignored_labels'].split('|')
if 'query' in form and form['query']: if 'query' in form and form['query']:
configs['query'] = form['query'] configs['query'] = form['query']
configs['tree_size'] = '0' configs['tree_size'] = '0'
configs['display_size'] = '0'
else: else:
configs['query'] = None configs['query'] = None

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-13 11:06+0100\n" "POT-Creation-Date: 2024-07-04 11:51+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -46,88 +46,84 @@ msgid "Grew-match URL"
msgstr "" msgstr ""
#: app.py:115 #: app.py:115
msgid "%DIFF" msgid "Ratio"
msgstr "" msgstr ""
#: app.py:116 #: app.py:116
msgid "OR" msgid "%DIFF"
msgstr "" msgstr ""
#: app.py:117 #: app.py:117
msgid "BIC" msgid "OR"
msgstr "" msgstr ""
#: app.py:118 #: app.py:118
msgid "MI" msgid "BIC"
msgstr "" msgstr ""
#: app.py:119 #: app.py:119
msgid "logDice" msgid "MI"
msgstr "" msgstr ""
#: app.py:120 #: app.py:120
msgid "logDice"
msgstr ""
#: app.py:121
msgid "t-score" msgid "t-score"
msgstr "" msgstr ""
#: app.py:123 #: app.py:124
msgid "Frequency in A" msgid "Frequency in A"
msgstr "" msgstr ""
#: app.py:181 app.py:182 #: app.py:188 app.py:189
msgid "Please insert either input url or file, not both of them." msgid "Please insert either input url or file, not both of them."
msgstr "" msgstr ""
#: app.py:192 app.py:287 #: app.py:199 app.py:280
msgid "Incorrect URL!" msgid "Incorrect URL!"
msgstr "" msgstr ""
#: app.py:194 app.py:195 #: app.py:201 app.py:202
msgid "Please insert either input url or provide a file." msgid "Please insert either input url or provide a file."
msgstr "" msgstr ""
#: app.py:207 #: app.py:210
msgid "Please provide information about minimum and maximum tree size."
msgstr ""
#: app.py:211
msgid "Tree size minimum should be smaller than tree size maximum."
msgstr ""
#: app.py:222
msgid "Please select at least one node type." msgid "Please select at least one node type."
msgstr "" msgstr ""
#: app.py:227 #: app.py:215
msgid "Node option" msgid "Node option"
msgstr "" msgstr ""
#: app.py:227 #: app.py:215
msgid "is not supported. Please enter valid options." msgid "is not supported. Please enter valid options."
msgstr "" msgstr ""
#: app.py:275 app.py:276 #: app.py:268 app.py:269
msgid "Please insert either compare url or file, not both of them." msgid "Please insert either compare url or file, not both of them."
msgstr "" msgstr ""
#: app.py:299 #: app.py:292
msgid "Please insert an Integer." msgid "Please insert an Integer."
msgstr "" msgstr ""
#: app.py:324 #: app.py:317
msgid "" msgid ""
"Processing failed! Please recheck your settings, e.g. input format or " "Processing failed! Please recheck your settings, e.g. input format or "
"head node description." "head node description."
msgstr "" msgstr ""
#: app.py:333 #: app.py:326
msgid "Frequency " msgid "Frequency "
msgstr "" msgstr ""
#: app.py:333 #: app.py:326
msgid "Frequency in A " msgid "Frequency in A "
msgstr "" msgstr ""
#: app.py:334 templates/base.html:20 templates/base.html:22 #: app.py:327 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15 #: templates/index.html:8 templates/result.html:15
msgid "code" msgid "code"
msgstr "" msgstr ""
@ -212,19 +208,19 @@ msgstr ""
msgid "Upload a treebank" msgid "Upload a treebank"
msgstr "" msgstr ""
#: templates/index.html:12 templates/index.html:20 templates/index.html:160 #: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:167 #: templates/index.html:178
msgid "in CONLL-U format" msgid "in CONLL-U format"
msgstr "" msgstr ""
#: templates/index.html:12 templates/index.html:41 templates/index.html:49 #: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:89 templates/index.html:104 templates/index.html:120 #: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:126 templates/index.html:132 templates/index.html:140 #: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:159 templates/index.html:160 #: templates/index.html:151 templates/index.html:170 templates/index.html:171
msgid "Help" msgid "Help"
msgstr "" msgstr ""
#: templates/index.html:15 templates/index.html:163 #: templates/index.html:15 templates/index.html:174
msgid "Browse" msgid "Browse"
msgstr "" msgstr ""
@ -232,15 +228,15 @@ msgstr ""
msgid "Upload" msgid "Upload"
msgstr "" msgstr ""
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Or" msgid "Or"
msgstr "" msgstr ""
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "insert a URL link to a treebank in CONLL-U format" msgid "insert a URL link to a treebank in CONLL-U format"
msgstr "" msgstr ""
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Example" msgid "Example"
msgstr "" msgstr ""
@ -248,117 +244,129 @@ msgstr ""
msgid "Tree specification" msgid "Tree specification"
msgstr "" msgstr ""
#: templates/index.html:41 #: templates/index.html:44
msgid "Tree size" msgid "Tree size"
msgstr "" msgstr ""
#: templates/index.html:41 #: templates/index.html:44
msgid "number of tokens in the tree" msgid "number of tokens in the tree"
msgstr "" msgstr ""
#: templates/index.html:49 #: templates/index.html:48
msgid "Node type" msgid "Node type"
msgstr "" msgstr ""
#: templates/index.html:49 #: templates/index.html:48
msgid "token characteristics to consider" msgid "token characteristics to consider"
msgstr "" msgstr ""
#: templates/index.html:55 #: templates/index.html:54
msgid "No type"
msgstr ""
#: templates/index.html:63
msgid "Part-of-speech" msgid "Part-of-speech"
msgstr "" msgstr ""
#: templates/index.html:64 #: templates/index.html:69
msgid "Lemma" msgid "Lemma"
msgstr "" msgstr ""
#: templates/index.html:70 #: templates/index.html:75
msgid "Form" msgid "Form"
msgstr "" msgstr ""
#: templates/index.html:84 #: templates/index.html:89
msgid "Advanced settings" msgid "Advanced settings"
msgstr "" msgstr ""
#: templates/index.html:89 #: templates/index.html:94
msgid "Labeled trees" msgid "Labeled trees"
msgstr "" msgstr ""
#: templates/index.html:89 #: templates/index.html:94
msgid "include names of dependency relations" msgid "include names of dependency relations"
msgstr "" msgstr ""
#: templates/index.html:93 templates/index.html:108 templates/index.html:144 #: templates/index.html:98 templates/index.html:113 templates/index.html:155
msgid "No" msgid "No"
msgstr "" msgstr ""
#: templates/index.html:96 templates/index.html:111 templates/index.html:147 #: templates/index.html:101 templates/index.html:116 templates/index.html:158
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: templates/index.html:104 #: templates/index.html:109
msgid "Fixed order" msgid "Fixed order"
msgstr "" msgstr ""
#: templates/index.html:104 #: templates/index.html:109
msgid "differentiate trees based on surface word order" msgid "differentiate trees based on surface word order"
msgstr "" msgstr ""
#: templates/index.html:120 #: templates/index.html:125
msgid "Head" msgid "Head"
msgstr "" msgstr ""
#: templates/index.html:120 #: templates/index.html:125
msgid "specify potential restrictions on the head node" msgid "specify potential restrictions on the head node"
msgstr "" msgstr ""
#: templates/index.html:126 #: templates/index.html:131
msgid "Ignored labels"
msgstr ""
#: templates/index.html:131
msgid "specify the dependency labels of nodes to be ignored"
msgstr ""
#: templates/index.html:137
msgid "Query" msgid "Query"
msgstr "" msgstr ""
#: templates/index.html:126 #: templates/index.html:137
msgid "write a query. Note: Tree size attribute will be ignored!" msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr "" msgstr ""
#: templates/index.html:132 #: templates/index.html:143
msgid "Frequency threshold" msgid "Frequency threshold"
msgstr "" msgstr ""
#: templates/index.html:132 #: templates/index.html:143
msgid "specify the minimum frequency of a tree in the treebank" msgid "specify the minimum frequency of a tree in the treebank"
msgstr "" msgstr ""
#: templates/index.html:140 #: templates/index.html:151
msgid "Association measures" msgid "Association measures"
msgstr "" msgstr ""
#: templates/index.html:140 #: templates/index.html:151
msgid "print MI, logDice and t-score" msgid "print MI, logDice and t-score"
msgstr "" msgstr ""
#: templates/index.html:155 #: templates/index.html:166
msgid "Compare treebanks" msgid "Compare treebanks"
msgstr "" msgstr ""
#: templates/index.html:159 #: templates/index.html:170
msgid "" msgid ""
"Select a reference treebank to identify key phenomena (prints the " "Select a reference treebank to identify key phenomena (prints the "
"&#37;DIFF, BIC and OR keyness scores)." "&#37;DIFF, BIC and OR keyness scores)."
msgstr "" msgstr ""
#: templates/index.html:160 templates/index.html:167 #: templates/index.html:171 templates/index.html:178
msgid "Upload a compare corpus" msgid "Upload a compare corpus"
msgstr "" msgstr ""
#: templates/index.html:191 #: templates/index.html:202
msgid "Submit" msgid "Submit"
msgstr "" msgstr ""
#: templates/index.html:199 #: templates/index.html:210
msgid "No results" msgid "No results"
msgstr "" msgstr ""
#: templates/index.html:200 #: templates/index.html:211
msgid "Processing with your settings didnt produce any results!" msgid "Processing with your settings didnt produce any results!"
msgstr "" msgstr ""

View File

@ -19,6 +19,6 @@ setup(name='stark-api',
'Flask==3.0.0', 'Flask==3.0.0',
'requests==2.31.0', 'requests==2.31.0',
'flask-babel==4.0.0', 'flask-babel==4.0.0',
'stark @ git+https://github.com/clarinsi/STARK@master' 'stark @ git+https://github.com/clarinsi/STARK@refactoring'
], ],
) )

View File

@ -1,5 +1,5 @@
// Global array to store input names // Global array to store input names
var globalInputList = ['tree_size_min', 'tree_size_max', 'file', 'association_measures', 'labeled_trees', 'node_type_upos', 'fixed_order', 'input_url', 'node_type_lemma', 'root_restriction', 'node_type_form', 'frequency_threshold', 'query', 'compare_url', 'compare_file']; var globalInputList = ['display_size', 'file', 'association_measures', 'labeled_trees', 'node_type_upos', 'fixed_order', 'input_url', 'node_type_lemma', 'root_restriction', 'node_type_form', 'frequency_threshold', 'node_type_none', 'query', 'compare_url', 'compare_file', 'ignored_labels'];
// Function to store values to local storage // Function to store values to local storage
function storeValuesToLocalstorage() { function storeValuesToLocalstorage() {
@ -63,19 +63,6 @@ document.addEventListener("DOMContentLoaded", function(event) {
return valuesForSlider.indexOf(Number(value)); return valuesForSlider.indexOf(Number(value));
} }
}; };
var slider = document.getElementById('slider');
noUiSlider.create(slider, {
start: [tree_size[0], tree_size[1]],
connect: true,
tooltips: true,
step: 1,
range: {
'min': 0,
'max': valuesForSlider.length - 1
},
format: format
});
var urlParams = new URLSearchParams(window.location.search); var urlParams = new URLSearchParams(window.location.search);
var lang='en' var lang='en'
if (urlParams.has('lang')) { if (urlParams.has('lang')) {
@ -146,38 +133,30 @@ document.addEventListener("DOMContentLoaded", function(event) {
}); });
$("#submit-form").submit( function(eventObj) { $("#submit-form").submit( function(eventObj) {
var spans = $(".noUi-tooltip").find('span');
var tree_size_min = spans[0].innerText;
var tree_size_max = spans[1].innerText;
console.log('amm');
$("<input />").attr("type", "hidden")
.attr("name", "tree_size_min")
.attr("value", tree_size_min)
.appendTo("#submit-form");
$("<input />").attr("type", "hidden")
.attr("name", "tree_size_max")
.attr("value", tree_size_max)
.appendTo("#submit-form");
storeValuesToLocalstorage(); storeValuesToLocalstorage();
return true; return true;
}); });
$("#switch-language").click(function(e) { $("#switch-language").click(function(e) {
var spans = $(".noUi-tooltip").find('span');
var tree_size_min = spans[0].innerText;
var tree_size_max = spans[1].innerText;
console.log('amm');
$("<input />").attr("type", "hidden")
.attr("name", "tree_size_min")
.attr("value", tree_size_min)
.appendTo("#submit-form");
$("<input />").attr("type", "hidden")
.attr("name", "tree_size_max")
.attr("value", tree_size_max)
.appendTo("#submit-form");
storeValuesToLocalstorage(); storeValuesToLocalstorage();
return true; return true;
}); });
$('input.node_type').on('change', function(e) {
if (this.name == 'node_type_none') {
$('input.node_type').not(this).prop('checked', false);
} else {
$('input.node_type_none').prop('checked', false);
}
});
$('a.example-input-link').click(function(e) {
$('#input_url').val(this.href)
e.preventDefault();
});
$('a.example-compare-link').click(function(e) {
$('#compare_url').val(this.href)
e.preventDefault();
});
})(jQuery); })(jQuery);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -73,7 +73,6 @@
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="/stark/static/js/materialize.js"></script> <script src="/stark/static/js/materialize.js"></script>
<script src="/stark/static/js/wNumb.js"></script> <script src="/stark/static/js/wNumb.js"></script>
<script src="/stark/static/js/nouislider.min.js"></script>
<script src="/stark/static/js/generic.js"></script> <script src="/stark/static/js/generic.js"></script>
{% block custom_js %}{% endblock %} {% block custom_js %}{% endblock %}

View File

@ -26,7 +26,9 @@
<div class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<input id="input_url" name="input_url" type="text" class="validate{% if 'input_url' in validation %} invalid{% endif %}"> <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" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="{{ _('Example') }}"><span class="menu-title sr-only">{{ _('Example') }}</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-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>
{% if 'input_url' in validation %} {% if 'input_url' in validation %}
<span class="helper-text" data-error="{{validation['input_url']}}"></span> <span class="helper-text" data-error="{{validation['input_url']}}"></span>
{% endif %} {% endif %}
@ -38,35 +40,40 @@
<h6>{{ _('Tree specification') }}</h6> <h6>{{ _('Tree specification') }}</h6>
<div class="card"> <div class="card">
<div class="card-content"> <div class="card-content">
<label><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 class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<br /> <input id="display_size" name="display_size" type="text" class="validate">
<div id="slider"></div> <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> </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> <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="row">
<div class="input-field"> <div class="input-field">
<div class="col s4"> <div class="col s3">
<label> <label>
<input type="checkbox" class="filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_upos" checked="checked" /> <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>{{ _('Part-of-speech') }}</span> <span>{{ _('No type') }}</span>
{% if 'node_type' in validation %} {% if 'node_type' in validation %}
<span class="helper-text" data-error="{{validation['node_type']}}"></span> <span class="helper-text" data-error="{{validation['node_type']}}"></span>
{% endif %} {% endif %}
</label> </label>
</div> </div>
<div class="col s4"> <div class="col s3">
<label> <label>
<input type="checkbox" class="filled-in" name="node_type_lemma"/> <input type="checkbox" class="node_type filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_upos" />
<span>{{ _('Part-of-speech') }}</span>
</label>
</div>
<div class="col s3">
<label>
<input type="checkbox" class="node_type filled-in" name="node_type_lemma"/>
<span>{{ _('Lemma') }}</span> <span>{{ _('Lemma') }}</span>
</label> </label>
</div> </div>
<div class="col s4"> <div class="col s3">
<label> <label>
<input type="checkbox" class="filled-in" name="node_type_form"/> <input type="checkbox" class="node_type filled-in" name="node_type_form"/>
<span>{{ _('Form') }}</span> <span>{{ _('Form') }}</span>
</label> </label>
</div> </div>
@ -120,6 +127,12 @@
<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> <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> </div>
<div class="row">
<div class="input-field col s12">
<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="row">
<div class="input-field col s12"> <div class="input-field col s12">
<input id="query" name="query" type="text" class="validate"> <input id="query" name="query" type="text" class="validate">
@ -174,7 +187,9 @@
<div class="row"> <div class="row">
<div class="input-field col s12"> <div class="input-field col s12">
<input id="compare_url" name="compare_url" type="text" class="validate{% if 'compare_url' in validation %} invalid{% endif %}"> <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" target="_blank" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="{{ _('Example') }}"><span class="menu-title sr-only">{{ _('Example') }}</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-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>
{% if 'compare_url' in validation %} {% if 'compare_url' in validation %}
<span class="helper-text" data-error="{{validation['compare_url']}}"></span> <span class="helper-text" data-error="{{validation['compare_url']}}"></span>
{% endif %} {% endif %}

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-13 10:26+0100\n" "POT-Creation-Date: 2024-07-04 11:51+0200\n"
"PO-Revision-Date: 2024-02-14 14:36+0100\n" "PO-Revision-Date: 2024-02-14 14:36+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: en <LL@li.org>\n" "Language-Team: en <LL@li.org>\n"
@ -47,74 +47,70 @@ msgid "Grew-match URL"
msgstr "" msgstr ""
#: app.py:115 #: app.py:115
msgid "%DIFF" msgid "Ratio"
msgstr "" msgstr ""
#: app.py:116 #: app.py:116
msgid "OR" msgid "%DIFF"
msgstr "" msgstr ""
#: app.py:117 #: app.py:117
msgid "BIC" msgid "OR"
msgstr "" msgstr ""
#: app.py:118 #: app.py:118
msgid "MI" msgid "BIC"
msgstr "" msgstr ""
#: app.py:119 #: app.py:119
msgid "logDice" msgid "MI"
msgstr "" msgstr ""
#: app.py:120 #: app.py:120
msgid "logDice"
msgstr ""
#: app.py:121
msgid "t-score" msgid "t-score"
msgstr "" msgstr ""
#: app.py:123 #: app.py:124
msgid "Frequency in A" msgid "Frequency in A"
msgstr "Frequency-A" msgstr "Frequency-A"
#: app.py:181 app.py:182 #: app.py:188 app.py:189
msgid "Please insert either input url or file, not both of them." 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." msgstr "Please insert either a file or a URL link, not both of them."
#: app.py:192 app.py:287 #: app.py:199 app.py:280
msgid "Incorrect URL!" msgid "Incorrect URL!"
msgstr "" msgstr ""
#: app.py:194 app.py:195 #: app.py:201 app.py:202
msgid "Please insert either input url or provide a file." msgid "Please insert either input url or provide a file."
msgstr "Please insert either a file or a URL link." msgstr "Please insert either a file or a URL link."
#: app.py:207 #: app.py:210
msgid "Please provide information about minimum and maximum tree size."
msgstr ""
#: app.py:211
msgid "Tree size minimum should be smaller than tree size maximum."
msgstr ""
#: app.py:222
msgid "Please select at least one node type." msgid "Please select at least one node type."
msgstr "" msgstr ""
#: app.py:227 #: app.py:215
msgid "Node option" msgid "Node option"
msgstr "Node option" msgstr "Node option"
#: app.py:227 #: app.py:215
msgid "is not supported. Please enter valid options." msgid "is not supported. Please enter valid options."
msgstr "" msgstr ""
#: app.py:275 app.py:276 #: app.py:268 app.py:269
msgid "Please insert either compare url or file, not both of them." 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." msgstr "Please insert either a file or a URL link, not both of them."
#: app.py:299 #: app.py:292
msgid "Please insert an Integer." msgid "Please insert an Integer."
msgstr "Please insert an integer number." msgstr "Please insert an integer number."
#: app.py:324 #: app.py:317
msgid "" msgid ""
"Processing failed! Please recheck your settings, e.g. input format or head " "Processing failed! Please recheck your settings, e.g. input format or head "
"node description." "node description."
@ -122,15 +118,15 @@ msgstr ""
"Processing failed! Please recheck your settings, e.g. input format or query " "Processing failed! Please recheck your settings, e.g. input format or query "
"description." "description."
#: app.py:333 #: app.py:326
msgid "Frequency " msgid "Frequency "
msgstr "" msgstr ""
#: app.py:333 #: app.py:326
msgid "Frequency in A " msgid "Frequency in A "
msgstr "Frequency-A " msgstr "Frequency-A "
#: app.py:334 templates/base.html:20 templates/base.html:22 #: app.py:327 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15 #: templates/index.html:8 templates/result.html:15
msgid "code" msgid "code"
msgstr "en" msgstr "en"
@ -198,7 +194,9 @@ msgstr "."
#: templates/about.html:19 #: templates/about.html:19
msgid "stark_contact" msgid "stark_contact"
msgstr "Should you have any additional questions or require assistance with the tool, please contact kaja.dobrovoljc@ff.uni-lj.si." msgstr ""
"Should you have any additional questions or require assistance with the "
"tool, please contact kaja.dobrovoljc@ff.uni-lj.si."
#: templates/base.html:23 #: templates/base.html:23
msgid "switch_link" msgid "switch_link"
@ -236,19 +234,19 @@ msgstr "Input treebank"
msgid "Upload a treebank" msgid "Upload a treebank"
msgstr "Upload a treebank" msgstr "Upload a treebank"
#: templates/index.html:12 templates/index.html:20 templates/index.html:160 #: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:167 #: templates/index.html:178
msgid "in CONLL-U format" msgid "in CONLL-U format"
msgstr "in CONLL-U format" msgstr "in CONLL-U format"
#: templates/index.html:12 templates/index.html:41 templates/index.html:49 #: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:89 templates/index.html:104 templates/index.html:120 #: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:126 templates/index.html:132 templates/index.html:140 #: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:159 templates/index.html:160 #: templates/index.html:151 templates/index.html:170 templates/index.html:171
msgid "Help" msgid "Help"
msgstr "Help" msgstr "Help"
#: templates/index.html:15 templates/index.html:163 #: templates/index.html:15 templates/index.html:174
msgid "Browse" msgid "Browse"
msgstr "Browse" msgstr "Browse"
@ -256,15 +254,15 @@ msgstr "Browse"
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Or" msgid "Or"
msgstr "Or" msgstr "Or"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "insert a URL link to a treebank in CONLL-U format" 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"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Example" msgid "Example"
msgstr "Example" msgstr "Example"
@ -272,119 +270,131 @@ msgstr "Example"
msgid "Tree specification" msgid "Tree specification"
msgstr "Tree specification" msgstr "Tree specification"
#: templates/index.html:41 #: templates/index.html:44
msgid "Tree size" msgid "Tree size"
msgstr "Tree size" msgstr "Tree size"
#: templates/index.html:41 #: templates/index.html:44
msgid "number of tokens in the tree" msgid "number of tokens in the tree"
msgstr "number of tokens (words) in the tree" msgstr "number of tokens (words) in the tree"
#: templates/index.html:49 #: templates/index.html:48
msgid "Node type" msgid "Node type"
msgstr "Node type" msgstr "Node type"
#: templates/index.html:49 #: templates/index.html:48
msgid "token characteristics to consider" msgid "token characteristics to consider"
msgstr "token characteristics to consider" msgstr "token characteristics to consider"
#: templates/index.html:55 #: templates/index.html:54
msgid "No type"
msgstr "No type"
#: templates/index.html:63
msgid "Part-of-speech" msgid "Part-of-speech"
msgstr "Part-of-speech" msgstr "Part-of-speech"
#: templates/index.html:64 #: templates/index.html:69
msgid "Lemma" msgid "Lemma"
msgstr "Lemma" msgstr "Lemma"
#: templates/index.html:70 #: templates/index.html:75
msgid "Form" msgid "Form"
msgstr "Form" msgstr "Form"
#: templates/index.html:84 #: templates/index.html:89
msgid "Advanced settings" msgid "Advanced settings"
msgstr "Advanced settings" msgstr "Advanced settings"
#: templates/index.html:89 #: templates/index.html:94
msgid "Labeled trees" msgid "Labeled trees"
msgstr "Labeled trees" msgstr "Labeled trees"
#: templates/index.html:89 #: templates/index.html:94
msgid "include names of dependency relations" msgid "include names of dependency relations"
msgstr "include names of dependency relations" msgstr "include names of dependency relations"
#: templates/index.html:93 templates/index.html:108 templates/index.html:144 #: templates/index.html:98 templates/index.html:113 templates/index.html:155
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: templates/index.html:96 templates/index.html:111 templates/index.html:147 #: templates/index.html:101 templates/index.html:116 templates/index.html:158
msgid "Yes" msgid "Yes"
msgstr "Yes" msgstr "Yes"
#: templates/index.html:104 #: templates/index.html:109
msgid "Fixed order" msgid "Fixed order"
msgstr "Fixed order" msgstr "Fixed order"
#: templates/index.html:104 #: templates/index.html:109
msgid "differentiate trees based on surface word order" msgid "differentiate trees based on surface word order"
msgstr "differentiate trees based on surface word order" msgstr "differentiate trees based on surface word order"
#: templates/index.html:120 #: templates/index.html:125
msgid "Head" msgid "Head"
msgstr "Head" msgstr "Head"
#: templates/index.html:120 #: templates/index.html:125
msgid "specify potential restrictions on the head node" msgid "specify potential restrictions on the head node"
msgstr "specify potential restrictions on the head node" msgstr "specify potential restrictions on the head node"
#: templates/index.html:126 #: templates/index.html:131
msgid "Ignored labels"
msgstr ""
#: templates/index.html:131
msgid "specify the dependency labels of nodes to be ignored"
msgstr ""
#: templates/index.html:137
msgid "Query" msgid "Query"
msgstr "" msgstr ""
#: templates/index.html:126 #: templates/index.html:137
msgid "write a query. Note: Tree size attribute will be ignored!" msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr "" msgstr ""
#: templates/index.html:132 #: templates/index.html:143
msgid "Frequency threshold" msgid "Frequency threshold"
msgstr "Frequency threshold" msgstr "Frequency threshold"
#: templates/index.html:132 #: templates/index.html:143
msgid "specify the minimum frequency of a tree in the treebank" msgid "specify the minimum frequency of a tree in the treebank"
msgstr "specify the minimum frequency of a tree in the treebank" msgstr "specify the minimum frequency of a tree in the treebank"
#: templates/index.html:140 #: templates/index.html:151
msgid "Association measures" msgid "Association measures"
msgstr "Association measures" msgstr "Association measures"
#: templates/index.html:140 #: templates/index.html:151
msgid "print MI, logDice and t-score" msgid "print MI, logDice and t-score"
msgstr "print MI, logDice and t-score" msgstr "print MI, logDice and t-score"
#: templates/index.html:155 #: templates/index.html:166
msgid "Compare treebanks" msgid "Compare treebanks"
msgstr "" msgstr ""
#: templates/index.html:159 #: templates/index.html:170
msgid "" msgid ""
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, " "Select a reference treebank to identify key phenomena (prints the frequency ration and the &#37;DIFF, "
"BIC and OR keyness scores)." "BIC and OR keyness scores)."
msgstr "" msgstr ""
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, " "Select a reference treebank to identify key phenomena (prints the &#37;DIFF, "
"BIC and Odds Ratio scores)." "BIC and Odds Ratio scores)."
#: templates/index.html:160 templates/index.html:167 #: templates/index.html:171 templates/index.html:178
msgid "Upload a compare corpus" msgid "Upload a compare corpus"
msgstr "Upload a reference treebank" msgstr "Upload a reference treebank"
#: templates/index.html:191 #: templates/index.html:202
msgid "Submit" msgid "Submit"
msgstr "Get trees" msgstr "Get trees"
#: templates/index.html:199 #: templates/index.html:210
msgid "No results" msgid "No results"
msgstr "" msgstr ""
#: templates/index.html:200 #: templates/index.html:211
msgid "Processing with your settings didnt produce any results!" msgid "Processing with your settings didnt produce any results!"
msgstr "Processing with your settings did not produce any results." msgstr "Processing with your settings did not produce any results."

View File

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-03-13 10:26+0100\n" "POT-Creation-Date: 2024-07-04 11:51+0200\n"
"PO-Revision-Date: 2024-02-14 14:36+0100\n" "PO-Revision-Date: 2024-02-14 14:36+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: sl <LL@li.org>\n" "Language-Team: sl <LL@li.org>\n"
@ -47,74 +47,70 @@ msgid "Grew-match URL"
msgstr "Povezava na Grew-match" msgstr "Povezava na Grew-match"
#: app.py:115 #: app.py:115
msgid "%DIFF" msgid "Ratio"
msgstr "" msgstr ""
#: app.py:116 #: app.py:116
msgid "OR" msgid "%DIFF"
msgstr "" msgstr ""
#: app.py:117 #: app.py:117
msgid "BIC" msgid "OR"
msgstr "" msgstr ""
#: app.py:118 #: app.py:118
msgid "BIC"
msgstr ""
#: app.py:119
msgid "MI" msgid "MI"
msgstr "MI" msgstr "MI"
#: app.py:119 #: app.py:120
msgid "logDice" msgid "logDice"
msgstr "logDice" msgstr "logDice"
#: app.py:120 #: app.py:121
msgid "t-score" msgid "t-score"
msgstr "t-test" msgstr "t-test"
#: app.py:123 #: app.py:124
msgid "Frequency in A" msgid "Frequency in A"
msgstr "Pogostost v A" msgstr "Pogostost v A"
#: app.py:181 app.py:182 #: app.py:188 app.py:189
msgid "Please insert either input url or file, not both of them." msgid "Please insert either input url or file, not both of them."
msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega." msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega."
#: app.py:192 app.py:287 #: app.py:199 app.py:280
msgid "Incorrect URL!" msgid "Incorrect URL!"
msgstr "URL ni pravilne oblike." msgstr "URL ni pravilne oblike."
#: app.py:194 app.py:195 #: app.py:201 app.py:202
msgid "Please insert either input url or provide a file." msgid "Please insert either input url or provide a file."
msgstr "Naložite datoteko ali vnesite povezavo URL." msgstr "Naložite datoteko ali vnesite povezavo URL."
#: app.py:207 #: app.py:210
msgid "Please provide information about minimum and maximum tree size."
msgstr "Določite najmanjše in največje število vozlišč v drevesu."
#: app.py:211
msgid "Tree size minimum should be smaller than tree size maximum."
msgstr "Najmanjše število vozlišč v drevesu ne sme biti večje od največjega."
#: app.py:222
msgid "Please select at least one node type." msgid "Please select at least one node type."
msgstr "Izberite vsaj eno možnost (npr. besedno vrsto)." msgstr "Izberite vsaj eno možnost (npr. besedno vrsto)."
#: app.py:227 #: app.py:215
msgid "Node option" msgid "Node option"
msgstr "Vrsta vozlišč" msgstr "Vrsta vozlišč"
#: app.py:227 #: app.py:215
msgid "is not supported. Please enter valid options." msgid "is not supported. Please enter valid options."
msgstr "vmesnik ne podpira. Vnesite eno izmed veljavnih možnosti." msgstr "vmesnik ne podpira. Vnesite eno izmed veljavnih možnosti."
#: app.py:275 app.py:276 #: app.py:268 app.py:269
msgid "Please insert either compare url or file, not both of them." msgid "Please insert either compare url or file, not both of them."
msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega." msgstr "Naložite datoteko ali vnesite povezavo URL, ne pa obojega."
#: app.py:299 #: app.py:292
msgid "Please insert an Integer." msgid "Please insert an Integer."
msgstr "Vnesite celo število (npr. 3)." msgstr "Vnesite celo število (npr. 3)."
#: app.py:324 #: app.py:317
msgid "" msgid ""
"Processing failed! Please recheck your settings, e.g. input format or head " "Processing failed! Please recheck your settings, e.g. input format or head "
"node description." "node description."
@ -122,15 +118,15 @@ msgstr ""
"Procesiranje ni bilo uspešno! Preverite nastavitve, kot sta format ali opis " "Procesiranje ni bilo uspešno! Preverite nastavitve, kot sta format ali opis "
"lastnosti jedra." "lastnosti jedra."
#: app.py:333 #: app.py:326
msgid "Frequency " msgid "Frequency "
msgstr "Pogostost " msgstr "Pogostost "
#: app.py:333 #: app.py:326
msgid "Frequency in A " msgid "Frequency in A "
msgstr "Pogostost v A " msgstr "Pogostost v A "
#: app.py:334 templates/base.html:20 templates/base.html:22 #: app.py:327 templates/base.html:20 templates/base.html:22
#: templates/index.html:8 templates/result.html:15 #: templates/index.html:8 templates/result.html:15
msgid "code" msgid "code"
msgstr "sl" msgstr "sl"
@ -199,7 +195,9 @@ msgstr ") nekoliko poenostavljen nabor nastavitev."
#: templates/about.html:19 #: templates/about.html:19
msgid "stark_contact" msgid "stark_contact"
msgstr "Za dodatna vprašanja ali pomoč pri uporabi orodja se obrnite na kaja.dobrovoljc@ff.uni-lj.si." msgstr ""
"Za dodatna vprašanja ali pomoč pri uporabi orodja se obrnite na kaja."
"dobrovoljc@ff.uni-lj.si."
#: templates/base.html:23 #: templates/base.html:23
msgid "switch_link" msgid "switch_link"
@ -237,19 +235,19 @@ msgstr "Vhodni podatki"
msgid "Upload a treebank" msgid "Upload a treebank"
msgstr "Naložite korpus" msgstr "Naložite korpus"
#: templates/index.html:12 templates/index.html:20 templates/index.html:160 #: templates/index.html:12 templates/index.html:20 templates/index.html:171
#: templates/index.html:167 #: templates/index.html:178
msgid "in CONLL-U format" msgid "in CONLL-U format"
msgstr "v formatu CONLL-U" msgstr "v formatu CONLL-U"
#: templates/index.html:12 templates/index.html:41 templates/index.html:49 #: templates/index.html:12 templates/index.html:44 templates/index.html:48
#: templates/index.html:89 templates/index.html:104 templates/index.html:120 #: templates/index.html:94 templates/index.html:109 templates/index.html:125
#: templates/index.html:126 templates/index.html:132 templates/index.html:140 #: templates/index.html:131 templates/index.html:137 templates/index.html:143
#: templates/index.html:159 templates/index.html:160 #: templates/index.html:151 templates/index.html:170 templates/index.html:171
msgid "Help" msgid "Help"
msgstr "pomoč" msgstr "pomoč"
#: templates/index.html:15 templates/index.html:163 #: templates/index.html:15 templates/index.html:174
msgid "Browse" msgid "Browse"
msgstr "Izberi" msgstr "Izberi"
@ -257,15 +255,15 @@ msgstr "Izberi"
msgid "Upload" msgid "Upload"
msgstr "Naloži datoteko" msgstr "Naloži datoteko"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Or" msgid "Or"
msgstr "Ali" msgstr "Ali"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "insert a URL link to a treebank in CONLL-U format" 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"
#: templates/index.html:29 templates/index.html:177 #: templates/index.html:29 templates/index.html:188
msgid "Example" msgid "Example"
msgstr "primer" msgstr "primer"
@ -273,121 +271,133 @@ msgstr "primer"
msgid "Tree specification" msgid "Tree specification"
msgstr "Opredelitev dreves" msgstr "Opredelitev dreves"
#: templates/index.html:41 #: templates/index.html:44
msgid "Tree size" msgid "Tree size"
msgstr "Velikost drevesa" msgstr "Velikost drevesa"
#: templates/index.html:41 #: templates/index.html:44
msgid "number of tokens in the tree" msgid "number of tokens in the tree"
msgstr "število vozlišč (besed) v drevesu" msgstr "število vozlišč (besed) v drevesu"
#: templates/index.html:49 #: templates/index.html:48
msgid "Node type" msgid "Node type"
msgstr "Vrsta vozlišč" msgstr "Vrsta vozlišč"
#: templates/index.html:49 #: templates/index.html:48
msgid "token characteristics to consider" msgid "token characteristics to consider"
msgstr "upoštevane lastnosti besed" msgstr "upoštevane lastnosti besed"
#: templates/index.html:55 #: templates/index.html:54
msgid "No type"
msgstr "Brez vrste"
#: templates/index.html:63
msgid "Part-of-speech" msgid "Part-of-speech"
msgstr "Besedna vrsta" msgstr "Besedna vrsta"
#: templates/index.html:64 #: templates/index.html:69
msgid "Lemma" msgid "Lemma"
msgstr "Lema" msgstr "Lema"
#: templates/index.html:70 #: templates/index.html:75
msgid "Form" msgid "Form"
msgstr "Oblika" msgstr "Oblika"
#: templates/index.html:84 #: templates/index.html:89
msgid "Advanced settings" msgid "Advanced settings"
msgstr "Napredne nastavitve" msgstr "Napredne nastavitve"
#: templates/index.html:89 #: templates/index.html:94
msgid "Labeled trees" msgid "Labeled trees"
msgstr "Označena drevesa" msgstr "Označena drevesa"
#: templates/index.html:89 #: templates/index.html:94
msgid "include names of dependency relations" msgid "include names of dependency relations"
msgstr "izpis vrste relacij med besedami" msgstr "izpis vrste relacij med besedami"
#: templates/index.html:93 templates/index.html:108 templates/index.html:144 #: templates/index.html:98 templates/index.html:113 templates/index.html:155
msgid "No" msgid "No"
msgstr "Ne" msgstr "Ne"
#: templates/index.html:96 templates/index.html:111 templates/index.html:147 #: templates/index.html:101 templates/index.html:116 templates/index.html:158
msgid "Yes" msgid "Yes"
msgstr "Da" msgstr "Da"
#: templates/index.html:104 #: templates/index.html:109
msgid "Fixed order" msgid "Fixed order"
msgstr "Nespremenljiv besedni red" msgstr "Nespremenljiv besedni red"
#: templates/index.html:104 #: templates/index.html:109
msgid "differentiate trees based on surface word order" msgid "differentiate trees based on surface word order"
msgstr "ločevanje dreves glede na zaporedje besed v besedilu" msgstr "ločevanje dreves glede na zaporedje besed v besedilu"
#: templates/index.html:120 #: templates/index.html:125
msgid "Head" msgid "Head"
msgstr "Jedro" msgstr "Jedro"
#: templates/index.html:120 #: templates/index.html:125
msgid "specify potential restrictions on the head node" msgid "specify potential restrictions on the head node"
msgstr "izpis dreves z vnaprej določenimi lastnostmi jedrne besede v drevesu" msgstr "izpis dreves z vnaprej določenimi lastnostmi jedrne besede v drevesu"
#: templates/index.html:126 #: templates/index.html:131
msgid "Ignored labels"
msgstr "Nerelevantne relacije"
#: templates/index.html:131
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"
#: templates/index.html:137
msgid "Query" msgid "Query"
msgstr "Iskalni pogoj" msgstr "Iskalni pogoj"
#: templates/index.html:126 #: templates/index.html:137
msgid "write a query. Note: Tree size attribute will be ignored!" msgid "write a query. Note: Tree size attribute will be ignored!"
msgstr "" msgstr ""
"izpis dreves z vnaprej določeno strukturo (nastavitev velikosti drevesa se s " "izpis dreves z vnaprej določeno strukturo (nastavitev velikosti drevesa se s "
"tem ne upošteva.) " "tem ne upošteva.) "
#: templates/index.html:132 #: templates/index.html:143
msgid "Frequency threshold" msgid "Frequency threshold"
msgstr "Frekvenčni prag" msgstr "Frekvenčni prag"
#: templates/index.html:132 #: templates/index.html:143
msgid "specify the minimum frequency of a tree in the treebank" msgid "specify the minimum frequency of a tree in the treebank"
msgstr "najmanjše število pojavitev drevesa v korpusu" msgstr "najmanjše število pojavitev drevesa v korpusu"
#: templates/index.html:140 #: templates/index.html:151
msgid "Association measures" msgid "Association measures"
msgstr "Mere povezovalnosti" msgstr "Mere povezovalnosti"
#: templates/index.html:140 #: templates/index.html:151
msgid "print MI, logDice and t-score" msgid "print MI, logDice and t-score"
msgstr "izračun vrednosti MI, logDice in t-test" msgstr "izračun vrednosti MI, logDice in t-test"
#: templates/index.html:155 #: templates/index.html:166
msgid "Compare treebanks" msgid "Compare treebanks"
msgstr "Primerjava korpusov" msgstr "Primerjava korpusov"
#: templates/index.html:159 #: templates/index.html:170
msgid "" msgid ""
"Select a reference treebank to identify key phenomena (prints the &#37;DIFF, " "Select a reference treebank to identify key phenomena (prints the &#37;DIFF, "
"BIC and OR keyness scores)." "BIC and OR keyness scores)."
msgstr "" msgstr ""
"Primerjava z rezultati v referenčnem korpusu (izračun vrednosti &#37;DIFF, " "Primerjava z rezultati v referenčnem korpusu (izračun razmerja frekvenc ter vrednosti &#37;DIFF, "
"BIC in Odds Ratio)" "BIC in Odds Ratio)"
#: templates/index.html:160 templates/index.html:167 #: templates/index.html:171 templates/index.html:178
msgid "Upload a compare corpus" msgid "Upload a compare corpus"
msgstr "Naložite referenčni korpus" msgstr "Naložite referenčni korpus"
#: templates/index.html:191 #: templates/index.html:202
msgid "Submit" msgid "Submit"
msgstr "Poišči drevesa" msgstr "Poišči drevesa"
#: templates/index.html:199 #: templates/index.html:210
msgid "No results" msgid "No results"
msgstr "Brez zadetkov" msgstr "Brez zadetkov"
#: templates/index.html:200 #: templates/index.html:211
msgid "Processing with your settings didnt produce any results!" msgid "Processing with your settings didnt produce any results!"
msgstr "Procesiranje z izbranimi nastavitvami ne vrača rezultatov." msgstr "Procesiranje z izbranimi nastavitvami ne vrača rezultatov."
@ -403,6 +413,13 @@ msgstr "Nazaj na izbrane nastavitve"
msgid "Download complete results" msgid "Download complete results"
msgstr "Prenesi datoteko s celotnimi rezultati" msgstr "Prenesi datoteko s celotnimi rezultati"
#~ msgid "Please provide information about minimum and maximum tree size."
#~ msgstr "Določite najmanjše in največje število vozlišč v drevesu."
#~ msgid "Tree size minimum should be smaller than tree size maximum."
#~ msgstr ""
#~ "Najmanjše število vozlišč v drevesu ne sme biti večje od največjega."
#~ msgid "intro_description" #~ msgid "intro_description"
#~ msgstr "" #~ msgstr ""
#~ "Tukaj je opis na vstopni spletni strani, ki pa ga Kaja pripravi šele na " #~ "Tukaj je opis na vstopni spletni strani, ki pa ga Kaja pripravi šele na "