Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
1567e6e1
Commit
1567e6e1
authored
4 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
Filx text break
parent
8cec7b2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/js/nopaque.lists.js
+2
-4
2 additions, 4 deletions
app/static/js/nopaque.lists.js
app/templates/corpora/analyse_corpus.html.j2
+3
-1
3 additions, 1 deletion
app/templates/corpora/analyse_corpus.html.j2
with
5 additions
and
5 deletions
app/static/js/nopaque.lists.js
+
2
−
4
View file @
1567e6e1
...
...
@@ -258,9 +258,8 @@ class ResultsList extends List {
console
.
log
(
tokenHTMLArray
);
console
.
log
(
uniqueS
);
partElement
=
document
.
createElement
(
"
div
"
);
for
(
let
sId
of
uniqueS
)
{
let
htmlSentence
=
`<
div
class="sentence" data-sid="
${
sId
}
"></
div
>`
;
let
htmlSentence
=
`<
span
class="sentence" data-sid="
${
sId
}
"></
span
>`
;
let
sentenceElement
=
this
.
HTMLTStrToElement
(
htmlSentence
);
for
(
let
tokenElement
of
tokenHTMLArray
)
{
if
(
tokenElement
.
dataset
.
sid
==
sId
)
{
...
...
@@ -270,9 +269,8 @@ class ResultsList extends List {
continue
;
}
}
part
Element
.
appendChild
(
sentenceElement
);
contextResults
Element
.
appendChild
(
sentenceElement
);
}
contextResultsElement
.
appendChild
(
partElement
);
if
(
expertModeSwitchElement
.
checked
)
{
this
.
expertModeOn
();
...
...
This diff is collapsed.
Click to expand it.
app/templates/corpora/analyse_corpus.html.j2
+
3
−
1
View file @
1567e6e1
...
...
@@ -243,7 +243,9 @@
</form>
</div>
<div class="divider"></div>
<div class="section" id="context-results">
<div class="section">
<h5>Context</h5>
<div class="row" id="context-results" style="overflow-wrap: break-word;"></div>
</div>
</div>
<div class="modal-footer">
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment