mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Make the corpus analysis runnable again
This commit is contained in:
parent
223ae773d6
commit
84c86c81e7
@ -136,7 +136,7 @@ class Client {
|
|||||||
tmp_first_cpos.push(results.data.matches[dataIndex].c[0]);
|
tmp_first_cpos.push(results.data.matches[dataIndex].c[0]);
|
||||||
tmp_last_cpos.push(results.data.matches[dataIndex].c[1]);
|
tmp_last_cpos.push(results.data.matches[dataIndex].c[1]);
|
||||||
}
|
}
|
||||||
nopaque.socket.emit('corpus_analysis_get_match_with_full_context',
|
this.socket.emit('corpus_analysis_get_match_with_full_context',
|
||||||
{type: resultsType,
|
{type: resultsType,
|
||||||
data_indexes: dataIndexes,
|
data_indexes: dataIndexes,
|
||||||
first_cpos: tmp_first_cpos,
|
first_cpos: tmp_first_cpos,
|
||||||
@ -279,4 +279,4 @@ export {
|
|||||||
Client,
|
Client,
|
||||||
ClientEventListener,
|
ClientEventListener,
|
||||||
ListenerCallback,
|
ListenerCallback,
|
||||||
};
|
};
|
||||||
|
@ -157,7 +157,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
// Initialize the client for server client communication in dynamic mode
|
// Initialize the client for server client communication in dynamic mode
|
||||||
let corpusId = {{ corpus.id }}
|
let corpusId = {{ corpus.id }}
|
||||||
const client = new Client({'corpusId': corpusId,
|
const client = new Client({'corpusId': corpusId,
|
||||||
'socket': nopaque.socket,
|
'socket': nopaque.appClient.socket,
|
||||||
'logging': true,
|
'logging': true,
|
||||||
'dynamicMode': true});
|
'dynamicMode': true});
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user