From bd62420cd581c26dc6a77151a3cfd5b54e494ca7 Mon Sep 17 00:00:00 2001 From: rjawor Date: Mon, 24 Aug 2015 14:30:20 +0200 Subject: [PATCH] updated tutorial --- concordia/tutorial.dox | 4 ++-- examples/concordia_search.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/concordia/tutorial.dox b/concordia/tutorial.dox index 3525f02..481c4a0 100644 --- a/concordia/tutorial.dox +++ b/concordia/tutorial.dox @@ -118,9 +118,9 @@ using namespace std; int main() { Concordia concordia(EXAMPLES_DIR"/../tests/resources/concordia-config/concordia.cfg"); - boost::shared_ptr ts = concordia.addExample(Example("Alice has a cat", 56)); + TokenizedSentence ts = concordia.addExample(Example("Alice has a cat", 56)); cout << "Added the following tokens: " << endl; - BOOST_FOREACH(TokenAnnotation token, ts->getTokens()) { + BOOST_FOREACH(TokenAnnotation token, ts.getTokens()) { cout << "\"" << token.getValue() << "\"" << " at positions: [" << token.getStart() << "," << token.getEnd() << ")" << endl; } diff --git a/examples/concordia_search.cpp b/examples/concordia_search.cpp index b8ee36a..c99932c 100644 --- a/examples/concordia_search.cpp +++ b/examples/concordia_search.cpp @@ -14,9 +14,9 @@ using namespace std; int main() { Concordia concordia(EXAMPLES_DIR"/../tests/resources/concordia-config/concordia.cfg"); - boost::shared_ptr ts = concordia.addExample(Example("Alice has a cat", 56)); + TokenizedSentence ts = concordia.addExample(Example("Alice has a cat", 56)); cout << "Added the following tokens: " << endl; - BOOST_FOREACH(TokenAnnotation token, ts->getTokens()) { + BOOST_FOREACH(TokenAnnotation token, ts.getTokens()) { cout << "\"" << token.getValue() << "\"" << " at positions: [" << token.getStart() << "," << token.getEnd() << ")" << endl; }