Pre template modifications
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
|
||||
<!-- 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"/>
|
||||
@@ -15,7 +17,7 @@
|
||||
</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">STARK</a>
|
||||
<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') }}">
|
||||
@@ -24,23 +26,32 @@
|
||||
</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>
|
||||
<div class="container">
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="col s12">
|
||||
<p class="caption">{{ _('intro_description') }}</p>
|
||||
|
||||
<form autocomplete="off" action="{{ url_for('index', lang=_('code')) }}" method="POST" enctype="multipart/form-data" id="submit-form">
|
||||
<h4>{{ _('Input data') }}</h4>
|
||||
<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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<!-- <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') }}"/>-->
|
||||
<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 %}
|
||||
@@ -49,7 +60,7 @@
|
||||
<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" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="{{ _('Example') }}"><span class="menu-title sr-only">{{ _('Example') }}</span></a>)</label>
|
||||
<label for="input_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} (<a class="nav-link" 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 %}
|
||||
@@ -58,10 +69,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>{{ _('Tree specification') }}</h4>
|
||||
<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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<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 />
|
||||
@@ -69,7 +80,7 @@
|
||||
</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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<label><b>{{ _('Node type') }}</b>: {{ _('token characteristics to consider') }} (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--node_type" target="_blank" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<div class="row">
|
||||
<div class="input-field">
|
||||
<div class="col s4">
|
||||
@@ -104,12 +115,12 @@
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<h4><a class="waves-effect waves-light inline" id="advanced-tree-expand"><i class="material-icons">add</i> {{ _('Advanced settings') }}</a></h4>
|
||||
<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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<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>
|
||||
@@ -124,7 +135,7 @@
|
||||
</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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<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>
|
||||
@@ -137,10 +148,30 @@
|
||||
</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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<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>
|
||||
@@ -153,38 +184,21 @@
|
||||
</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">
|
||||
<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" 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="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" 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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<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" title="{{ _('Help') }}"><span class="menu-title sr-only">{{ _('Help') }}</span></a>)</label>
|
||||
<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') }}"/>
|
||||
<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 %}
|
||||
@@ -194,7 +208,7 @@
|
||||
<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" href="https://raw.githubusercontent.com/UniversalDependencies/UD_English-GUM/master/en_gum-ud-train.conllu" title="{{ _('Example') }}"><span class="menu-title sr-only">{{ _('Example') }}</span></a>)</label>
|
||||
<label for="compare_url"><u>{{ _('Or') }}</u> {{ _('insert a URL link to a treebank in CONLL-U format') }} (<a class="nav-link" 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 %}
|
||||
@@ -209,14 +223,14 @@
|
||||
</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>
|
||||
<!-- <i class="material-icons right">send</i>-->
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<!-- Modal Structure -->
|
||||
<div id="modal1" class="modal">
|
||||
<div class="modal-content">
|
||||
<h4>{{ _('No results') }}</h4>
|
||||
<h6>{{ _('No results') }}</h6>
|
||||
<p>{{ _('Processing with your settings didnt produce any results!') }}</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
@@ -230,17 +244,25 @@
|
||||
<footer class="page-footer blackcjvt">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col s2">
|
||||
<h5 class="white-text">Credits</h5>
|
||||
<p class="grey-text text-lighten-4">Add some logos here?</p>
|
||||
|
||||
|
||||
<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">
|
||||
<p class="grey-text text-lighten-4">And some others</p>
|
||||
<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 s6">
|
||||
<p class="grey-text text-lighten-4">And others...</p>
|
||||
<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>
|
||||
@@ -257,6 +279,7 @@
|
||||
<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 %}
|
||||
|
||||
Reference in New Issue
Block a user