jrc test
Former-commit-id: 8ddc453cc0350f8ef96becf2fbff7898045e1f77
This commit is contained in:
parent
fb65cc9c66
commit
a1312b7668
18
concordia-runner-jrc.sh
Executable file
18
concordia-runner-jrc.sh
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "CONCORDIA RUNNER: Decompressing test file"
|
||||||
|
|
||||||
|
bunzip2 --keep prod/resources/text-files/jrc.txt.bz2
|
||||||
|
|
||||||
|
echo "CONCORDIA RUNNER: Running Concordia"
|
||||||
|
|
||||||
|
rm prod/resources/temp/*
|
||||||
|
|
||||||
|
echo "CONCORDIA RUNNER: reading from file"
|
||||||
|
./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -r prod/resources/text-files/jrc.txt
|
||||||
|
echo "CONCORDIA RUNNER: searching for pattern: \"Parlamentu Europejskiego\""
|
||||||
|
./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -s "Parlamentu Europejskiego" -n
|
||||||
|
echo "CONCORDIA RUNNER: searching for pattern: \"Dostęp do zatrudnienia\""
|
||||||
|
./build/concordia-console/concordia-console -c prod/resources/concordia-config/concordia.cfg -s "Dostęp do zatrudnienia" -n
|
||||||
|
|
||||||
|
rm prod/resources/text-files/jrc.txt
|
@ -44,7 +44,6 @@ std::string _createLibraryVersion() {
|
|||||||
|
|
||||||
// Sentences are written to disk and added to T.
|
// Sentences are written to disk and added to T.
|
||||||
// SA is generated on command by other methods.
|
// SA is generated on command by other methods.
|
||||||
// TODO(rjawor): modify SA on the fly
|
|
||||||
void Concordia::addExample(const Example & example)
|
void Concordia::addExample(const Example & example)
|
||||||
throw(ConcordiaException) {
|
throw(ConcordiaException) {
|
||||||
_index->addExample(_hashGenerator, _T, _markers, example);
|
_index->addExample(_hashGenerator, _T, _markers, example);
|
||||||
@ -52,7 +51,6 @@ void Concordia::addExample(const Example & example)
|
|||||||
|
|
||||||
// Sentences are written to disk and added to T.
|
// Sentences are written to disk and added to T.
|
||||||
// SA is generated on command by other methods.
|
// SA is generated on command by other methods.
|
||||||
// TODO(rjawor): modify SA on the fly
|
|
||||||
void Concordia::addAllExamples(const boost::ptr_vector<Example > & examples)
|
void Concordia::addAllExamples(const boost::ptr_vector<Example > & examples)
|
||||||
throw(ConcordiaException) {
|
throw(ConcordiaException) {
|
||||||
_index->addAllExamples(_hashGenerator, _T, _markers, examples);
|
_index->addAllExamples(_hashGenerator, _T, _markers, examples);
|
||||||
|
1
prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id
Normal file
1
prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id
Normal file
@ -0,0 +1 @@
|
|||||||
|
5c594051074498e23d64c36a6a7e1fe323d0b6cf
|
Loading…
Reference in New Issue
Block a user