Skip to content
Snippets Groups Projects
Commit 2086ac32 authored by lburdka's avatar lburdka
Browse files

Cleaned rest of relwriter

parent a186d08f
No related branches found
No related tags found
No related merge requests found
......@@ -46,24 +46,21 @@ void RelationWriter::write(const std::vector< boost::shared_ptr<Relation> >& rel
ofs<<" <rel name=\"";
ofs<<r->name().c_str()<<"\">"<<endl;
ofs<<" <from sent=\"";
ofs<<r->from()->sentence_id().c_str();
ofs<<r->from()->sentence_id();
ofs<<"\" chan=\"";
ofs<<r->from()->channel_name().c_str();
ofs<<r->from()->channel_name();
ofs<<"\">";
ofs<<r->from()->annotation_number();
ofs<<"</from>"<<endl;
ofs<<" <to sent=\"";
ofs<<r->to()->sentence_id().c_str();
ofs<<r->to()->sentence_id();
ofs<<"\" chan=\"";
ofs<<r->to()->channel_name().c_str();
ofs<<r->to()->channel_name();
ofs<<"\">";
ofs<<r->to()->annotation_number();
ofs<<"</to>"<<endl;
ofs<<" </rel>"<<endl;
}
//footer
ofs<<"</relations>";
ofs.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment