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
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
8b087e55
Commit
8b087e55
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
e95cc42a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CorpusAnalysisClient.js.md
+50
-0
50 additions, 0 deletions
CorpusAnalysisClient.js.md
docker-compose.yml
+0
-2
0 additions, 2 deletions
docker-compose.yml
nopaque.env.tpl
+4
-0
4 additions, 0 deletions
nopaque.env.tpl
with
54 additions
and
2 deletions
CorpusAnalysisClient.js.md
0 → 100644
+
50
−
0
View file @
8b087e55
# Corpus Analysis
## Start einer Session
```
javascript
nopaque
.
socket
.
emit
(
"
corpus_analysis_init
"
,
<
corpusId
>
);
<
corpusId
>
~
number
// Show init loading modal
nopaque
.
socket
.
on
(
"
corpus_analysis_init
"
,
<
response
>
);
<
response
>
~
{
"
code
"
:
<
code
>
,
"
msg
"
:
<
message
>
}
<
code
>
~
number
// HTTP status code
<
msg
>
~
string
// Hide init loading modal
```
## Ausführen einer Suchanfrage
Ergebnisse werden Stückchenweise als "chunks" übertragen.
```
javascript
nopaque
.
socket
.
emit
(
"
corpus_analysis_query
"
,
<
query
>
);
<
query
>
~
string
// Clear result data store and list
result
=
{
"
query
"
:
<
query
>
};
// Hide query result card
// Show query loading card
nopaque
.
socket
.
on
(
"
corpus_analysis_query
"
,
<
response
>
);
<
response
>
:
{
"
code
"
:
<
code
>
,
"
result
"
:
<
result
>
}
<
code
>
~
number
// Error, Success
<
result
>
~
{
"
matches
"
:
[
<
cpos
>
,
...],
"
num_matches
"
:
<
num_matches
>
,
"
cpos_lookup
"
:
{
<
cpos
>
:
<
token
>
,
...},
"
text_lookup
"
:
{
<
textId
>
:
<
text
>
,
...}}
<
cpos
>
~
number
<
num_matches
>
~
number
<
token
>
~
{
"
word
"
:
<
word
>
,
"
lemma
"
:
<
lemma
>
,
"
simple_pos
"
:
<
simple_pos
>
,
"
pos
"
:
<
pos
>
,
"
ner
"
:
<
ner
>
,
"
text
"
:
<
textId
>
,
"
s
"
:
<
sId
>
}
<
word
>
~
string
<
lemma
>
~
string
<
simple_pos
>
~
string
<
pos
>
~
string
<
ner
>
~
string
<
textId
>
~
number
<
sId
>
~
number
<
text
>
~
{
"
author
"
:
<
author
>
,
"
title
"
:
<
text
>
,
...}
<
s
>
~
string
// Process response
// Hide query result card
// Show query loading card
```
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
0
−
2
View file @
8b087e55
...
@@ -20,8 +20,6 @@ services:
...
@@ -20,8 +20,6 @@ services:
depends_on
:
depends_on
:
-
db
-
db
-
redis
-
redis
deploy
:
replicas
:
25
environment
:
environment
:
-
VIRTUAL_HOST=nopaque.localhost,129.70.216.233
-
VIRTUAL_HOST=nopaque.localhost,129.70.216.233
env_file
:
nopaque.env
env_file
:
nopaque.env
...
...
This diff is collapsed.
Click to expand it.
nopaque.env.tpl
+
4
−
0
View file @
8b087e55
...
@@ -8,6 +8,10 @@ DOCKER_CERT_PATH=
...
@@ -8,6 +8,10 @@ DOCKER_CERT_PATH=
DOCKER_HOST=
DOCKER_HOST=
DOCKER_TLS_VERIFY=
DOCKER_TLS_VERIFY=
### GitLab Registry ###
GITLAB_USERNAME=
GITLAB_PASSWORD=
### Flask ###
### Flask ###
FLASK_CONFIG=
FLASK_CONFIG=
# SECRET_KEY=
# SECRET_KEY=
...
...
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