nopaque/app/templates/services/corpus_analysis.html.j2

100 lines
3.8 KiB
Plaintext
Raw Normal View History

{% extends "base.html.j2" %}
{% from "services/_breadcrumbs.html.j2" import breadcrumbs with context %}
2020-02-07 14:21:59 +00:00
{% block main_attribs %} class="service-scheme" data-service="corpus-analysis"{% endblock main_attribs %}
2020-02-20 09:13:35 +00:00
2020-10-26 11:47:06 +00:00
{% block page_content %}
<div class="container">
<div class="row">
<div class="col s12">
<h1 id="title">{{ title }}</h1>
</div>
2020-03-02 13:19:54 +00:00
2020-10-26 11:47:06 +00:00
<div class="col s12 m3 push-m9">
<div class="center-align">
2021-05-05 08:05:12 +00:00
<a class="btn-floating btn-large btn-scale-x2 waves-effect waves-light" style="transform: scale(2);">
<i class="nopaque-icons service-color darken service-icon" data-service="corpus-analysis"></i>
2020-10-26 11:47:06 +00:00
</a>
2020-02-17 10:08:03 +00:00
</div>
</div>
2020-10-26 11:47:06 +00:00
<div class="col s12 m9 pull-m3">
<p>Nopaque lets you create and upload as many text corpora as you want. It makes use of CQP Query Language, which allows for complex search requests with the aid of metadata and NLP tags. The results can either be displayed as text or abstract visualizations.</p>
2020-02-07 14:21:59 +00:00
</div>
<div class="col s12" id="corpora">
2020-10-26 11:47:06 +00:00
<h2>My Corpora</h2>
<div class="card">
<div class="card-content">
2020-10-26 11:47:06 +00:00
<div class="input-field">
<i class="material-icons prefix">search</i>
<input id="search-corpus" class="search" type="search"></input>
<label for="search-corpus">Search corpus</label>
</div>
<table class="highlight ressource-list">
2020-10-26 11:47:06 +00:00
<thead>
<tr>
<th></th>
<th>
<span class="sort" data-sort="title">Title</span>
<span class="sort" data-sort="description">Description</span>
</th>
<th><span class="sort" data-sort="status">Status</span></th>
<th></th>
</tr>
</thead>
<tbody class="list"></tbody>
</table>
<ul class="pagination"></ul>
2020-10-26 11:47:06 +00:00
</div>
<div class="card-action right-align">
<a class="waves-effect waves-light btn" href="{{ url_for('corpora.import_corpus') }}"><i class="material-icons right">import_export</i>Import Corpus</a>
2020-10-27 13:38:00 +00:00
<a class="btn waves-effect waves-light" href="{{ url_for('corpora.add_corpus') }}">New corpus<i class="material-icons right">add</i></a>
2020-10-26 11:47:06 +00:00
</div>
</div>
</div>
2020-10-26 11:47:06 +00:00
<div class="col s12" id="query-results">
2020-10-26 11:47:06 +00:00
<h2>My query results</h2>
<div class="card">
<div class="card-content">
2020-10-26 11:47:06 +00:00
<div class="input-field">
<i class="material-icons prefix">search</i>
<input id="search-query-results" class="search" type="search"></input>
<label for="search-query-results">Search query result</label>
</div>
<table class="highlight ressource-list">
2020-10-26 11:47:06 +00:00
<thead>
<tr>
<th>
<span class="sort" data-sort="title">Title</span> and<br>
<span class="sort" data-sort="description">Description</span>
</th>
<th>
<span class="sort" data-sort="corpus">Corpus</span> and<br>
<span class="sort" data-sort="query">Query</span>
</th>
<th></th>
2020-10-26 11:47:06 +00:00
</tr>
</thead>
<tbody class="list"></tbody>
2020-10-26 11:47:06 +00:00
</table>
<ul class="pagination"></ul>
2020-10-26 11:47:06 +00:00
</div>
<div class="card-action right-align">
2020-10-27 13:38:00 +00:00
<a class="btn waves-effect waves-light" href="{{ url_for('corpora.add_query_result') }}">Add query result<i class="material-icons right">file_upload</i></a>
2020-10-26 11:47:06 +00:00
</div>
</div>
</div>
</div>
</div>
2021-12-01 13:15:20 +00:00
{% endblock page_content %}
2020-10-26 11:47:06 +00:00
{% block scripts %}
{{ super() }}
<script>
let corpusList = new CorpusList(document.querySelector('#corpora'));
let queryResultList = new QueryResultList(document.querySelector('#query-results'));
2020-02-07 14:21:59 +00:00
</script>
2020-10-26 11:47:06 +00:00
{% endblock scripts %}