Skip to content
Snippets Groups Projects
Commit 6af58f32 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Doc reader adds readed relation to document.

parent 25dd7c5a
No related merge requests found
/*
Copyright (C) 2010 Tomasz Śniatowski, Adam Radziszewski
Copyright (C) 2010 Tomasz Śniatowski, Adam Radziszewski, Paweł Kędzia
Part of the libcorpus2 project
This program is free software; you can redistribute it and/or modify it
......@@ -50,6 +50,9 @@ namespace Corpus2 {
// Read relations and adds them to the document
const std::vector< boost::shared_ptr<Relation> > relations =
rel_reader_->relations();
for (unsigned int i = 0; i < relations.size(); i++) {
document->add_relation(relations[i]);
}
return document;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment