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; }