From a1312b7668528a5c7efc51e13652aa26e2aae16e Mon Sep 17 00:00:00 2001 From: rjawor Date: Thu, 20 Feb 2014 12:26:36 +0100 Subject: [PATCH] jrc test Former-commit-id: 8ddc453cc0350f8ef96becf2fbff7898045e1f77 --- concordia-runner-jrc.sh | 18 ++++++++++++++++++ concordia/concordia.cpp | 2 -- .../text-files/jrc.txt.bz2.REMOVED.git-id | 1 + 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 concordia-runner-jrc.sh create mode 100644 prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id diff --git a/concordia-runner-jrc.sh b/concordia-runner-jrc.sh new file mode 100755 index 0000000..00762b7 --- /dev/null +++ b/concordia-runner-jrc.sh @@ -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 diff --git a/concordia/concordia.cpp b/concordia/concordia.cpp index 7579dc2..7d18b3c 100644 --- a/concordia/concordia.cpp +++ b/concordia/concordia.cpp @@ -44,7 +44,6 @@ std::string _createLibraryVersion() { // Sentences are written to disk and added to T. // SA is generated on command by other methods. -// TODO(rjawor): modify SA on the fly void Concordia::addExample(const Example & example) throw(ConcordiaException) { _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. // SA is generated on command by other methods. -// TODO(rjawor): modify SA on the fly void Concordia::addAllExamples(const boost::ptr_vector & examples) throw(ConcordiaException) { _index->addAllExamples(_hashGenerator, _T, _markers, examples); diff --git a/prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id b/prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id new file mode 100644 index 0000000..335ad30 --- /dev/null +++ b/prod/resources/text-files/jrc.txt.bz2.REMOVED.git-id @@ -0,0 +1 @@ +5c594051074498e23d64c36a6a7e1fe323d0b6cf \ No newline at end of file