Added option to search over incomplete trees. Also added some validations.
This commit is contained in:
parent
31b2da01cb
commit
81761c5e88
15
app.py
15
app.py
@ -311,6 +311,8 @@ def create_app():
|
|||||||
@app.route('/stark/', methods=['GET', 'POST'])
|
@app.route('/stark/', methods=['GET', 'POST'])
|
||||||
# @headers({'Cache-Control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'})
|
# @headers({'Cache-Control': 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'})
|
||||||
def index():
|
def index():
|
||||||
|
# TODO - SIZE REGEX:
|
||||||
|
# TODO - MAX IF COMPLETE = 4/5
|
||||||
translations = _translations[get_locale()]
|
translations = _translations[get_locale()]
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
form = request.form
|
form = request.form
|
||||||
@ -319,7 +321,6 @@ def create_app():
|
|||||||
'input_path': '',
|
'input_path': '',
|
||||||
'tree_size': '1-1000000',
|
'tree_size': '1-1000000',
|
||||||
'display_size': '1-1000000',
|
'display_size': '1-1000000',
|
||||||
'complete_tree_type': True,
|
|
||||||
'ignored_labels': []
|
'ignored_labels': []
|
||||||
}
|
}
|
||||||
# mandatory parameters
|
# mandatory parameters
|
||||||
@ -352,7 +353,19 @@ 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.')
|
||||||
|
|
||||||
|
configs['complete_tree_type'] = 'complete_trees' in form and form['complete_trees'] == 'on'
|
||||||
|
|
||||||
if 'display_size' in form and form['display_size']:
|
if 'display_size' in form and form['display_size']:
|
||||||
|
if re.match(r'(^\d+$)|(^\d+-\d+$)', form['display_size']) is None:
|
||||||
|
validation['display_size'] = gettext('Please insert an integer number or a range separated with `-`, without spaces. Example: 3 or 2-4.')
|
||||||
|
else:
|
||||||
|
if not configs['complete_tree_type']:
|
||||||
|
max_display_size = int(form['display_size'].split('-')[-1])
|
||||||
|
if max_display_size >= 5:
|
||||||
|
validation['display_size'] = gettext(
|
||||||
|
'Please set a maximum display size to a number equal or lower to 4, when extracting Incomplete trees. Or search through complete trees (Complete trees parameter).')
|
||||||
|
configs['tree_size'] = "1-6"
|
||||||
|
|
||||||
configs['display_size'] = form['display_size']
|
configs['display_size'] = form['display_size']
|
||||||
|
|
||||||
def validate_node_type(node_type):
|
def validate_node_type(node_type):
|
||||||
|
134
messages.pot
134
messages.pot
@ -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: 2025-01-11 13:07+0100\n"
|
"POT-Creation-Date: 2025-03-30 15:31+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"
|
||||||
@ -17,113 +17,126 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Generated-By: Babel 2.14.0\n"
|
"Generated-By: Babel 2.14.0\n"
|
||||||
|
|
||||||
#: app.py:145 app.py:221
|
#: app.py:163 app.py:243
|
||||||
msgid "Tree"
|
msgid "Tree"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:146 app.py:222
|
#: app.py:164 app.py:244
|
||||||
msgid "Frequency"
|
msgid "Frequency"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:147 app.py:223
|
#: app.py:165 app.py:245
|
||||||
msgid "Frequency in B"
|
msgid "Frequency in B"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:148 app.py:224
|
#: app.py:166 app.py:246
|
||||||
msgid "Order"
|
msgid "Order"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:149 app.py:225
|
#: app.py:167 app.py:247
|
||||||
msgid "Number of nodes"
|
msgid "Number of nodes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:150 app.py:226
|
#: app.py:168 app.py:248
|
||||||
msgid "Head node"
|
msgid "Head node"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:151 app.py:227
|
#: app.py:169 app.py:249
|
||||||
msgid "Grew-match URL"
|
msgid "Grew-match URL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:152 app.py:228
|
#: app.py:170 app.py:250
|
||||||
msgid "Ratio"
|
msgid "Ratio"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:153 app.py:229
|
#: app.py:171 app.py:251
|
||||||
msgid "%DIFF"
|
msgid "%DIFF"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:154 app.py:230
|
#: app.py:172 app.py:252
|
||||||
msgid "OR"
|
msgid "OR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:155 app.py:231
|
#: app.py:173 app.py:253
|
||||||
msgid "BIC"
|
msgid "BIC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:156 app.py:232
|
#: app.py:174 app.py:254
|
||||||
msgid "MI"
|
msgid "MI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:157 app.py:233
|
#: app.py:175 app.py:255
|
||||||
msgid "logDice"
|
msgid "logDice"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:158 app.py:234
|
#: app.py:176 app.py:256
|
||||||
msgid "t-score"
|
msgid "t-score"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:161 app.py:237
|
#: app.py:179 app.py:259
|
||||||
msgid "Frequency in A"
|
msgid "Frequency in A"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:307 app.py:308
|
#: app.py:340 app.py:341
|
||||||
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:318 app.py:399
|
#: app.py:351 app.py:447
|
||||||
msgid "Incorrect URL!"
|
msgid "Incorrect URL!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:320 app.py:321
|
#: app.py:353 app.py:354
|
||||||
msgid "Please insert either input url or provide a file."
|
msgid "Please insert either input url or provide a file."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:329
|
#: app.py:360
|
||||||
|
msgid ""
|
||||||
|
"Please insert an integer number or a range separated with `-`, without "
|
||||||
|
"spaces. Example: 3 or 2-4."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app.py:365
|
||||||
|
msgid ""
|
||||||
|
"Please set a maximum display size to a number equal or lower to 4, when "
|
||||||
|
"extracting Incomplete trees. Or search through complete trees (Complete "
|
||||||
|
"trees parameter)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app.py:377
|
||||||
msgid "Please select at least one node type."
|
msgid "Please select at least one node type."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:334
|
#: app.py:382
|
||||||
msgid "Node option"
|
msgid "Node option"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:334
|
#: app.py:382
|
||||||
msgid "is not supported. Please enter valid options."
|
msgid "is not supported. Please enter valid options."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:387 app.py:388
|
#: app.py:435 app.py:436
|
||||||
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:411
|
#: app.py:459
|
||||||
msgid "Please insert an Integer."
|
msgid "Please insert an Integer."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:447
|
#: app.py:495
|
||||||
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:456
|
#: app.py:504
|
||||||
msgid "Frequency "
|
msgid "Frequency "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:456
|
#: app.py:504
|
||||||
msgid "Frequency in A "
|
msgid "Frequency in A "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:457 templates/base.html:23 templates/base.html:25
|
#: app.py:505 templates/base.html:23 templates/base.html:25
|
||||||
#: templates/index.html:8 templates/result.html:21
|
#: templates/index.html:8 templates/result.html:21
|
||||||
msgid "code"
|
msgid "code"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -212,19 +225,20 @@ msgstr ""
|
|||||||
msgid "Upload a treebank"
|
msgid "Upload a treebank"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:12 templates/index.html:20 templates/index.html:172
|
#: templates/index.html:12 templates/index.html:20 templates/index.html:191
|
||||||
#: templates/index.html:179
|
#: templates/index.html:198
|
||||||
msgid "in CONLL-U format"
|
msgid "in CONLL-U format"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:12 templates/index.html:43 templates/index.html:83
|
#: templates/index.html:12 templates/index.html:43 templates/index.html:83
|
||||||
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
||||||
#: templates/index.html:132 templates/index.html:138 templates/index.html:144
|
#: templates/index.html:132 templates/index.html:142 templates/index.html:148
|
||||||
#: templates/index.html:152 templates/index.html:171 templates/index.html:172
|
#: templates/index.html:156 templates/index.html:171 templates/index.html:190
|
||||||
|
#: templates/index.html:191
|
||||||
msgid "Help"
|
msgid "Help"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:15 templates/index.html:175
|
#: templates/index.html:15 templates/index.html:194
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -232,11 +246,11 @@ msgstr ""
|
|||||||
msgid "Upload"
|
msgid "Upload"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
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 ""
|
||||||
|
|
||||||
@ -276,11 +290,13 @@ msgstr ""
|
|||||||
msgid "include names of dependency relations"
|
msgid "include names of dependency relations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:87 templates/index.html:102 templates/index.html:156
|
#: templates/index.html:87 templates/index.html:102 templates/index.html:160
|
||||||
|
#: templates/index.html:175
|
||||||
msgid "No"
|
msgid "No"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:90 templates/index.html:105 templates/index.html:159
|
#: templates/index.html:90 templates/index.html:105 templates/index.html:163
|
||||||
|
#: templates/index.html:178
|
||||||
msgid "Yes"
|
msgid "Yes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -320,56 +336,76 @@ msgstr ""
|
|||||||
msgid "number of tokens in the tree"
|
msgid "number of tokens in the tree"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:138
|
#: templates/index.html:142
|
||||||
msgid "Query"
|
msgid "Query"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:138
|
#: templates/index.html:142
|
||||||
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:144
|
#: templates/index.html:148
|
||||||
msgid "Frequency threshold"
|
msgid "Frequency threshold"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:144
|
#: templates/index.html:148
|
||||||
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:152
|
#: templates/index.html:156
|
||||||
msgid "Association measures"
|
msgid "Association measures"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:152
|
#: templates/index.html:156
|
||||||
msgid "print MI, logDice and t-score"
|
msgid "print MI, logDice and t-score"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:167
|
#: templates/index.html:171
|
||||||
msgid "Compare treebanks"
|
msgid "Complete trees"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:171
|
#: templates/index.html:171
|
||||||
|
msgid "extract head node with all its dependants"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:171
|
||||||
|
msgid ""
|
||||||
|
"Note: Extracting incomplete trees ('No' option) is slow and limited to a "
|
||||||
|
"maximum tree size of 4 nodes."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:186
|
||||||
|
msgid "Compare treebanks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:190
|
||||||
msgid ""
|
msgid ""
|
||||||
"Select a reference treebank to identify key phenomena (prints the "
|
"Select a reference treebank to identify key phenomena (prints the "
|
||||||
"%DIFF, BIC and OR keyness scores)."
|
"%DIFF, BIC and OR keyness scores)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:172 templates/index.html:179
|
#: templates/index.html:191 templates/index.html:198
|
||||||
msgid "Upload a compare corpus"
|
msgid "Upload a compare corpus"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:205
|
#: templates/index.html:224
|
||||||
msgid "Submit"
|
msgid "Submit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:213
|
#: templates/index.html:232
|
||||||
msgid "No results"
|
msgid "No results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:214
|
#: templates/index.html:233
|
||||||
msgid "Processing with your settings didnt produce any results!"
|
msgid "Processing with your settings didnt produce any results!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:249
|
||||||
|
msgid ""
|
||||||
|
"Extracting incomplete trees ('No' option) is slow and limited to a "
|
||||||
|
"maximum tree size of 4 nodes."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/result.html:14
|
#: templates/result.html:14
|
||||||
msgid "Results"
|
msgid "Results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// Global array to store input names
|
// Global array to store input names
|
||||||
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'];
|
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', 'complete_trees'];
|
||||||
|
var visualInputList = ['advanced-tree-expand', 'compare-expand']
|
||||||
|
|
||||||
// Function to store values to local storage
|
// Function to store values to local storage
|
||||||
function storeValuesToLocalstorage() {
|
function storeValuesToLocalstorage() {
|
||||||
@ -15,6 +16,10 @@ function storeValuesToLocalstorage() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
visualInputList.forEach(function(inputName) {
|
||||||
|
var shown = $('#' + inputName).find('i').text().trim() === 'add';
|
||||||
|
localStorage.setItem(inputName, shown);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to read values from local storage
|
// Function to read values from local storage
|
||||||
@ -59,6 +64,13 @@ function readValuesFromLocalstorage() {
|
|||||||
return [tree_size_min, tree_size_max]
|
return [tree_size_min, tree_size_max]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function readVariableFromLocalstorage(variableName) {
|
||||||
|
if (localStorage.getItem(variableName) === null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return localStorage.getItem(variableName) === 'true';
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function(event) {
|
document.addEventListener("DOMContentLoaded", function(event) {
|
||||||
tree_size = readValuesFromLocalstorage()
|
tree_size = readValuesFromLocalstorage()
|
||||||
@ -129,8 +141,18 @@ function adjustLabelPosition() {
|
|||||||
$('#unknown-error').hide();
|
$('#unknown-error').hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#advanced-tree').hide();
|
var advancedTreeExpanded = readVariableFromLocalstorage('advanced-tree-expand');
|
||||||
var advancedTreeExpanded = false;
|
if (!advancedTreeExpanded) {
|
||||||
|
advancedTreeExpanded = true;
|
||||||
|
$('#advanced-tree').show('fast', function() {
|
||||||
|
adjustLabelPosition();
|
||||||
|
});
|
||||||
|
$('#advanced-tree-expand i').text('remove');
|
||||||
|
} else {
|
||||||
|
advancedTreeExpanded = false;
|
||||||
|
$('#advanced-tree').hide('fast');
|
||||||
|
$('#advanced-tree-expand i').text('add');
|
||||||
|
}
|
||||||
$('#advanced-tree-expand').bind('click', function(e) {
|
$('#advanced-tree-expand').bind('click', function(e) {
|
||||||
if (!advancedTreeExpanded){
|
if (!advancedTreeExpanded){
|
||||||
advancedTreeExpanded = true;
|
advancedTreeExpanded = true;
|
||||||
@ -145,8 +167,19 @@ function adjustLabelPosition() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#compare-settings').hide();
|
var compareExpanded = readVariableFromLocalstorage('compare-expand');
|
||||||
var compareExpanded = false;
|
if (!compareExpanded) {
|
||||||
|
compareExpanded = true;
|
||||||
|
$('#compare-settings').show('fast', function() {
|
||||||
|
adjustLabelPosition();
|
||||||
|
});
|
||||||
|
$('#compare-expand i').text('remove');
|
||||||
|
} else {
|
||||||
|
compareExpanded = false;
|
||||||
|
$('#compare-settings').hide('fast');
|
||||||
|
$('#compare-expand i').text('add');
|
||||||
|
}
|
||||||
|
|
||||||
$('#compare-expand').bind('click', function(e) {
|
$('#compare-expand').bind('click', function(e) {
|
||||||
if (!compareExpanded){
|
if (!compareExpanded){
|
||||||
compareExpanded = true;
|
compareExpanded = true;
|
||||||
@ -181,6 +214,12 @@ function adjustLabelPosition() {
|
|||||||
$('input.association_measures').prop('disabled', false);
|
$('input.association_measures').prop('disabled', false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('input.complete_trees').on('change', function(e) {
|
||||||
|
if(this.checked === false) {
|
||||||
|
// $('.modal2').modal('open');
|
||||||
|
$('#modal2').modal('open');
|
||||||
|
}
|
||||||
|
});
|
||||||
$('a.example-input-link').click(function(e) {
|
$('a.example-input-link').click(function(e) {
|
||||||
$('#input_url').val(this.href)
|
$('#input_url').val(this.href)
|
||||||
$('label[for="input_url"]').addClass('active')
|
$('label[for="input_url"]').addClass('active')
|
||||||
|
@ -128,9 +128,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="input-field col s12 dynamic-height">
|
<div class="input-field col s12 dynamic-height">
|
||||||
<input id="display_size" name="display_size" type="text" class="validate" value="2-10">
|
<input id="display_size" name="display_size" type="text" class="validate {% if 'display_size' in validation %} invalid{% endif %}" value="2-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>
|
<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>
|
||||||
|
{% if 'display_size' in validation %}
|
||||||
|
<span class="helper-text" data-error="{{validation['display_size']}}"></span>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="input-field col s12 dynamic-height">
|
<div class="input-field col s12 dynamic-height">
|
||||||
@ -162,6 +166,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col s12">
|
||||||
|
<label><b>{{ _('Complete trees') }}</b>: {{ _('extract head node with all its dependants') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/advanced.md#--complete" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>). {{_("Note: Extracting incomplete trees ('No' option) is slow and limited to a maximum tree size of 4 nodes.") }}</label>
|
||||||
|
<div class="input-field">
|
||||||
|
<div class="switch">
|
||||||
|
<label>
|
||||||
|
{{ _('No') }}
|
||||||
|
<input class="complete_trees" type="checkbox" name="complete_trees" checked="checked">
|
||||||
|
<span class="lever"></span>
|
||||||
|
{{ _('Yes') }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h6><a class="waves-effect waves-light inline expand" id="compare-expand"><i class="material-icons em-1 ">add</i> {{ _('Compare treebanks') }}</a></h6>
|
<h6><a class="waves-effect waves-light inline expand" id="compare-expand"><i class="material-icons em-1 ">add</i> {{ _('Compare treebanks') }}</a></h6>
|
||||||
@ -220,6 +239,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Modal Trigger -->
|
||||||
|
<a class="waves-effect waves-light btn modal-trigger" href="#modal2">Modal</a>
|
||||||
|
|
||||||
|
<!-- Modal Structure -->
|
||||||
|
<div id="modal2" class="modal">
|
||||||
|
<div class="modal-content">
|
||||||
|
<h4>Warning</h4>
|
||||||
|
<p>{{_("Extracting incomplete trees ('No' option) is slow and limited to a maximum tree size of 4 nodes.") }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="modal-footer">
|
||||||
|
<a href="#!" class="modal-close waves-effect waves-green btn-flat">OK</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block custom_js %}
|
{% block custom_js %}
|
||||||
<script src="static/js/init.js"></script>
|
<script src="static/js/init.js"></script>
|
||||||
|
Binary file not shown.
@ -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: 2025-01-11 13:07+0100\n"
|
"POT-Creation-Date: 2025-03-30 15:31+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"
|
||||||
@ -18,99 +18,115 @@ msgstr ""
|
|||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
"Generated-By: Babel 2.14.0\n"
|
"Generated-By: Babel 2.14.0\n"
|
||||||
|
|
||||||
#: app.py:145 app.py:221
|
#: app.py:163 app.py:243
|
||||||
msgid "Tree"
|
msgid "Tree"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:146 app.py:222
|
#: app.py:164 app.py:244
|
||||||
msgid "Frequency"
|
msgid "Frequency"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:147 app.py:223
|
#: app.py:165 app.py:245
|
||||||
msgid "Frequency in B"
|
msgid "Frequency in B"
|
||||||
msgstr "Frequency-B"
|
msgstr "Frequency-B"
|
||||||
|
|
||||||
#: app.py:148 app.py:224
|
#: app.py:166 app.py:246
|
||||||
msgid "Order"
|
msgid "Order"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:149 app.py:225
|
#: app.py:167 app.py:247
|
||||||
msgid "Number of nodes"
|
msgid "Number of nodes"
|
||||||
msgstr "Node count"
|
msgstr "Node count"
|
||||||
|
|
||||||
#: app.py:150 app.py:226
|
#: app.py:168 app.py:248
|
||||||
msgid "Head node"
|
msgid "Head node"
|
||||||
msgstr "Head"
|
msgstr "Head"
|
||||||
|
|
||||||
#: app.py:151 app.py:227
|
#: app.py:169 app.py:249
|
||||||
msgid "Grew-match URL"
|
msgid "Grew-match URL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:152 app.py:228
|
#: app.py:170 app.py:250
|
||||||
msgid "Ratio"
|
msgid "Ratio"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:153 app.py:229
|
#: app.py:171 app.py:251
|
||||||
msgid "%DIFF"
|
msgid "%DIFF"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:154 app.py:230
|
#: app.py:172 app.py:252
|
||||||
msgid "OR"
|
msgid "OR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:155 app.py:231
|
#: app.py:173 app.py:253
|
||||||
msgid "BIC"
|
msgid "BIC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:156 app.py:232
|
#: app.py:174 app.py:254
|
||||||
msgid "MI"
|
msgid "MI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:157 app.py:233
|
#: app.py:175 app.py:255
|
||||||
msgid "logDice"
|
msgid "logDice"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:158 app.py:234
|
#: app.py:176 app.py:256
|
||||||
msgid "t-score"
|
msgid "t-score"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:161 app.py:237
|
#: app.py:179 app.py:259
|
||||||
msgid "Frequency in A"
|
msgid "Frequency in A"
|
||||||
msgstr "Frequency-A"
|
msgstr "Frequency-A"
|
||||||
|
|
||||||
#: app.py:307 app.py:308
|
#: app.py:340 app.py:341
|
||||||
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:318 app.py:399
|
#: app.py:351 app.py:447
|
||||||
msgid "Incorrect URL!"
|
msgid "Incorrect URL!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:320 app.py:321
|
#: app.py:353 app.py:354
|
||||||
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:329
|
#: app.py:360
|
||||||
|
msgid ""
|
||||||
|
"Please insert an integer number or a range separated with `-`, without "
|
||||||
|
"spaces. Example: 3 or 2-4."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: app.py:365
|
||||||
|
msgid ""
|
||||||
|
"Please set a maximum display size to a number equal or lower to 4, when "
|
||||||
|
"extracting Incomplete trees. Or search through complete trees (Complete "
|
||||||
|
"trees parameter)."
|
||||||
|
msgstr ""
|
||||||
|
"Please set a maximum tree size to a number equal or lower to 4, when "
|
||||||
|
"extracting Incomplete trees. Or search through complete trees (Complete "
|
||||||
|
"trees parameter)."
|
||||||
|
|
||||||
|
#: app.py:377
|
||||||
msgid "Please select at least one node type."
|
msgid "Please select at least one node type."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:334
|
#: app.py:382
|
||||||
msgid "Node option"
|
msgid "Node option"
|
||||||
msgstr "Node option"
|
msgstr "Node option"
|
||||||
|
|
||||||
#: app.py:334
|
#: app.py:382
|
||||||
msgid "is not supported. Please enter valid options."
|
msgid "is not supported. Please enter valid options."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:387 app.py:388
|
#: app.py:435 app.py:436
|
||||||
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:411
|
#: app.py:459
|
||||||
msgid "Please insert an Integer."
|
msgid "Please insert an Integer."
|
||||||
msgstr "Please insert an integer number."
|
msgstr "Please insert an integer number."
|
||||||
|
|
||||||
#: app.py:447
|
#: app.py:495
|
||||||
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."
|
||||||
@ -118,15 +134,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:456
|
#: app.py:504
|
||||||
msgid "Frequency "
|
msgid "Frequency "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:456
|
#: app.py:504
|
||||||
msgid "Frequency in A "
|
msgid "Frequency in A "
|
||||||
msgstr "Frequency-A "
|
msgstr "Frequency-A "
|
||||||
|
|
||||||
#: app.py:457 templates/base.html:23 templates/base.html:25
|
#: app.py:505 templates/base.html:23 templates/base.html:25
|
||||||
#: templates/index.html:8 templates/result.html:21
|
#: templates/index.html:8 templates/result.html:21
|
||||||
msgid "code"
|
msgid "code"
|
||||||
msgstr "en"
|
msgstr "en"
|
||||||
@ -238,19 +254,20 @@ 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:172
|
#: templates/index.html:12 templates/index.html:20 templates/index.html:191
|
||||||
#: templates/index.html:179
|
#: templates/index.html:198
|
||||||
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:43 templates/index.html:83
|
#: templates/index.html:12 templates/index.html:43 templates/index.html:83
|
||||||
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
||||||
#: templates/index.html:132 templates/index.html:138 templates/index.html:144
|
#: templates/index.html:132 templates/index.html:142 templates/index.html:148
|
||||||
#: templates/index.html:152 templates/index.html:171 templates/index.html:172
|
#: templates/index.html:156 templates/index.html:171 templates/index.html:190
|
||||||
|
#: templates/index.html:191
|
||||||
msgid "Help"
|
msgid "Help"
|
||||||
msgstr "Help"
|
msgstr "Help"
|
||||||
|
|
||||||
#: templates/index.html:15 templates/index.html:175
|
#: templates/index.html:15 templates/index.html:194
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr "Browse"
|
msgstr "Browse"
|
||||||
|
|
||||||
@ -258,11 +275,11 @@ msgstr "Browse"
|
|||||||
msgid "Upload"
|
msgid "Upload"
|
||||||
msgstr "Upload"
|
msgstr "Upload"
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr "Or"
|
msgstr "Or"
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
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 (examples:"
|
msgstr "insert a URL link to a treebank in CONLL-U format (examples:"
|
||||||
|
|
||||||
@ -302,11 +319,13 @@ msgstr "Labeled trees"
|
|||||||
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:87 templates/index.html:102 templates/index.html:156
|
#: templates/index.html:87 templates/index.html:102 templates/index.html:160
|
||||||
|
#: templates/index.html:175
|
||||||
msgid "No"
|
msgid "No"
|
||||||
msgstr "No"
|
msgstr "No"
|
||||||
|
|
||||||
#: templates/index.html:90 templates/index.html:105 templates/index.html:159
|
#: templates/index.html:90 templates/index.html:105 templates/index.html:163
|
||||||
|
#: templates/index.html:178
|
||||||
msgid "Yes"
|
msgid "Yes"
|
||||||
msgstr "Yes"
|
msgstr "Yes"
|
||||||
|
|
||||||
@ -346,35 +365,49 @@ msgstr "Tree size"
|
|||||||
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:138
|
#: templates/index.html:142
|
||||||
msgid "Query"
|
msgid "Query"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:138
|
#: templates/index.html:142
|
||||||
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:144
|
#: templates/index.html:148
|
||||||
msgid "Frequency threshold"
|
msgid "Frequency threshold"
|
||||||
msgstr "Frequency threshold"
|
msgstr "Frequency threshold"
|
||||||
|
|
||||||
#: templates/index.html:144
|
#: templates/index.html:148
|
||||||
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:152
|
#: templates/index.html:156
|
||||||
msgid "Association measures"
|
msgid "Association measures"
|
||||||
msgstr "Association measures"
|
msgstr "Association measures"
|
||||||
|
|
||||||
#: templates/index.html:152
|
#: templates/index.html:156
|
||||||
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:167
|
#: templates/index.html:171
|
||||||
msgid "Compare treebanks"
|
msgid "Complete trees"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:171
|
#: templates/index.html:171
|
||||||
|
msgid "extract head node with all its dependants"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:171
|
||||||
|
msgid ""
|
||||||
|
"Note: Extracting incomplete trees ('No' option) is slow and limited to a "
|
||||||
|
"maximum tree size of 4 nodes."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:186
|
||||||
|
msgid "Compare treebanks"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: templates/index.html:190
|
||||||
msgid ""
|
msgid ""
|
||||||
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
||||||
"BIC and OR keyness scores)."
|
"BIC and OR keyness scores)."
|
||||||
@ -382,22 +415,28 @@ msgstr ""
|
|||||||
"Select a reference treebank to identify key phenomena (prints the frequency "
|
"Select a reference treebank to identify key phenomena (prints the frequency "
|
||||||
"ratio and the %DIFF, BIC and OR keyness scores)."
|
"ratio and the %DIFF, BIC and OR keyness scores)."
|
||||||
|
|
||||||
#: templates/index.html:172 templates/index.html:179
|
#: templates/index.html:191 templates/index.html:198
|
||||||
msgid "Upload a compare corpus"
|
msgid "Upload a compare corpus"
|
||||||
msgstr "Upload a reference treebank"
|
msgstr "Upload a reference treebank"
|
||||||
|
|
||||||
#: templates/index.html:205
|
#: templates/index.html:224
|
||||||
msgid "Submit"
|
msgid "Submit"
|
||||||
msgstr "Get trees"
|
msgstr "Get trees"
|
||||||
|
|
||||||
#: templates/index.html:213
|
#: templates/index.html:232
|
||||||
msgid "No results"
|
msgid "No results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/index.html:214
|
#: templates/index.html:233
|
||||||
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."
|
||||||
|
|
||||||
|
#: templates/index.html:249
|
||||||
|
msgid ""
|
||||||
|
"Extracting incomplete trees ('No' option) is slow and limited to a maximum "
|
||||||
|
"tree size of 4 nodes."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: templates/result.html:14
|
#: templates/result.html:14
|
||||||
msgid "Results"
|
msgid "Results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -426,9 +465,6 @@ msgstr ""
|
|||||||
msgid "See examples in Grew-match"
|
msgid "See examples in Grew-match"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#~ msgid "Example subtree"
|
|
||||||
#~ msgstr "Example subtree"
|
|
||||||
|
|
||||||
#~ msgid "intro_description"
|
#~ msgid "intro_description"
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Welcome to the online demo interface for STARK - a highly-customizible "
|
#~ "Welcome to the online demo interface for STARK - a highly-customizible "
|
||||||
|
Binary file not shown.
@ -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: 2025-01-11 13:07+0100\n"
|
"POT-Creation-Date: 2025-03-30 15:31+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"
|
||||||
@ -18,99 +18,112 @@ msgstr ""
|
|||||||
"n%100==4 ? 2 : 3);\n"
|
"n%100==4 ? 2 : 3);\n"
|
||||||
"Generated-By: Babel 2.14.0\n"
|
"Generated-By: Babel 2.14.0\n"
|
||||||
|
|
||||||
#: app.py:145 app.py:221
|
#: app.py:163 app.py:243
|
||||||
msgid "Tree"
|
msgid "Tree"
|
||||||
msgstr "Drevo"
|
msgstr "Drevo"
|
||||||
|
|
||||||
#: app.py:146 app.py:222
|
#: app.py:164 app.py:244
|
||||||
msgid "Frequency"
|
msgid "Frequency"
|
||||||
msgstr "Pogostost"
|
msgstr "Pogostost"
|
||||||
|
|
||||||
#: app.py:147 app.py:223
|
#: app.py:165 app.py:245
|
||||||
msgid "Frequency in B"
|
msgid "Frequency in B"
|
||||||
msgstr "Pogostost v B"
|
msgstr "Pogostost v B"
|
||||||
|
|
||||||
#: app.py:148 app.py:224
|
#: app.py:166 app.py:246
|
||||||
msgid "Order"
|
msgid "Order"
|
||||||
msgstr "Besedni red"
|
msgstr "Besedni red"
|
||||||
|
|
||||||
#: app.py:149 app.py:225
|
#: app.py:167 app.py:247
|
||||||
msgid "Number of nodes"
|
msgid "Number of nodes"
|
||||||
msgstr "Št. vozlišč"
|
msgstr "Št. vozlišč"
|
||||||
|
|
||||||
#: app.py:150 app.py:226
|
#: app.py:168 app.py:248
|
||||||
msgid "Head node"
|
msgid "Head node"
|
||||||
msgstr "Jedro"
|
msgstr "Jedro"
|
||||||
|
|
||||||
#: app.py:151 app.py:227
|
#: app.py:169 app.py:249
|
||||||
msgid "Grew-match URL"
|
msgid "Grew-match URL"
|
||||||
msgstr "Povezava na Grew-match"
|
msgstr "Povezava na Grew-match"
|
||||||
|
|
||||||
#: app.py:152 app.py:228
|
#: app.py:170 app.py:250
|
||||||
msgid "Ratio"
|
msgid "Ratio"
|
||||||
msgstr ""
|
msgstr "Razmerje"
|
||||||
|
|
||||||
#: app.py:153 app.py:229
|
#: app.py:171 app.py:251
|
||||||
msgid "%DIFF"
|
msgid "%DIFF"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:154 app.py:230
|
#: app.py:172 app.py:252
|
||||||
msgid "OR"
|
msgid "OR"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:155 app.py:231
|
#: app.py:173 app.py:253
|
||||||
msgid "BIC"
|
msgid "BIC"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: app.py:156 app.py:232
|
#: app.py:174 app.py:254
|
||||||
msgid "MI"
|
msgid "MI"
|
||||||
msgstr "MI"
|
msgstr "MI"
|
||||||
|
|
||||||
#: app.py:157 app.py:233
|
#: app.py:175 app.py:255
|
||||||
msgid "logDice"
|
msgid "logDice"
|
||||||
msgstr "logDice"
|
msgstr "logDice"
|
||||||
|
|
||||||
#: app.py:158 app.py:234
|
#: app.py:176 app.py:256
|
||||||
msgid "t-score"
|
msgid "t-score"
|
||||||
msgstr "t-test"
|
msgstr "t-test"
|
||||||
|
|
||||||
#: app.py:161 app.py:237
|
#: app.py:179 app.py:259
|
||||||
msgid "Frequency in A"
|
msgid "Frequency in A"
|
||||||
msgstr "Pogostost v A"
|
msgstr "Pogostost v A"
|
||||||
|
|
||||||
#: app.py:307 app.py:308
|
#: app.py:340 app.py:341
|
||||||
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:318 app.py:399
|
#: app.py:351 app.py:447
|
||||||
msgid "Incorrect URL!"
|
msgid "Incorrect URL!"
|
||||||
msgstr "URL ni pravilne oblike."
|
msgstr "URL ni pravilne oblike."
|
||||||
|
|
||||||
#: app.py:320 app.py:321
|
#: app.py:353 app.py:354
|
||||||
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:329
|
#: app.py:360
|
||||||
|
msgid ""
|
||||||
|
"Please insert an integer number or a range separated with `-`, without "
|
||||||
|
"spaces. Example: 3 or 2-4."
|
||||||
|
msgstr "Vnesite število ali razpon števil, ločenih z `-`, brez presledkov. Primer: 3 ali 2-4."
|
||||||
|
|
||||||
|
#: app.py:365
|
||||||
|
msgid ""
|
||||||
|
"Please set a maximum display size to a number equal or lower to 4, when "
|
||||||
|
"extracting Incomplete trees. Or search through complete trees (Complete "
|
||||||
|
"trees parameter)."
|
||||||
|
msgstr "Pri luščenju delnih dreves, nastavite maksimalno velikost na število manjše ali enako 4. Za večje velikosti iščite po celotnih drevesih."
|
||||||
|
|
||||||
|
#: app.py:377
|
||||||
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:334
|
#: app.py:382
|
||||||
msgid "Node option"
|
msgid "Node option"
|
||||||
msgstr "Vrsta vozlišč"
|
msgstr "Vrsta vozlišč"
|
||||||
|
|
||||||
#: app.py:334
|
#: app.py:382
|
||||||
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:387 app.py:388
|
#: app.py:435 app.py:436
|
||||||
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:411
|
#: app.py:459
|
||||||
msgid "Please insert an Integer."
|
msgid "Please insert an Integer."
|
||||||
msgstr "Vnesite celo število (npr. 3)."
|
msgstr "Vnesite celo število (npr. 3)."
|
||||||
|
|
||||||
#: app.py:447
|
#: app.py:495
|
||||||
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."
|
||||||
@ -118,15 +131,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:456
|
#: app.py:504
|
||||||
msgid "Frequency "
|
msgid "Frequency "
|
||||||
msgstr "Pogostost "
|
msgstr "Pogostost "
|
||||||
|
|
||||||
#: app.py:456
|
#: app.py:504
|
||||||
msgid "Frequency in A "
|
msgid "Frequency in A "
|
||||||
msgstr "Pogostost v A "
|
msgstr "Pogostost v A "
|
||||||
|
|
||||||
#: app.py:457 templates/base.html:23 templates/base.html:25
|
#: app.py:505 templates/base.html:23 templates/base.html:25
|
||||||
#: templates/index.html:8 templates/result.html:21
|
#: templates/index.html:8 templates/result.html:21
|
||||||
msgid "code"
|
msgid "code"
|
||||||
msgstr "sl"
|
msgstr "sl"
|
||||||
@ -239,19 +252,20 @@ 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:172
|
#: templates/index.html:12 templates/index.html:20 templates/index.html:191
|
||||||
#: templates/index.html:179
|
#: templates/index.html:198
|
||||||
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:43 templates/index.html:83
|
#: templates/index.html:12 templates/index.html:43 templates/index.html:83
|
||||||
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
#: templates/index.html:98 templates/index.html:120 templates/index.html:126
|
||||||
#: templates/index.html:132 templates/index.html:138 templates/index.html:144
|
#: templates/index.html:132 templates/index.html:142 templates/index.html:148
|
||||||
#: templates/index.html:152 templates/index.html:171 templates/index.html:172
|
#: templates/index.html:156 templates/index.html:171 templates/index.html:190
|
||||||
|
#: templates/index.html:191
|
||||||
msgid "Help"
|
msgid "Help"
|
||||||
msgstr "pomoč"
|
msgstr "pomoč"
|
||||||
|
|
||||||
#: templates/index.html:15 templates/index.html:175
|
#: templates/index.html:15 templates/index.html:194
|
||||||
msgid "Browse"
|
msgid "Browse"
|
||||||
msgstr "Izberi"
|
msgstr "Izberi"
|
||||||
|
|
||||||
@ -259,11 +273,11 @@ msgstr "Izberi"
|
|||||||
msgid "Upload"
|
msgid "Upload"
|
||||||
msgstr "Naloži datoteko"
|
msgstr "Naloži datoteko"
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
msgid "Or"
|
msgid "Or"
|
||||||
msgstr "Ali"
|
msgstr "Ali"
|
||||||
|
|
||||||
#: templates/index.html:29 templates/index.html:189
|
#: templates/index.html:29 templates/index.html:208
|
||||||
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 (primeri:"
|
msgstr "vnesite povezavo URL do korpusa v formatu CONLL-U (primeri:"
|
||||||
|
|
||||||
@ -303,11 +317,13 @@ msgstr "Označena drevesa"
|
|||||||
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:87 templates/index.html:102 templates/index.html:156
|
#: templates/index.html:87 templates/index.html:102 templates/index.html:160
|
||||||
|
#: templates/index.html:175
|
||||||
msgid "No"
|
msgid "No"
|
||||||
msgstr "Ne"
|
msgstr "Ne"
|
||||||
|
|
||||||
#: templates/index.html:90 templates/index.html:105 templates/index.html:159
|
#: templates/index.html:90 templates/index.html:105 templates/index.html:163
|
||||||
|
#: templates/index.html:178
|
||||||
msgid "Yes"
|
msgid "Yes"
|
||||||
msgstr "Da"
|
msgstr "Da"
|
||||||
|
|
||||||
@ -347,35 +363,49 @@ msgstr "Velikost drevesa"
|
|||||||
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:138
|
#: templates/index.html:142
|
||||||
msgid "Query"
|
msgid "Query"
|
||||||
msgstr "Iskalni pogoj"
|
msgstr "Iskalni pogoj"
|
||||||
|
|
||||||
#: templates/index.html:138
|
#: templates/index.html:142
|
||||||
msgid "write a query. Note: Tree size attribute will be ignored!"
|
msgid "write a query. Note: Tree size attribute will be ignored!"
|
||||||
msgstr "izpis dreves z vnaprej določeno strukturo"
|
msgstr "izpis dreves z vnaprej določeno strukturo"
|
||||||
|
|
||||||
#: templates/index.html:144
|
#: templates/index.html:148
|
||||||
msgid "Frequency threshold"
|
msgid "Frequency threshold"
|
||||||
msgstr "Frekvenčni prag"
|
msgstr "Frekvenčni prag"
|
||||||
|
|
||||||
#: templates/index.html:144
|
#: templates/index.html:148
|
||||||
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:152
|
#: templates/index.html:156
|
||||||
msgid "Association measures"
|
msgid "Association measures"
|
||||||
msgstr "Mere povezovalnosti"
|
msgstr "Mere povezovalnosti"
|
||||||
|
|
||||||
#: templates/index.html:152
|
#: templates/index.html:156
|
||||||
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:167
|
#: templates/index.html:171
|
||||||
|
msgid "Complete trees"
|
||||||
|
msgstr "Celotna drevesa"
|
||||||
|
|
||||||
|
#: templates/index.html:171
|
||||||
|
msgid "extract head node with all its dependants"
|
||||||
|
msgstr "izlušči glavo z vsemi povezavami"
|
||||||
|
|
||||||
|
#: templates/index.html:171
|
||||||
|
msgid ""
|
||||||
|
"Note: Extracting incomplete trees ('No' option) is slow and limited to a "
|
||||||
|
"maximum tree size of 4 nodes."
|
||||||
|
msgstr "Luščenje delnih dreves (opcija `Ne`) je počasno in omejeno z največjo velikostjo luščenja - 4."
|
||||||
|
|
||||||
|
#: templates/index.html:186
|
||||||
msgid "Compare treebanks"
|
msgid "Compare treebanks"
|
||||||
msgstr "Primerjava korpusov"
|
msgstr "Primerjava korpusov"
|
||||||
|
|
||||||
#: templates/index.html:171
|
#: templates/index.html:190
|
||||||
msgid ""
|
msgid ""
|
||||||
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
||||||
"BIC and OR keyness scores)."
|
"BIC and OR keyness scores)."
|
||||||
@ -383,22 +413,28 @@ msgstr ""
|
|||||||
"Primerjava z rezultati v referenčnem korpusu (izračun razmerja frekvenc ter "
|
"Primerjava z rezultati v referenčnem korpusu (izračun razmerja frekvenc ter "
|
||||||
"vrednosti %DIFF, BIC in Odds Ratio)"
|
"vrednosti %DIFF, BIC in Odds Ratio)"
|
||||||
|
|
||||||
#: templates/index.html:172 templates/index.html:179
|
#: templates/index.html:191 templates/index.html:198
|
||||||
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:205
|
#: templates/index.html:224
|
||||||
msgid "Submit"
|
msgid "Submit"
|
||||||
msgstr "Poišči drevesa"
|
msgstr "Poišči drevesa"
|
||||||
|
|
||||||
#: templates/index.html:213
|
#: templates/index.html:232
|
||||||
msgid "No results"
|
msgid "No results"
|
||||||
msgstr "Brez zadetkov"
|
msgstr "Brez zadetkov"
|
||||||
|
|
||||||
#: templates/index.html:214
|
#: templates/index.html:233
|
||||||
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."
|
||||||
|
|
||||||
|
#: templates/index.html:249
|
||||||
|
msgid ""
|
||||||
|
"Extracting incomplete trees ('No' option) is slow and limited to a maximum "
|
||||||
|
"tree size of 4 nodes."
|
||||||
|
msgstr "Luščenje delnih dreves (opcija `Ne`) je počasno in omejeno z največjo velikostjo luščenja - 4."
|
||||||
|
|
||||||
#: templates/result.html:14
|
#: templates/result.html:14
|
||||||
msgid "Results"
|
msgid "Results"
|
||||||
msgstr "Rezultati"
|
msgstr "Rezultati"
|
||||||
|
Loading…
Reference in New Issue
Block a user