Multiple visual adaptations.
This commit is contained in:
parent
f23c9e3953
commit
349b8042d1
71
app.py
71
app.py
|
@ -15,40 +15,12 @@ from stark import run
|
|||
UPLOAD_FOLDER = 'uploads'
|
||||
ALLOWED_EXTENSIONS = {'conllu'}
|
||||
DAYS_BEFORE_DELETION = 1
|
||||
TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS = {
|
||||
'Tree': 'Tree',
|
||||
'Absolute frequency': 'Frequency',
|
||||
'Number of nodes': 'Number of nodes',
|
||||
'Head node': 'Head node',
|
||||
'Grew-match URL': 'Grew-match URL',
|
||||
'Order': 'Order',
|
||||
'MI': 'MI',
|
||||
'logDice': 'logDice',
|
||||
't-score': 't-score'
|
||||
}
|
||||
DISPLAYED_TABLE_COLUMNS2TABLE_COLUMNS = {v: k for k, v in TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS.items()}
|
||||
DEFAULT_LANGUAGE = 'en'
|
||||
LANGUAGES = ['en', 'sl']
|
||||
|
||||
_translations = {
|
||||
'en': {
|
||||
'hello': 'Hello',
|
||||
'welcome': 'Welcome',
|
||||
'greeting': 'How are you?',
|
||||
'name': 'Your name:',
|
||||
'code': 'en',
|
||||
'switch_code': 'SL',
|
||||
'switch_link': '?lang=sl',
|
||||
},
|
||||
'sl': {
|
||||
'hello': 'Hola',
|
||||
'welcome': 'Bienvenido',
|
||||
'greeting': '¿Cómo estás?',
|
||||
'name': 'Tu nombre:',
|
||||
'code': 'sl',
|
||||
'switch_code': 'EN',
|
||||
'switch_link': '?lang=en',
|
||||
},
|
||||
'en': {},
|
||||
'sl': {},
|
||||
}
|
||||
|
||||
|
||||
|
@ -115,6 +87,7 @@ def create_app():
|
|||
@app.route('/stark/result/<result_id>', methods=['GET', 'POST'])
|
||||
def result(result_id):
|
||||
|
||||
|
||||
if request.method == 'POST':
|
||||
for filename in os.listdir('media'):
|
||||
file_path = os.path.join('media', filename)
|
||||
|
@ -125,14 +98,37 @@ def create_app():
|
|||
os.remove(file_path)
|
||||
return send_file(os.path.join('media', result_id), as_attachment=True, download_name='results.tsv')
|
||||
|
||||
order_by_display = request.args.get('order_by')
|
||||
order_by = DISPLAYED_TABLE_COLUMNS2TABLE_COLUMNS[order_by_display[:-1]] if order_by_display is not None else None
|
||||
order_type = request.args.get('order_type')
|
||||
|
||||
with open(os.path.join('media', result_id), 'r') as rf:
|
||||
|
||||
content = list(csv.reader(rf, delimiter='\t'))
|
||||
head = content[0]
|
||||
content_dict = {h: [] for h in head}
|
||||
table_columns2displayed_table_columns = {
|
||||
'Tree': gettext('Tree'),
|
||||
'Absolute frequency': gettext('Frequency'),
|
||||
'Number of nodes': gettext('Number of nodes'),
|
||||
'Head node': gettext('Head node'),
|
||||
'Grew-match URL': gettext('Grew-match URL'),
|
||||
'Order': gettext('Order'),
|
||||
'MI': gettext('MI'),
|
||||
'logDice': gettext('logDice'),
|
||||
't-score': gettext('t-score')
|
||||
}
|
||||
if 'Absolute frequency in second treebank' in head:
|
||||
table_columns2displayed_table_columns['Absolute frequency'] = gettext('Frequency in A')
|
||||
table_columns2displayed_table_columns['Absolute frequency in second treebank'] = gettext('Frequency in B')
|
||||
if 'MI' in table_columns2displayed_table_columns:
|
||||
del table_columns2displayed_table_columns['MI']
|
||||
if 'logDice' in table_columns2displayed_table_columns:
|
||||
del table_columns2displayed_table_columns['logDice']
|
||||
if 't-score' in table_columns2displayed_table_columns:
|
||||
del table_columns2displayed_table_columns['t-score']
|
||||
displayed_table_columns2table_columns = {v: k for k, v in table_columns2displayed_table_columns.items()}
|
||||
order_by_display = request.args.get('order_by')
|
||||
order_by = displayed_table_columns2table_columns[
|
||||
order_by_display[:-1]] if order_by_display is not None else None
|
||||
order_type = request.args.get('order_type')
|
||||
if order_by is not None and order_by in head:
|
||||
sort_id = head.index(order_by)
|
||||
if order_type == 'asc':
|
||||
|
@ -147,11 +143,11 @@ def create_app():
|
|||
for j, v in enumerate(row):
|
||||
content_dict[head[j]].append(v)
|
||||
|
||||
displayed_head = [TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS[col] for col in head if col in TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS]
|
||||
displayed_head = [table_columns2displayed_table_columns[col] for col in head if col in table_columns2displayed_table_columns]
|
||||
displayed_content_dict = {}
|
||||
for column, v in content_dict.items():
|
||||
if column in TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS:
|
||||
displayed_content_dict[TABLE_COLUMNS2DISPLAYED_TABLE_COLUMNS[column]] = v
|
||||
if column in table_columns2displayed_table_columns:
|
||||
displayed_content_dict[table_columns2displayed_table_columns[column]] = v
|
||||
return render_template('result.html', head_row=displayed_head, content=displayed_content_dict)
|
||||
|
||||
@app.route('/stark/', methods=['GET', 'POST'])
|
||||
|
@ -328,7 +324,8 @@ def create_app():
|
|||
if len(content) == 1:
|
||||
validation['results'] = False
|
||||
return render_template('index.html', validation=validation, translations=translations)
|
||||
return redirect(url_for('result', result_id=name, order_by='Frequency ', order_type='desc', lang=gettext('code')))
|
||||
order_by = gettext('Frequency ') if not configs['compare'] else gettext('Frequency in A ')
|
||||
return redirect(url_for('result', result_id=name, order_by=order_by, order_type='desc', lang=gettext('code')))
|
||||
return render_template('index.html', translations=translations)
|
||||
|
||||
return app
|
||||
|
|
249
messages.pot
249
messages.pot
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2024-02-20 10:56+0100\n"
|
||||
"POT-Creation-Date: 2024-03-06 09:29+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -17,227 +17,312 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Generated-By: Babel 2.14.0\n"
|
||||
|
||||
#: app.py:192 app.py:193
|
||||
#: app.py:108
|
||||
msgid "Tree"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:109
|
||||
msgid "Frequency"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:110
|
||||
msgid "Number of nodes"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:111
|
||||
msgid "Head node"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:112
|
||||
msgid "Grew-match URL"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:113
|
||||
msgid "Order"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:114
|
||||
msgid "MI"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:115
|
||||
msgid "logDice"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:116
|
||||
msgid "t-score"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:119
|
||||
msgid "Frequency in A"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:120
|
||||
msgid "Frequency in B"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:175 app.py:176
|
||||
msgid "Please insert either input url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:203 app.py:297
|
||||
#: app.py:186 app.py:281
|
||||
msgid "Incorrect URL!"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:205 app.py:206
|
||||
#: app.py:188 app.py:189
|
||||
msgid "Please insert either input url or provide a file."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:218
|
||||
#: app.py:201
|
||||
msgid "Please provide information about minimum and maximum tree size."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:222
|
||||
#: app.py:205
|
||||
msgid "Tree size minimum should be smaller than tree size maximum."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:233
|
||||
#: app.py:216
|
||||
msgid "Please select at least one node type."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "Node option"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "is not supported. Please enter valid options."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:286 app.py:287
|
||||
#: app.py:269 app.py:270
|
||||
msgid "Please insert either compare url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:307
|
||||
#: app.py:293
|
||||
msgid "Please insert an Integer."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:331
|
||||
#: app.py:318
|
||||
msgid ""
|
||||
"Processing failed! Please recheck your settings, e.g. input format or "
|
||||
"head node description."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:340 templates/about.html:18 templates/about.html:20
|
||||
#: templates/index.html:18 templates/index.html:20 templates/index.html:32
|
||||
#: templates/result.html:18 templates/result.html:20
|
||||
#: app.py:327
|
||||
msgid "Frequency "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:327
|
||||
msgid "Frequency in A "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:328 templates/base.html:20 templates/base.html:22
|
||||
#: templates/index.html:8 templates/result.html:15
|
||||
msgid "code"
|
||||
msgstr ""
|
||||
|
||||
#: templates/about.html:20 templates/about.html:31 templates/index.html:20
|
||||
#: templates/result.html:20
|
||||
#: templates/about.html:7 templates/base.html:22
|
||||
msgid "About"
|
||||
msgstr ""
|
||||
|
||||
#: templates/about.html:21 templates/index.html:21 templates/result.html:21
|
||||
msgid "switch_link"
|
||||
msgstr ""
|
||||
|
||||
#: templates/about.html:22 templates/index.html:22 templates/result.html:22
|
||||
msgid "switch_code"
|
||||
msgstr ""
|
||||
|
||||
#: templates/about.html:32
|
||||
msgid "about_description"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:31
|
||||
#: templates/about.html:10
|
||||
msgid "intro_description"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:33
|
||||
#: templates/base.html:23
|
||||
msgid "switch_link"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:24
|
||||
msgid "switch_code"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:43
|
||||
msgid "Issuer"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:47
|
||||
msgid "Financial support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:51
|
||||
msgid "Transfer tool"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:55
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:59
|
||||
msgid "Support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:9
|
||||
msgid "Input data"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:36
|
||||
#: templates/index.html:12 templates/index.html:20
|
||||
msgid "Upload a treebank"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:36 templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:20 templates/index.html:160
|
||||
#: templates/index.html:167
|
||||
msgid "in CONLL-U format"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:36 templates/index.html:64 templates/index.html:72
|
||||
#: templates/index.html:112 templates/index.html:127 templates/index.html:143
|
||||
#: templates/index.html:160 templates/index.html:170 templates/index.html:176
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:41 templates/index.html:49
|
||||
#: templates/index.html:89 templates/index.html:104 templates/index.html:120
|
||||
#: templates/index.html:126 templates/index.html:132 templates/index.html:140
|
||||
#: templates/index.html:159 templates/index.html:160
|
||||
msgid "Help"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:39 templates/index.html:183
|
||||
#: templates/index.html:15 templates/index.html:163
|
||||
msgid "Browse"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:43 templates/index.html:187
|
||||
#: templates/index.html:19
|
||||
msgid "Upload"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Or"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "insert a URL link to a treebank in CONLL-U format"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Example"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:61
|
||||
#: templates/index.html:38
|
||||
msgid "Tree specification"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "Tree size"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "number of tokens in the tree"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "Node type"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "token characteristics to consider"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:78
|
||||
#: templates/index.html:55
|
||||
msgid "Part-of-speech"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:87
|
||||
#: templates/index.html:64
|
||||
msgid "Lemma"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:93
|
||||
#: templates/index.html:70
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:107
|
||||
#: templates/index.html:84
|
||||
msgid "Advanced settings"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "Labeled trees"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "include names of dependency relations"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:116 templates/index.html:131 templates/index.html:147
|
||||
#: templates/index.html:93 templates/index.html:108 templates/index.html:144
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:119 templates/index.html:134 templates/index.html:150
|
||||
#: templates/index.html:96 templates/index.html:111 templates/index.html:147
|
||||
msgid "Yes"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "Fixed order"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "differentiate trees based on surface word order"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "Association measures"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "Frequency threshold"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "Head"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "specify potential restrictions on the head node"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "Query"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "write a query. Note: Tree size attribute will be ignored!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:132
|
||||
msgid "Frequency threshold"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:132
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "Association measures"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:155
|
||||
msgid "Compare treebanks"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:159
|
||||
msgid ""
|
||||
"Select a reference treebank to identify key phenomena (prints the "
|
||||
"%DIFF, BIC and OR keyness scores)."
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:160 templates/index.html:167
|
||||
msgid "Upload a compare corpus"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:211
|
||||
#: templates/index.html:191
|
||||
msgid "Submit"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:219
|
||||
#: templates/index.html:199
|
||||
msgid "No results"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:220
|
||||
#: templates/index.html:200
|
||||
msgid "Processing with your settings didnt produce any results!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:32
|
||||
#: templates/result.html:8
|
||||
msgid "Results"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:15
|
||||
msgid "Back to chosen settings"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:16
|
||||
msgid "Download complete results"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Flask==3.0.0
|
||||
requests==2.31.0
|
||||
flask-babel==4.0.0
|
||||
stark @ git+https://github.com/clarinsi/STARK@eff0c8609c9acc2bc0b096339e91e71430cbf762
|
||||
stark @ git+https://github.com/clarinsi/STARK@master
|
||||
|
|
|
@ -271,12 +271,15 @@ h5 {
|
|||
}
|
||||
|
||||
.page-footer {
|
||||
bottom: 0; /* Position footer at the bottom */
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.footer-element {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
height: 320px;
|
||||
border-radius: 2px;
|
||||
|
||||
}
|
||||
|
@ -293,3 +296,18 @@ h5 {
|
|||
.em-1 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
html, body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.content {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// 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'];
|
||||
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'];
|
||||
|
||||
// Function to store values to local storage
|
||||
function storeValuesToLocalstorage() {
|
||||
|
|
|
@ -1,62 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
|
||||
<title>STARK</title>
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="static/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/nouislider.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="static/favicon/favicon.svg">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="redcjvt" role="navigation">
|
||||
<div class="nav-wrapper container"><a id="logo-container" href="{{url_for('index')}}?lang={{ _('code') }}&reload=true" class="brand-logo">STARK</a>
|
||||
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
||||
<li><a href="{{url_for('about')}}?lang={{ _('code') }}">{{ _('About') }}</a></li>
|
||||
<li><a id="switch-language" href="{{ _('switch_link') }}">
|
||||
{{ _('switch_code') }}
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<h4>{{ _('About') }}</h4>
|
||||
<p class="caption">{{ _('intro_description') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="page-footer blackcjvt">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col l6 s12">
|
||||
<h5 class="white-text">Credits</h5>
|
||||
<p class="grey-text text-lighten-4">Add some logos here?</p>
|
||||
<h6>{{ _('About') }}</h6>
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
{{ _('intro_description') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Scripts-->
|
||||
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
||||
<script src="static/js/materialize.js"></script>
|
||||
<script src="static/js/wNumb.js"></script>
|
||||
<script src="static/js/nouislider.min.js"></script>
|
||||
<script src="static/js/init.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
{% block custom_js %}{% endblock %}
|
||||
|
|
|
@ -9,11 +9,11 @@
|
|||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;600;700" rel="stylesheet">
|
||||
<link href="static/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/nouislider.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="/stark/static/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="/stark/static/css/nouislider.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="/stark/static/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="static/favicon/favicon.svg">
|
||||
<link rel="icon" type="image/svg+xml" href="/stark/static/favicon/favicon.svg">
|
||||
</head>
|
||||
<body class="backgroundcolorcjvt">
|
||||
<nav class="redcjvt" role="navigation">
|
||||
|
@ -29,232 +29,27 @@
|
|||
<nav class="whitecjvt" role="navigation">
|
||||
<div class="nav-wrapper container">
|
||||
<ul class="right hide-on-med-and-down">
|
||||
<li><div id="facebook_link" class="icon-nav"><img src="static/icons/logo--facebook.svg" ></div></li>
|
||||
<li><div id="twitter_x_link" class="icon-nav"><img src="static/icons/logo--twitter.svg" ></div></li>
|
||||
<li><div id="facebook_link" class="icon-nav"><img src="/stark/static/icons/logo--facebook.svg" ></div></li>
|
||||
<li><div id="twitter_x_link" class="icon-nav"><img src="/stark/static/icons/logo--twitter.svg" ></div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<div class="container">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
|
||||
<form autocomplete="off" action="{{ url_for('index', lang=_('code')) }}" method="POST" enctype="multipart/form-data" id="submit-form">
|
||||
<h6>{{ _('Input data') }}</h6>
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<!-- <label><b>{{ _('Upload a treebank') }}</b> {{ _('in CONLL-U format') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--input" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>-->
|
||||
<div class = "file-field input-field">
|
||||
<div class = "btn insidebutton">
|
||||
<span>{{ _('Browse') }}</span>
|
||||
<input type = "file" name="file"/>
|
||||
</div>
|
||||
<div class = "file-path-wrapper">
|
||||
<!-- <input class="file-path validate{% if 'file' in validation %} invalid{% endif %}" type="text" placeholder="{{ _('Upload') }}"/>-->
|
||||
<input class="file-path validate{% if 'file' in validation %} invalid{% endif %}" type="text" placeholder="{{ _('Upload a treebank') }} {{ _('in CONLL-U format') }}"/>
|
||||
{% if 'file' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['file']}}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<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>
|
||||
{% if 'input_url' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['input_url']}}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h6>{{ _('Tree specification') }}</h6>
|
||||
<div class="card">
|
||||
<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="input-field col s12">
|
||||
<br />
|
||||
<div id="slider"></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>
|
||||
<div class="row">
|
||||
<div class="input-field">
|
||||
<div class="col s4">
|
||||
<label>
|
||||
<input type="checkbox" class="filled-in {% if 'node_type' in validation %} invalid{% endif %}" name="node_type_upos" checked="checked" />
|
||||
<span>{{ _('Part-of-speech') }}</span>
|
||||
{% if 'node_type' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['node_type']}}"></span>
|
||||
{% endif %}
|
||||
</label>
|
||||
</div>
|
||||
<div class="col s4">
|
||||
<label>
|
||||
<input type="checkbox" class="filled-in" name="node_type_lemma"/>
|
||||
<span>{{ _('Lemma') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col s4">
|
||||
<label>
|
||||
<input type="checkbox" class="filled-in" name="node_type_form"/>
|
||||
<span>{{ _('Form') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<!-- Shared error message for all checkboxes -->
|
||||
{% if 'node_type' in validation %}
|
||||
<div class="col s12">
|
||||
<span class="validation-error" id="node-type-error">{{ validation['node_type'] }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h6><a class="waves-effect waves-light inline expand" id="advanced-tree-expand"><i class="material-icons em-1">add</i> {{ _('Advanced settings') }}</a></h6>
|
||||
<div class="card" id="advanced-tree">
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<label><b>{{ _('Labeled trees') }}</b>: {{ _('include names of dependency relations') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--labeled" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<div class="input-field">
|
||||
<div class="switch">
|
||||
<label>
|
||||
{{ _('No') }}
|
||||
<input type="checkbox" name="labeled_trees" checked="checked">
|
||||
<span class="lever"></span>
|
||||
{{ _('Yes') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<label><b>{{ _('Fixed order') }}</b>: {{ _('differentiate trees based on surface word order') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--fixed" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<div class="input-field">
|
||||
<div class="switch">
|
||||
<label>
|
||||
{{ _('No') }}
|
||||
<input type="checkbox" name="fixed_order" checked="checked">
|
||||
<span class="lever"></span>
|
||||
{{ _('Yes') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="root_restriction" name="root_restriction" type="text" class="validate">
|
||||
<label for="root_restriction"><b>{{ _('Head') }}</b>: {{ _('specify potential restrictions on the head node') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--head" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="query" name="query" type="text" class="validate">
|
||||
<label for="root_restriction"><b>{{ _('Query') }}</b>: {{ _('write a query. Note: Tree size attribute will be ignored!') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--query" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="frequency_threshold" name="frequency_threshold" type="text" class="validate {% if 'frequency_threshold' in validation %} invalid{% endif %}" value="1">
|
||||
<label for="frequency_threshold"><b>{{ _('Frequency threshold') }}</b>: {{ _('specify the minimum frequency of a tree in the treebank') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--frequency_threshold" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
{% if 'frequency_threshold' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['frequency_threshold']}}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<label><b>{{ _('Association measures') }}</b>: {{ _('print MI, logDice and t-score') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--association_measures" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<div class="input-field">
|
||||
<div class="switch">
|
||||
<label>
|
||||
{{ _('No') }}
|
||||
<input type="checkbox" name="association_measures">
|
||||
<span class="lever"></span>
|
||||
{{ _('Yes') }}
|
||||
</label>
|
||||
</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>
|
||||
<div class="card" id="compare-settings">
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<label>{{ _('Select a reference treebank to identify key phenomena (prints the %DIFF, BIC and OR keyness scores).') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--compare" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<!-- <label><b>{{ _('Upload a compare corpus') }}</b> {{ _('in CONLL-U format') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--compare" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>-->
|
||||
<div class = "file-field input-field">
|
||||
<div class = "btn insidebutton">
|
||||
<span>{{ _('Browse') }}</span>
|
||||
<input type = "file" name="compare_file"/>
|
||||
</div>
|
||||
<div class = "file-path-wrapper">
|
||||
<input class="file-path validate{% if 'compare_file' in validation %} invalid{% endif %}" type="text" placeholder="{{ _('Upload a compare corpus') }} {{ _('in CONLL-U format') }}"/>
|
||||
{% if 'compare_file' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['file']}}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<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>
|
||||
{% if 'compare_url' in validation %}
|
||||
<span class="helper-text" data-error="{{validation['compare_url']}}"></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if 'general' in validation %}
|
||||
<div class="col s12">
|
||||
<span class="validation-error" id="unknown-error">{{ validation['general'] }}</span>
|
||||
</div>
|
||||
</br>
|
||||
{% endif %}
|
||||
<button class="btn waves-effect waves-light btn-large btn-round" type="submit" name="action">{{ _('Submit') }}
|
||||
<!-- <i class="material-icons right">send</i>-->
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<!-- Modal Structure -->
|
||||
<div id="modal1" class="modal">
|
||||
<div class="modal-content">
|
||||
<h6>{{ _('No results') }}</h6>
|
||||
<p>{{ _('Processing with your settings didnt produce any results!') }}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#!" class="modal-close waves-effect waves-green btn-flat">Ok</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<footer class="page-footer blackcjvt">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Issuer') }}</h5>
|
||||
<div id="ul_link" class="footer-element"><img src="static/images/ul.png" ></div>
|
||||
<div id="ul_link" class="footer-element"><img src="/stark/static/images/ul.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Financial support') }}</h5>
|
||||
<div id="aris_link" class="footer-element"><img src="static/images/aris.png" ></div>
|
||||
<div id="aris_link" class="footer-element"><img src="/stark/static/images/aris.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Transfer tool') }}</h5>
|
||||
<div id="clarin_link" class="footer-element"><img src="static/images/clarin.png" ></div>
|
||||
<div id="clarin_link" class="footer-element"><img src="/stark/static/images/clarin.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('License') }}</h5>
|
||||
|
@ -262,7 +57,7 @@
|
|||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Support') }}</h5>
|
||||
<div id="cjvt_link" class="footer-element"><img src="static/images/cjvt.png" ></div>
|
||||
<div id="cjvt_link" class="footer-element"><img src="/stark/static/images/cjvt.png" ></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -276,26 +71,11 @@
|
|||
|
||||
<!-- Scripts-->
|
||||
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
||||
<script src="static/js/materialize.js"></script>
|
||||
<script src="static/js/wNumb.js"></script>
|
||||
<script src="static/js/nouislider.min.js"></script>
|
||||
<script src="static/js/generic.js"></script>
|
||||
<script src="static/js/init.js"></script>
|
||||
|
||||
{% if 'results' in validation %}
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
$(function(){
|
||||
|
||||
$('.sidenav').sidenav();
|
||||
|
||||
}); // end of document ready
|
||||
$(document).ready(function(){
|
||||
$('.modal').modal('open');
|
||||
});
|
||||
})(jQuery); // end of jQuery name space
|
||||
</script>
|
||||
{% endif %}
|
||||
<script src="/stark/static/js/materialize.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>
|
||||
{% block custom_js %}{% endblock %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,39 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
|
||||
<title>STARK</title>
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;600;700" rel="stylesheet">
|
||||
<link href="static/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/nouislider.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="static/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="static/favicon/favicon.svg">
|
||||
</head>
|
||||
<body class="backgroundcolorcjvt">
|
||||
<nav class="redcjvt" role="navigation">
|
||||
<div class="nav-wrapper container"><a id="logo-container" href="{{url_for('index')}}?lang={{ _('code') }}&reload=true" class="brand-logo"><b>STARK</b><sup>demo</sup></a>
|
||||
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
||||
<li><a href="{{url_for('about')}}?lang={{ _('code') }}">{{ _('About') }}</a></li>
|
||||
<li><a id="switch-language" href="{{ _('switch_link') }}">
|
||||
{{ _('switch_code') }}
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<nav class="whitecjvt" role="navigation">
|
||||
<div class="nav-wrapper container">
|
||||
<ul class="right hide-on-med-and-down">
|
||||
<li><div id="facebook_link" class="icon-nav"><img src="static/icons/logo--facebook.svg" ></div></li>
|
||||
<li><div id="twitter_x_link" class="icon-nav"><img src="static/icons/logo--twitter.svg" ></div></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<br>
|
||||
<div class="row">
|
||||
|
@ -157,7 +123,7 @@
|
|||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
<input id="query" name="query" type="text" class="validate">
|
||||
<label for="root_restriction"><b>{{ _('Query') }}</b>: {{ _('write a query. Note: Tree size attribute will be ignored!') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--query" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<label for="query"><b>{{ _('Query') }}</b>: {{ _('write a query. Note: Tree size attribute will be ignored!') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--query" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
@ -240,46 +206,8 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="page-footer blackcjvt">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Issuer') }}</h5>
|
||||
<div id="ul_link" class="footer-element"><img src="static/images/ul.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Financial support') }}</h5>
|
||||
<div id="aris_link" class="footer-element"><img src="static/images/aris.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Transfer tool') }}</h5>
|
||||
<div id="clarin_link" class="footer-element"><img src="static/images/clarin.png" ></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('License') }}</h5>
|
||||
<div id="apache_link"><div class="footer-license">STARK is openly available under Apache License 2.0.</div></div>
|
||||
</div>
|
||||
<div class="col s2 footer-element footer-col-content">
|
||||
<h5>{{ _('Support') }}</h5>
|
||||
<div id="cjvt_link" class="footer-element"><img src="static/images/cjvt.png" ></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Scripts-->
|
||||
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
|
||||
<script src="static/js/materialize.js"></script>
|
||||
<script src="static/js/wNumb.js"></script>
|
||||
<script src="static/js/nouislider.min.js"></script>
|
||||
<script src="static/js/generic.js"></script>
|
||||
{% endblock %}
|
||||
{% block custom_js %}
|
||||
<script src="static/js/init.js"></script>
|
||||
|
||||
{% if 'results' in validation %}
|
||||
|
@ -296,6 +224,4 @@
|
|||
})(jQuery); // end of jQuery name space
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,91 +1,52 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
|
||||
<title>STARK</title>
|
||||
|
||||
<!-- CSS -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="/stark/static/css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="/stark/static/css/nouislider.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
<link href="/stark/static/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/stark/static/favicon/favicon.svg">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="redcjvt" role="navigation">
|
||||
<div class="nav-wrapper container"><a id="logo-container" href="{{url_for('index')}}?lang={{ _('code') }}&reload=true" class="brand-logo">STARK</a>
|
||||
<ul id="nav-mobile" class="right hide-on-med-and-down">
|
||||
<li><a href="{{url_for('about')}}?lang={{ _('code') }}">{{ _('About') }}</a></li>
|
||||
<li><a id="switch-language" href="{{ _('switch_link') }}">
|
||||
{{ _('switch_code') }}
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<div class="container wider-container">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<form action="{{ url_for('result', result_id=request.view_args['result_id']) }}" method="POST" enctype="multipart/form-data" id="submit-form">
|
||||
<button class="btn waves-effect waves-light btn-large" type="submit" name="action">{{ _('Download complete results') }}
|
||||
<i class="material-icons right">download</i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Your table with many columns -->
|
||||
<div class="table-wrapper">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
{% for head in head_row %}
|
||||
{% if not head == 'Grew-match URL' %}
|
||||
<th><span>{{ head }} </span><span class="th-desc">▾</span><span class="th-asc">▴</span></th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for i in range(content['Tree']|length) %}
|
||||
<tr {% if 'Grew-match URL' in content %} class="tr-link" data-toggle="tooltip" title="See examples in Grew-match" data-href={{ content['Grew-match URL'][i] }} {% endif %}>
|
||||
{% for col in content %}
|
||||
{% if not col == 'Grew-match URL' %}
|
||||
<td>{{ content[col][i] }}</td>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="page-footer blackcjvt">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col l6 s12">
|
||||
<h5 class="white-text">Credits</h5>
|
||||
<p class="grey-text text-lighten-4">Add some logos here?</p>
|
||||
|
||||
<h6>{{ _('Results') }}</h6>
|
||||
<div class="card">
|
||||
<div class="card-content">
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
|
||||
<form action="{{ url_for('result', result_id=request.view_args['result_id']) }}" method="POST" enctype="multipart/form-data" id="submit-form">
|
||||
<button class="btn inline waves-effect waves-light btn-large" onclick="window.location.href = '{{url_for('index')}}?lang={{ _('code') }}'; event.preventDefault();">{{ _('Back to chosen settings') }} <i class="material-icons left">keyboard_double_arrow_left</i></button>
|
||||
<button class="btn inline right waves-effect waves-light btn-large" type="submit" name="action">{{ _('Download complete results') }}
|
||||
<i class="material-icons right">download</i>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-wrapper">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
{% for head in head_row %}
|
||||
{% if not head == 'Grew-match URL' %}
|
||||
<th><span>{{ head }} </span><span class="th-desc">▾</span><span class="th-asc">▴</span></th>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for i in range(content['Tree']|length) %}
|
||||
<tr {% if 'Grew-match URL' in content %} class="tr-link" data-toggle="tooltip" title="See examples in Grew-match" data-href={{ content['Grew-match URL'][i] }} {% endif %}>
|
||||
{% for col in content %}
|
||||
{% if not col == 'Grew-match URL' %}
|
||||
<td>{{ content[col][i] }}</td>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-copyright">
|
||||
<div class="container">
|
||||
Made by <a class="orange-text text-lighten-3" href="http://materializecss.com">Materialize</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
||||
<!-- Scripts-->
|
||||
<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/wNumb.js"></script>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block custom_js %}
|
||||
<script src="/stark/static/js/result.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
{% endblock %}
|
||||
|
|
Binary file not shown.
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2024-02-20 10:56+0100\n"
|
||||
"POT-Creation-Date: 2024-03-06 09:29+0100\n"
|
||||
"PO-Revision-Date: 2024-02-14 14:36+0100\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: en <LL@li.org>\n"
|
||||
|
@ -18,76 +18,114 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Generated-By: Babel 2.14.0\n"
|
||||
|
||||
#: app.py:192 app.py:193
|
||||
#: app.py:108
|
||||
msgid "Tree"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:109
|
||||
msgid "Frequency"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:110
|
||||
msgid "Number of nodes"
|
||||
msgstr "No. of nodes"
|
||||
|
||||
#: app.py:111
|
||||
msgid "Head node"
|
||||
msgstr "Head"
|
||||
|
||||
#: app.py:112
|
||||
msgid "Grew-match URL"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:113
|
||||
msgid "Order"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:114
|
||||
msgid "MI"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:115
|
||||
msgid "logDice"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:116
|
||||
msgid "t-score"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:119
|
||||
msgid "Frequency in A"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:120
|
||||
msgid "Frequency in B"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:175 app.py:176
|
||||
msgid "Please insert either input url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:203 app.py:297
|
||||
#: app.py:186 app.py:281
|
||||
msgid "Incorrect URL!"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:205 app.py:206
|
||||
#: app.py:188 app.py:189
|
||||
msgid "Please insert either input url or provide a file."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:218
|
||||
#: app.py:201
|
||||
msgid "Please provide information about minimum and maximum tree size."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:222
|
||||
#: app.py:205
|
||||
msgid "Tree size minimum should be smaller than tree size maximum."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:233
|
||||
#: app.py:216
|
||||
msgid "Please select at least one node type."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "Node option"
|
||||
msgstr "Node option"
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "is not supported. Please enter valid options."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:286 app.py:287
|
||||
#: app.py:269 app.py:270
|
||||
msgid "Please insert either compare url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:307
|
||||
#: app.py:293
|
||||
msgid "Please insert an Integer."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:331
|
||||
#: app.py:318
|
||||
msgid ""
|
||||
"Processing failed! Please recheck your settings, e.g. input format or head "
|
||||
"node description."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:340 templates/about.html:18 templates/about.html:20
|
||||
#: templates/index.html:18 templates/index.html:20 templates/index.html:32
|
||||
#: templates/result.html:18 templates/result.html:20
|
||||
#: app.py:327
|
||||
msgid "Frequency "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:327
|
||||
msgid "Frequency in A "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:328 templates/base.html:20 templates/base.html:22
|
||||
#: templates/index.html:8 templates/result.html:15
|
||||
msgid "code"
|
||||
msgstr "en"
|
||||
|
||||
#: templates/about.html:20 templates/about.html:31 templates/index.html:20
|
||||
#: templates/result.html:20
|
||||
#: templates/about.html:7 templates/base.html:22
|
||||
msgid "About"
|
||||
msgstr "About"
|
||||
|
||||
#: templates/about.html:21 templates/index.html:21 templates/result.html:21
|
||||
msgid "switch_link"
|
||||
msgstr "?lang=sl"
|
||||
|
||||
#: templates/about.html:22 templates/index.html:22 templates/result.html:22
|
||||
msgid "switch_code"
|
||||
msgstr "Slovenščina"
|
||||
|
||||
#: templates/about.html:32
|
||||
msgid "about_description"
|
||||
msgstr "This will be about description..."
|
||||
|
||||
#: templates/index.html:31
|
||||
#: templates/about.html:10
|
||||
msgid "intro_description"
|
||||
msgstr ""
|
||||
"Welcome to the online demo interface for STARK - a highly-customizible tool "
|
||||
|
@ -97,153 +135,200 @@ msgstr ""
|
|||
"in more detail here. Simply upload your treebank and click ‘SUBMIT’ to view "
|
||||
"the initial results!"
|
||||
|
||||
#: templates/index.html:33
|
||||
msgid "Input data"
|
||||
msgstr "Input data"
|
||||
#: templates/base.html:23
|
||||
msgid "switch_link"
|
||||
msgstr "?lang=sl"
|
||||
|
||||
#: templates/index.html:36
|
||||
#: templates/base.html:24
|
||||
msgid "switch_code"
|
||||
msgstr "Slovenščina"
|
||||
|
||||
#: templates/base.html:43
|
||||
msgid "Issuer"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:47
|
||||
msgid "Financial support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:51
|
||||
msgid "Transfer tool"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:55
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:59
|
||||
msgid "Support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:9
|
||||
msgid "Input data"
|
||||
msgstr "Input treebank"
|
||||
|
||||
#: templates/index.html:12 templates/index.html:20
|
||||
msgid "Upload a treebank"
|
||||
msgstr "Upload a treebank"
|
||||
|
||||
#: templates/index.html:36 templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:20 templates/index.html:160
|
||||
#: templates/index.html:167
|
||||
msgid "in CONLL-U format"
|
||||
msgstr "in CONLL-U format"
|
||||
|
||||
#: templates/index.html:36 templates/index.html:64 templates/index.html:72
|
||||
#: templates/index.html:112 templates/index.html:127 templates/index.html:143
|
||||
#: templates/index.html:160 templates/index.html:170 templates/index.html:176
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:41 templates/index.html:49
|
||||
#: templates/index.html:89 templates/index.html:104 templates/index.html:120
|
||||
#: templates/index.html:126 templates/index.html:132 templates/index.html:140
|
||||
#: templates/index.html:159 templates/index.html:160
|
||||
msgid "Help"
|
||||
msgstr "Help"
|
||||
|
||||
#: templates/index.html:39 templates/index.html:183
|
||||
#: templates/index.html:15 templates/index.html:163
|
||||
msgid "Browse"
|
||||
msgstr "Browse"
|
||||
|
||||
#: templates/index.html:43 templates/index.html:187
|
||||
#: templates/index.html:19
|
||||
msgid "Upload"
|
||||
msgstr "Upload"
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Or"
|
||||
msgstr "Or"
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "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:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Example"
|
||||
msgstr "Example"
|
||||
|
||||
#: templates/index.html:61
|
||||
#: templates/index.html:38
|
||||
msgid "Tree specification"
|
||||
msgstr "Tree specification"
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "Tree size"
|
||||
msgstr "Tree size"
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "number of tokens in the tree"
|
||||
msgstr "number of tokens in the tree"
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "Node type"
|
||||
msgstr "Node type"
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "token characteristics to consider"
|
||||
msgstr "token characteristics to consider"
|
||||
|
||||
#: templates/index.html:78
|
||||
#: templates/index.html:55
|
||||
msgid "Part-of-speech"
|
||||
msgstr "Part-of-speech"
|
||||
|
||||
#: templates/index.html:87
|
||||
#: templates/index.html:64
|
||||
msgid "Lemma"
|
||||
msgstr "Lemma"
|
||||
|
||||
#: templates/index.html:93
|
||||
#: templates/index.html:70
|
||||
msgid "Form"
|
||||
msgstr "Form"
|
||||
|
||||
#: templates/index.html:107
|
||||
#: templates/index.html:84
|
||||
msgid "Advanced settings"
|
||||
msgstr "Advanced settings"
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "Labeled trees"
|
||||
msgstr "Labeled trees"
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "include names of dependency relations"
|
||||
msgstr "include names of dependency relations"
|
||||
|
||||
#: templates/index.html:116 templates/index.html:131 templates/index.html:147
|
||||
#: templates/index.html:93 templates/index.html:108 templates/index.html:144
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: templates/index.html:119 templates/index.html:134 templates/index.html:150
|
||||
#: templates/index.html:96 templates/index.html:111 templates/index.html:147
|
||||
msgid "Yes"
|
||||
msgstr "Yes"
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "Fixed order"
|
||||
msgstr "Fixed order"
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "differentiate trees based on surface word order"
|
||||
msgstr "differentiate trees based on surface word order"
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "Association measures"
|
||||
msgstr "Association measures"
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr "print MI, logDice and t-score"
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "Frequency threshold"
|
||||
msgstr "Frequency threshold"
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr "specify the minimum frequency of a tree in the treebank"
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "Head"
|
||||
msgstr "Head"
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "specify potential restrictions on the head node"
|
||||
msgstr "specify potential restrictions on the head node"
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "Query"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "write a query. Note: Tree size attribute will be ignored!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:132
|
||||
msgid "Frequency threshold"
|
||||
msgstr "Frequency threshold"
|
||||
|
||||
#: templates/index.html:132
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr "specify the minimum frequency of a tree in the treebank"
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "Association measures"
|
||||
msgstr "Association measures"
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr "print MI, logDice and t-score"
|
||||
|
||||
#: templates/index.html:155
|
||||
msgid "Compare treebanks"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:159
|
||||
msgid ""
|
||||
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
||||
"BIC and OR keyness scores)."
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:160 templates/index.html:167
|
||||
msgid "Upload a compare corpus"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:211
|
||||
#: templates/index.html:191
|
||||
msgid "Submit"
|
||||
msgstr "Get trees"
|
||||
|
||||
#: templates/index.html:219
|
||||
#: templates/index.html:199
|
||||
msgid "No results"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:220
|
||||
#: templates/index.html:200
|
||||
msgid "Processing with your settings didnt produce any results!"
|
||||
msgstr "Processing with your settings did not produce any results!"
|
||||
|
||||
#: templates/result.html:32
|
||||
#: templates/result.html:8
|
||||
msgid "Results"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:15
|
||||
msgid "Back to chosen settings"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:16
|
||||
msgid "Download complete results"
|
||||
msgstr "Download complete results"
|
||||
|
|
Binary file not shown.
|
@ -6,7 +6,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PROJECT VERSION\n"
|
||||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
|
||||
"POT-Creation-Date: 2024-02-20 10:56+0100\n"
|
||||
"POT-Creation-Date: 2024-03-06 09:29+0100\n"
|
||||
"PO-Revision-Date: 2024-02-14 14:36+0100\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: sl <LL@li.org>\n"
|
||||
|
@ -18,77 +18,114 @@ msgstr ""
|
|||
"n%100==4 ? 2 : 3);\n"
|
||||
"Generated-By: Babel 2.14.0\n"
|
||||
|
||||
#: app.py:192 app.py:193
|
||||
#: app.py:108
|
||||
msgid "Tree"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:109
|
||||
msgid "Frequency"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:110
|
||||
msgid "Number of nodes"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:111
|
||||
msgid "Head node"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:112
|
||||
msgid "Grew-match URL"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:113
|
||||
msgid "Order"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:114
|
||||
msgid "MI"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:115
|
||||
msgid "logDice"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:116
|
||||
msgid "t-score"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:119
|
||||
msgid "Frequency in A"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:120
|
||||
msgid "Frequency in B"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:175 app.py:176
|
||||
msgid "Please insert either input url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:203 app.py:297
|
||||
#: app.py:186 app.py:281
|
||||
msgid "Incorrect URL!"
|
||||
msgstr ""
|
||||
|
||||
#: app.py:205 app.py:206
|
||||
#: app.py:188 app.py:189
|
||||
msgid "Please insert either input url or provide a file."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:218
|
||||
#: app.py:201
|
||||
msgid "Please provide information about minimum and maximum tree size."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:222
|
||||
#: app.py:205
|
||||
msgid "Tree size minimum should be smaller than tree size maximum."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:233
|
||||
#: app.py:216
|
||||
msgid "Please select at least one node type."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "Node option"
|
||||
msgstr "Vrsta vozlišč"
|
||||
|
||||
#: app.py:238
|
||||
#: app.py:221
|
||||
msgid "is not supported. Please enter valid options."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:286 app.py:287
|
||||
#: app.py:269 app.py:270
|
||||
msgid "Please insert either compare url or file, not both of them."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:307
|
||||
#: app.py:293
|
||||
msgid "Please insert an Integer."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:331
|
||||
#: app.py:318
|
||||
msgid ""
|
||||
"Processing failed! Please recheck your settings, e.g. input format or head "
|
||||
"node description."
|
||||
msgstr ""
|
||||
|
||||
#: app.py:340 templates/about.html:18 templates/about.html:20
|
||||
#: templates/index.html:18 templates/index.html:20 templates/index.html:32
|
||||
#: templates/result.html:18 templates/result.html:20
|
||||
#: app.py:327
|
||||
msgid "Frequency "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:327
|
||||
msgid "Frequency in A "
|
||||
msgstr ""
|
||||
|
||||
#: app.py:328 templates/base.html:20 templates/base.html:22
|
||||
#: templates/index.html:8 templates/result.html:15
|
||||
msgid "code"
|
||||
msgstr "sl"
|
||||
|
||||
#: templates/about.html:20 templates/about.html:31 templates/index.html:20
|
||||
#: templates/result.html:20
|
||||
#: templates/about.html:7 templates/base.html:22
|
||||
msgid "About"
|
||||
msgstr "O orodju"
|
||||
|
||||
#: templates/about.html:21 templates/index.html:21 templates/result.html:21
|
||||
msgid "switch_link"
|
||||
msgstr "?lang=en"
|
||||
|
||||
#: templates/about.html:22 templates/index.html:22 templates/result.html:22
|
||||
msgid "switch_code"
|
||||
msgstr "English"
|
||||
|
||||
#: templates/about.html:32
|
||||
msgid "about_description"
|
||||
msgstr ""
|
||||
"Tukaj je opis pod 'O orodju', v katerem povemo več. Dodamo čisto na koncu."
|
||||
|
||||
#: templates/index.html:31
|
||||
#: templates/about.html:10
|
||||
msgid "intro_description"
|
||||
msgstr ""
|
||||
"Tukaj je opis na vstopni spletni strani, ki pa ga Kaja pripravi šele na "
|
||||
|
@ -96,153 +133,200 @@ msgstr ""
|
|||
"intuitivna na prvi pogled, lahko po vzoru drugih orodij CJVT vse skupaj "
|
||||
"premaknemo pod About."
|
||||
|
||||
#: templates/index.html:33
|
||||
#: templates/base.html:23
|
||||
msgid "switch_link"
|
||||
msgstr "?lang=en"
|
||||
|
||||
#: templates/base.html:24
|
||||
msgid "switch_code"
|
||||
msgstr "English"
|
||||
|
||||
#: templates/base.html:43
|
||||
msgid "Issuer"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:47
|
||||
msgid "Financial support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:51
|
||||
msgid "Transfer tool"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:55
|
||||
msgid "License"
|
||||
msgstr ""
|
||||
|
||||
#: templates/base.html:59
|
||||
msgid "Support"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:9
|
||||
msgid "Input data"
|
||||
msgstr "Vhodni podatki"
|
||||
|
||||
#: templates/index.html:36
|
||||
#: templates/index.html:12 templates/index.html:20
|
||||
msgid "Upload a treebank"
|
||||
msgstr "Naloži korpus"
|
||||
|
||||
#: templates/index.html:36 templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:20 templates/index.html:160
|
||||
#: templates/index.html:167
|
||||
msgid "in CONLL-U format"
|
||||
msgstr "v formatu CONLL-U"
|
||||
|
||||
#: templates/index.html:36 templates/index.html:64 templates/index.html:72
|
||||
#: templates/index.html:112 templates/index.html:127 templates/index.html:143
|
||||
#: templates/index.html:160 templates/index.html:170 templates/index.html:176
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:12 templates/index.html:41 templates/index.html:49
|
||||
#: templates/index.html:89 templates/index.html:104 templates/index.html:120
|
||||
#: templates/index.html:126 templates/index.html:132 templates/index.html:140
|
||||
#: templates/index.html:159 templates/index.html:160
|
||||
msgid "Help"
|
||||
msgstr "Pomoč"
|
||||
|
||||
#: templates/index.html:39 templates/index.html:183
|
||||
#: templates/index.html:15 templates/index.html:163
|
||||
msgid "Browse"
|
||||
msgstr "Izberi"
|
||||
|
||||
#: templates/index.html:43 templates/index.html:187
|
||||
#: templates/index.html:19
|
||||
msgid "Upload"
|
||||
msgstr "Naloži datoteko"
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Or"
|
||||
msgstr "Ali"
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "insert a URL link to a treebank in CONLL-U format"
|
||||
msgstr "prilepi povezavo URL do korpusa v formatu CONLL-U"
|
||||
|
||||
#: templates/index.html:52 templates/index.html:197
|
||||
#: templates/index.html:29 templates/index.html:177
|
||||
msgid "Example"
|
||||
msgstr "Primer"
|
||||
|
||||
#: templates/index.html:61
|
||||
#: templates/index.html:38
|
||||
msgid "Tree specification"
|
||||
msgstr "Opredelitev dreves"
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "Tree size"
|
||||
msgstr "Velikost drevesa"
|
||||
|
||||
#: templates/index.html:64
|
||||
#: templates/index.html:41
|
||||
msgid "number of tokens in the tree"
|
||||
msgstr "število vozlišč (pojavnic) v drevesu"
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "Node type"
|
||||
msgstr "Vrsta vozlišč"
|
||||
|
||||
#: templates/index.html:72
|
||||
#: templates/index.html:49
|
||||
msgid "token characteristics to consider"
|
||||
msgstr "upoštevane lastnosti pojavnic"
|
||||
|
||||
#: templates/index.html:78
|
||||
#: templates/index.html:55
|
||||
msgid "Part-of-speech"
|
||||
msgstr "Besedna vrsta"
|
||||
|
||||
#: templates/index.html:87
|
||||
#: templates/index.html:64
|
||||
msgid "Lemma"
|
||||
msgstr "Lema"
|
||||
|
||||
#: templates/index.html:93
|
||||
#: templates/index.html:70
|
||||
msgid "Form"
|
||||
msgstr "Oblika"
|
||||
|
||||
#: templates/index.html:107
|
||||
#: templates/index.html:84
|
||||
msgid "Advanced settings"
|
||||
msgstr "Napredne nastavitve"
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "Labeled trees"
|
||||
msgstr "Označena drevesa"
|
||||
|
||||
#: templates/index.html:112
|
||||
#: templates/index.html:89
|
||||
msgid "include names of dependency relations"
|
||||
msgstr "izpis vrste odvisnostnih relacij med pojavnicami"
|
||||
|
||||
#: templates/index.html:116 templates/index.html:131 templates/index.html:147
|
||||
#: templates/index.html:93 templates/index.html:108 templates/index.html:144
|
||||
msgid "No"
|
||||
msgstr "Ne"
|
||||
|
||||
#: templates/index.html:119 templates/index.html:134 templates/index.html:150
|
||||
#: templates/index.html:96 templates/index.html:111 templates/index.html:147
|
||||
msgid "Yes"
|
||||
msgstr "Da"
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "Fixed order"
|
||||
msgstr "Nespremenljiv besedni red"
|
||||
|
||||
#: templates/index.html:127
|
||||
#: templates/index.html:104
|
||||
msgid "differentiate trees based on surface word order"
|
||||
msgstr "ločevanje dreves glede na vrstni red pojavnic v besedilu"
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "Association measures"
|
||||
msgstr "Mere povezovalnosti"
|
||||
|
||||
#: templates/index.html:143
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr "izpiši vrednosti MI, logDice in t-test"
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "Frequency threshold"
|
||||
msgstr "Frekvenčni prag"
|
||||
|
||||
#: templates/index.html:160
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr "najmanjše število pojavitev drevesa v korpusu"
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "Head"
|
||||
msgstr "Jedro"
|
||||
|
||||
#: templates/index.html:170
|
||||
#: templates/index.html:120
|
||||
msgid "specify potential restrictions on the head node"
|
||||
msgstr "zamejitev izpisa glede na lastnosti jedrne pojavnice"
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "Query"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:176
|
||||
#: templates/index.html:126
|
||||
msgid "write a query. Note: Tree size attribute will be ignored!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:180
|
||||
#: templates/index.html:132
|
||||
msgid "Frequency threshold"
|
||||
msgstr "Frekvenčni prag"
|
||||
|
||||
#: templates/index.html:132
|
||||
msgid "specify the minimum frequency of a tree in the treebank"
|
||||
msgstr "najmanjše število pojavitev drevesa v korpusu"
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "Association measures"
|
||||
msgstr "Mere povezovalnosti"
|
||||
|
||||
#: templates/index.html:140
|
||||
msgid "print MI, logDice and t-score"
|
||||
msgstr "izpiši vrednosti MI, logDice in t-test"
|
||||
|
||||
#: templates/index.html:155
|
||||
msgid "Compare treebanks"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:159
|
||||
msgid ""
|
||||
"Select a reference treebank to identify key phenomena (prints the %DIFF, "
|
||||
"BIC and OR keyness scores)."
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:160 templates/index.html:167
|
||||
msgid "Upload a compare corpus"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:211
|
||||
#: templates/index.html:191
|
||||
msgid "Submit"
|
||||
msgstr "Poišči drevesa"
|
||||
|
||||
#: templates/index.html:219
|
||||
#: templates/index.html:199
|
||||
msgid "No results"
|
||||
msgstr ""
|
||||
|
||||
#: templates/index.html:220
|
||||
#: templates/index.html:200
|
||||
msgid "Processing with your settings didnt produce any results!"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:32
|
||||
#: templates/result.html:8
|
||||
msgid "Results"
|
||||
msgstr "Rezultati"
|
||||
|
||||
#: templates/result.html:15
|
||||
msgid "Back to chosen settings"
|
||||
msgstr ""
|
||||
|
||||
#: templates/result.html:16
|
||||
msgid "Download complete results"
|
||||
msgstr "Prenesi datoteko s celotnimi rezultati"
|
||||
|
|
Loading…
Reference in New Issue
Block a user