2023-10-04 15:24:40 +00:00
<!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" / >
2024-01-22 13:56:12 +00:00
< title > STARK< / title >
2023-10-04 15:24:40 +00:00
<!-- CSS -->
< link href = "https://fonts.googleapis.com/icon?family=Material+Icons" rel = "stylesheet" >
2024-03-05 08:08:24 +00:00
< 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" >
2023-10-04 15:24:40 +00:00
< 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" / >
2024-02-19 14:33:19 +00:00
< link rel = "icon" type = "image/svg+xml" href = "static/favicon/favicon.svg" >
2023-10-04 15:24:40 +00:00
< / head >
2024-02-19 14:33:19 +00:00
< body class = "backgroundcolorcjvt" >
< nav class = "redcjvt" role = "navigation" >
2024-03-05 08:08:24 +00:00
< 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 >
2023-12-05 14:26:57 +00:00
< ul id = "nav-mobile" class = "right hide-on-med-and-down" >
2024-02-21 10:10:31 +00:00
< li > < a href = "{{url_for('about')}}?lang={{ _('code') }}" > {{ _('About') }}< / a > < / li >
2024-02-19 14:33:19 +00:00
< li > < a id = "switch-language" href = "{{ _('switch_link') }}" >
{{ _('switch_code') }}
< / a > < / li >
2023-12-05 14:26:57 +00:00
< / ul >
2023-10-04 15:24:40 +00:00
< / div >
< / nav >
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
< div class = "container" >
< br >
< div class = "row" >
< div class = "col s12" >
2024-03-05 08:08:24 +00:00
2024-02-19 14:33:19 +00:00
< form autocomplete = "off" action = "{{ url_for('index', lang=_('code')) }}" method = "POST" enctype = "multipart/form-data" id = "submit-form" >
2024-03-05 08:08:24 +00:00
< h6 > {{ _('Input data') }}< / h6 >
2024-01-22 13:56:12 +00:00
< div class = "card" >
< div class = "card-content" >
2024-03-05 08:08:24 +00:00
<!-- <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> -->
2024-01-22 13:56:12 +00:00
< div class = "file-field input-field" >
2024-02-19 14:33:19 +00:00
< div class = "btn insidebutton" >
< span > {{ _('Browse') }}< / span >
2024-01-22 13:56:12 +00:00
< input type = "file" name = "file" / >
< / div >
< div class = "file-path-wrapper" >
2024-03-05 08:08:24 +00:00
<!-- <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') }}" / >
2024-01-22 13:56:12 +00:00
{% 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 %}" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
{% if 'input_url' in validation %}
< span class = "helper-text" data-error = "{{validation['input_url']}}" > < / span >
{% endif %}
< / div >
< / div >
< / div >
< / div >
< br >
2024-03-05 08:08:24 +00:00
< h6 > {{ _('Tree specification') }}< / h6 >
2024-01-22 13:56:12 +00:00
< div class = "card" >
< div class = "card-content" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
< div class = "row" >
< div class = "input-field col s12" >
< br / >
< div id = "slider" > < / div >
< / div >
< / div >
2023-10-04 15:24:40 +00:00
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
< 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" / >
2024-02-19 14:33:19 +00:00
< span > {{ _('Part-of-speech') }}< / span >
2024-01-22 13:56:12 +00:00
{% if 'node_type' in validation %}
< span class = "helper-text" data-error = "{{validation['node_type']}}" > < / span >
{% endif %}
< / label >
2023-10-04 15:24:40 +00:00
< / div >
2024-01-22 13:56:12 +00:00
< div class = "col s4" >
< label >
< input type = "checkbox" class = "filled-in" name = "node_type_lemma" / >
2024-02-19 14:33:19 +00:00
< span > {{ _('Lemma') }}< / span >
2024-01-22 13:56:12 +00:00
< / label >
2023-10-04 15:24:40 +00:00
< / div >
2024-01-22 13:56:12 +00:00
< div class = "col s4" >
< label >
< input type = "checkbox" class = "filled-in" name = "node_type_form" / >
2024-02-19 14:33:19 +00:00
< span > {{ _('Form') }}< / span >
2024-01-22 13:56:12 +00:00
< / label >
2023-10-04 15:24:40 +00:00
< / div >
2024-01-22 13:56:12 +00:00
<!-- 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 %}
2023-10-04 15:24:40 +00:00
< / div >
< / div >
< / div >
2024-01-22 13:56:12 +00:00
< / div >
< br >
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
< div class = "card" id = "advanced-tree" >
< div class = "card-content" >
< div class = "row" >
< div class = "col s12" >
2024-03-05 08:08:24 +00:00
< 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 >
2023-12-05 14:26:57 +00:00
< div class = "input-field" >
2024-01-22 13:56:12 +00:00
< div class = "switch" >
2023-10-04 15:24:40 +00:00
< label >
2024-02-19 14:33:19 +00:00
{{ _('No') }}
2024-01-22 13:56:12 +00:00
< input type = "checkbox" name = "labeled_trees" checked = "checked" >
< span class = "lever" > < / span >
2024-02-19 14:33:19 +00:00
{{ _('Yes') }}
2023-10-04 15:24:40 +00:00
< / label >
2023-12-05 14:26:57 +00:00
< / div >
2023-10-04 15:24:40 +00:00
< / div >
< / div >
< / div >
2024-01-22 13:56:12 +00:00
< div class = "row" >
< div class = "col s12" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-01-22 13:56:12 +00:00
< div class = "input-field" >
< div class = "switch" >
< label >
2024-02-19 14:33:19 +00:00
{{ _('No') }}
2024-01-22 13:56:12 +00:00
< input type = "checkbox" name = "fixed_order" checked = "checked" >
< span class = "lever" > < / span >
2024-02-19 14:33:19 +00:00
{{ _('Yes') }}
2024-01-22 13:56:12 +00:00
< / label >
2023-10-04 15:24:40 +00:00
< / div >
< / div >
< / div >
2024-01-22 13:56:12 +00:00
< / div >
< div class = "row" >
2024-03-05 08:08:24 +00:00
< 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 >
2023-10-04 15:24:40 +00:00
< / div >
< / div >
2024-02-13 14:19:22 +00:00
< div class = "row" >
< div class = "input-field col s12" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-02-13 14:19:22 +00:00
< / div >
< / div >
< div class = "row" >
< div class = "input-field col s12" >
2024-03-05 08:08:24 +00:00
< 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 %}
2024-02-13 14:19:22 +00:00
< / div >
< / div >
2024-02-20 09:59:58 +00:00
< div class = "row" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-02-20 09:59:58 +00:00
< / div >
< / div >
2024-03-05 08:08:24 +00:00
< / 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" >
2024-02-20 09:59:58 +00:00
< div class = "row" >
2024-03-05 08:08:24 +00:00
< 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> -->
2024-02-20 09:59:58 +00:00
< 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" >
2024-03-05 08:08:24 +00:00
< input class = "file-path validate{% if 'compare_file' in validation %} invalid{% endif %}" type = "text" placeholder = "{{ _('Upload a compare corpus') }} {{ _('in CONLL-U format') }}" / >
2024-02-20 09:59:58 +00:00
{% 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 %}" >
2024-03-05 08:08:24 +00:00
< 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 >
2024-02-20 09:59:58 +00:00
{% if 'compare_url' in validation %}
< span class = "helper-text" data-error = "{{validation['compare_url']}}" > < / span >
{% endif %}
< / div >
< / div >
2023-10-04 15:24:40 +00:00
< / div >
2024-01-22 13:56:12 +00:00
< / div >
{% if 'general' in validation %}
< div class = "col s12" >
< span class = "validation-error" id = "unknown-error" > {{ validation['general'] }}< / span >
< / div >
< / br >
{% endif %}
2024-02-19 14:33:19 +00:00
< button class = "btn waves-effect waves-light btn-large btn-round" type = "submit" name = "action" > {{ _('Submit') }}
2024-03-05 08:08:24 +00:00
<!-- <i class="material - icons right">send</i> -->
2024-01-22 13:56:12 +00:00
< / button >
< / form >
2024-02-13 14:19:22 +00:00
<!-- Modal Structure -->
< div id = "modal1" class = "modal" >
< div class = "modal-content" >
2024-03-05 08:08:24 +00:00
< h6 > {{ _('No results') }}< / h6 >
2024-02-19 14:33:19 +00:00
< p > {{ _('Processing with your settings didnt produce any results!') }}< / p >
2024-02-13 14:19:22 +00:00
< / div >
< div class = "modal-footer" >
< a href = "#!" class = "modal-close waves-effect waves-green btn-flat" > Ok< / a >
< / div >
< / div >
2023-10-04 15:24:40 +00:00
< / div >
2024-01-22 13:56:12 +00:00
< / div >
2023-10-04 15:24:40 +00:00
< / div >
2024-02-19 14:33:19 +00:00
< footer class = "page-footer blackcjvt" >
2023-10-04 15:24:40 +00:00
< div class = "container" >
< div class = "row" >
2024-03-05 08:08:24 +00:00
< 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 >
2023-10-04 15:24:40 +00:00
< / div >
2024-03-05 08:08:24 +00:00
< 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 >
2024-02-19 14:33:19 +00:00
< / div >
2024-03-05 08:08:24 +00:00
< 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 >
2024-02-19 14:33:19 +00:00
< / div >
2023-10-04 15:24:40 +00:00
< / 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 >
2024-03-05 08:08:24 +00:00
< script src = "static/js/generic.js" > < / script >
2023-10-04 15:24:40 +00:00
< script src = "static/js/init.js" > < / script >
2024-02-13 14:19:22 +00:00
{% 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 %}
2023-10-04 15:24:40 +00:00
< / body >
< / html >