Updated index page + Added about and result pages

This commit is contained in:
2023-12-05 15:26:57 +01:00
parent 6d504394ef
commit e71d656d0e
11 changed files with 616 additions and 148 deletions

View File

@@ -22,6 +22,10 @@
<!-- <li><a href="#">Navbar Link</a></li>-->
<!-- </ul>-->
<!-- <a href="#" data-target="nav-mobile" class="sidenav-trigger"><i class="material-icons">menu</i></a>-->
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="/">Processing</a></li>
<li><a href="/about">About</a></li>
</ul>
</div>
</nav>
<!-- <div class="section no-pad-bot" id="index-banner">-->
@@ -79,159 +83,135 @@
<br>
<div class="row">
<div class="col s12">
<form>
<h4>General settings</h4>
<p class="caption">Welcome to the online demo interface for STARK - a highly-customizible tool designed to extract various types of syntactic trees from dependency-parsed corpora (treebanks). Unlike the original command-line version, this user-friendly interface offers a streamlined set of settings, which are described in more detail here. Simply upload your treebank and click SUBMIT to view the initial results!</p>
<form action="{{ url_for('index') }}" method="POST" enctype="multipart/form-data" id="submit-form">
<h4>Input data</h4>
<div class="card">
<div class="card-content">
<label>Treebank</label>
<label><b>Upload a treebank</b> in CONLL-U format</label>
<div class = "file-field input-field">
<div class = "btn">
<span>Browse</span>
<input type = "file" />
<input type = "file" name="file"/>
</div>
<div class = "file-path-wrapper">
<input class="file-path validate" type="text" placeholder="Upload"/>
</div>
<span class="helper-text" data-error="wrong" data-success="right">Upload a treebank in CONLL-U format.</span>
</div>
<div class="row">
<div class="input-field col s12">
<input id="input_url" name="input_url" type="text" class="validate">
<label for="input_url">Treebank url</label>
<span class="helper-text" data-error="wrong" data-success="right">Insert a link to treebank in CONLL-U format.</span>
<label for="input_url"><u>Or</u> insert a URL link to a treebank in CONLL-U format</label>
<!-- <span class="helper-text" data-error="wrong" data-success="right">Insert a link to treebank in CONLL-U format.</span>-->
</div>
</div>
</div>
</div>
<br>
<h4>Tree specifications</h4>
<h4>Tree specification</h4>
<div class="card">
<div class="card-content">
<label>Tree size</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" 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>
<span class="helper-text" data-error="wrong" data-success="right">Specify the number of nodes in the trees to be extracted.</span>
</div>
</div>
<label>Node type</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" title="Help"><span class="menu-title sr-only">Help</span></a>)</label>
<div class="row">
<div class="input-field col s12">
<p>
<div class="input-field">
<div class="col s4">
<label>
<input type="checkbox" class="filled-in" checked="checked" />
<input type="checkbox" class="filled-in" name="node_type_upos" checked="checked" />
<span>UPOS</span>
</label>
</p>
<p>
</div>
<div class="col s4">
<label>
<input type="checkbox" class="filled-in" />
<input type="checkbox" class="filled-in" name="node_type_form"/>
<span>form</span>
</label>
</p>
<p>
</div>
<div class="col s4">
<label>
<input type="checkbox" class="filled-in" />
<input type="checkbox" class="filled-in" name="node_type_lemma"/>
<span>lemma</span>
</label>
</p>
<span class="helper-text" data-error="wrong" data-success="right">Should extracted trees be differentiated based on the surface word order?</span>
</div>
</div>
</div>
</div>
</div>
<br>
<h4>Advanced tree specifications</h4>
<div class="card">
<h4><a class="btn-floating btn-large waves-effect waves-light inline" id="advanced-tree-expand"><i class="material-icons">add</i></a> Advanced settings</h4>
<div class="card" id="advanced-tree">
<div class="card-content">
<label>Fixed order</label>
<div class="row">
<div class="input-field col s12">
<div class="switch">
<label>
No
<input type="checkbox" checked="checked">
<span class="lever"></span>
Yes
</label>
<div class="col s6">
<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>
<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 class="col s6">
<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>
<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>
<span class="helper-text" data-error="wrong" data-success="right">Should extracted trees be differentiated based on the surface word order?</span>
</div>
</div>
<label>Labeled trees</label>
<div class="row">
<div class="input-field col s12">
<div class="switch">
<label>
No
<input type="checkbox" checked="checked">
<span class="lever"></span>
Yes
</label>
</div>
<span class="helper-text" data-error="wrong" data-success="right">Should the extracted trees contain names of dependency relations?</span>
</div>
</div>
<label>Complete trees</label>
<div class="row">
<div class="input-field col s12">
<div class="switch">
<label>
No
<input type="checkbox" checked="checked">
<span class="lever"></span>
Yes
</label>
</div>
<span class="helper-text" data-error="wrong" data-success="right">Should only full subtrees be extracted (rather than all possible subtrees)?</span>
</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">Root restriction</label>
<span class="helper-text" data-error="wrong" data-success="right">Specify potential restrictions on the root of the trees to be extracted (e.g. upos=NOUN if you are interested in nominal trees only)</span>
</div>
</div>
</div>
</div>
<h4>Output settings</h4>
<div class="card">
<div class="card-content">
<label>Association measures</label>
<div class="row">
<div class="input-field col s12">
<div class="switch">
<label>
No
<input type="checkbox">
<span class="lever"></span>
Yes
</label>
</div>
<span class="helper-text" data-error="wrong" data-success="right">Include measures of statistical association between nodes of the tree (MI, MI3, Dice, logDice, t-score, simple-LL) in the output?</span>
<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>
<label>Grew-match patterns</label>
<div class="row">
<div class="input-field col s12">
<div class="switch">
<label>
No
<input type="checkbox">
<span class="lever"></span>
Yes
</label>
<div class="col s6">
<label><b>Association measures</b>: print MI, MI3, Dice, logDice, t-score and simple-LL scores (<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>
<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 class="col s6">
<label><b>Grew-match</b>: convert tree structures to Grew-match patterns (<a class="nav-link" href="https://github.com/clarinsi/STARK/blob/master/settings.md#--grew_match" 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="grewmatch_patterns">
<span class="lever"></span>
Yes
</label>
</div>
</div>
<span class="helper-text" data-error="wrong" data-success="right">Map the structure of the trees to the grew-match formalism used by https://universal.grew.fr?</span>
</div>
</div>
</div>