nopaque/web/app/templates/services/nlp.html.j2

117 lines
4.5 KiB
Plaintext
Raw Normal View History

2020-02-07 14:21:59 +00:00
{% extends "nopaque.html.j2" %}
2020-08-24 12:21:16 +00:00
{% set main_class = 'nlp-color lighten' %}
2020-02-20 09:13:35 +00:00
2020-08-25 13:37:45 +00:00
{% block page_content %}
<style>
2020-08-25 09:49:43 +00:00
main button, main .btn, main .btn-floating {background-color: {{ nlp_color_darken }};}
2020-08-25 13:37:45 +00:00
</style>
2020-08-25 09:49:43 +00:00
2020-03-07 19:20:58 +00:00
<div class="col s12 m3 push-m9">
2020-08-24 12:21:16 +00:00
<div class="center-align">
2020-08-25 09:49:43 +00:00
<p class="hide-on-small-only">&nbsp;</p>
<p class="hide-on-small-only">&nbsp;</p>
<a class="btn-floating btn-large waves-effect waves-light" style="transform: scale(2);">
2020-08-24 12:21:16 +00:00
<i class="material-icons service" data-service="nlp"></i>
</a>
</div>
2020-03-07 19:20:58 +00:00
</div>
<div class="col s12 m9 pull-m3">
2020-08-24 12:21:16 +00:00
<div class="card" style="border-top: 10px solid {{ nlp_color_darken }};">
2020-03-02 09:42:25 +00:00
<div class="card-content">
<div class="row">
<div class="col s12 m6">
<div class="card-panel z-depth-0">
2020-02-27 15:26:04 +00:00
<span class="card-title"><i class="left material-icons">layers</i>Tokenization</span>
<p>Your text is split up into sentences and words, so called tokens, which can then be analyzed.</p>
2020-02-18 14:31:10 +00:00
</div>
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 m6">
<div class="card-panel z-depth-0">
2020-02-27 15:26:04 +00:00
<span class="card-title"><i class="left material-icons">layers</i>Lemmatization</span>
<p>All inflected forms of a word are grouped together so that it can be analyzed as a single item.</p>
2020-02-18 14:31:10 +00:00
</div>
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 m6">
<div class="card-panel z-depth-0">
2020-02-27 15:26:04 +00:00
<span class="card-title"><i class="left material-icons">layers</i>Part-of-speech Tagging</span>
<p>In accordance with its definition and context, each word is marked up as corresponding to a particular part of speech.</p>
2020-02-18 14:31:10 +00:00
</div>
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12 m6">
<div class="card-panel z-depth-0">
2020-02-27 15:26:04 +00:00
<span class="card-title"><i class="left material-icons">layers</i>Named-Entity Recognition</span>
<p>Named entities are located and classified into specific categories like persons or locations.</p>
2020-02-18 14:31:10 +00:00
</div>
</div>
</div>
</div>
</div>
2020-03-02 13:19:54 +00:00
</div>
<div class="col s12">
2020-03-02 09:42:25 +00:00
<h3>Submit a job</h3>
<div class="card">
<form class="nopaque-submit-form" data-progress-modal="progress-modal">
2020-03-02 09:42:25 +00:00
<div class="card-content">
2020-04-17 09:04:09 +00:00
{{ add_job_form.hidden_tag() }}
2020-03-02 09:42:25 +00:00
<div class="row">
<div class="col s12 l4">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.title, data_length='32', material_icon='title') }}
2020-03-02 09:42:25 +00:00
</div>
2020-04-17 09:04:09 +00:00
<div class="col s12 l8">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.description, data_length='255', material_icon='description') }}
2020-03-02 09:42:25 +00:00
</div>
2020-04-17 09:04:09 +00:00
<div class="col s12 l5">
2020-08-25 09:49:43 +00:00
{{ M.render_field(add_job_form.files, accept='text/plain', placeholder='Choose your .txt files') }}
</div>
2020-04-17 09:04:09 +00:00
<div class="col s12 l4">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.language, material_icon='language') }}
2020-03-02 09:42:25 +00:00
</div>
2020-04-17 09:04:09 +00:00
<div class="col s12 l3">
2020-04-17 09:13:11 +00:00
{{ M.render_field(add_job_form.version, material_icon='apps') }}
2020-03-02 09:42:25 +00:00
</div>
<div class="col s12">
<span class="card-title">Preprocessing</span>
</div>
<div class="col s9">
<p>{{ add_job_form.check_encoding.label.text }}</p>
<p class="light">If the input files are not created with the nopaque OCR service or you do not know if your text files are UTF-8 encoded, check this switch. We will try to automatically determine the right encoding for your texts to process them.</p>
</div>
<div class="col s3 right-align">
<div class="switch">
<label>
{{ add_job_form.check_encoding() }}
<span class="lever"></span>
</label>
</div>
</div>
2020-03-02 09:42:25 +00:00
<!--
Seperate each setting with the following
<div class="col s12"><p>&nbsp;</p></div>
<div class="col s12 divider"></div>
<div class="col s12"><p>&nbsp;</p></div>
-->
</div>
2020-03-02 09:42:25 +00:00
</div>
<div class="card-action right-align">
2020-08-25 09:49:43 +00:00
{{ M.render_field(add_job_form.submit, material_icon='send') }}
2020-03-02 09:42:25 +00:00
</div>
</form>
</div>
</div>
<div id="progress-modal" class="modal">
<div class="modal-content">
2020-04-17 09:04:09 +00:00
<h4><i class="material-icons prefix">file_upload</i> Uploading files...</h4>
<div class="progress">
<div class="determinate" style="width: 0%"></div>
</div>
</div>
<div class="modal-footer">
2020-02-20 14:59:08 +00:00
<a href="#!" class="modal-close waves-effect waves-light btn red abort-request">Cancel</a>
</div>
</div>
{% endblock %}