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

Cleaned rest of relwriter

parent a186d08f
Branches
No related merge requests found
...@@ -46,27 +46,24 @@ void RelationWriter::write(const std::vector< boost::shared_ptr<Relation> >& rel ...@@ -46,27 +46,24 @@ void RelationWriter::write(const std::vector< boost::shared_ptr<Relation> >& rel
ofs<<" <rel name=\""; ofs<<" <rel name=\"";
ofs<<r->name().c_str()<<"\">"<<endl; ofs<<r->name().c_str()<<"\">"<<endl;
ofs<<" <from sent=\""; ofs<<" <from sent=\"";
ofs<<r->from()->sentence_id().c_str(); ofs<<r->from()->sentence_id();
ofs<<"\" chan=\""; ofs<<"\" chan=\"";
ofs<<r->from()->channel_name().c_str(); ofs<<r->from()->channel_name();
ofs<<"\">"; ofs<<"\">";
ofs<<r->from()->annotation_number(); ofs<<r->from()->annotation_number();
ofs<<"</from>"<<endl; ofs<<"</from>"<<endl;
ofs<<" <to sent=\""; ofs<<" <to sent=\"";
ofs<<r->to()->sentence_id().c_str(); ofs<<r->to()->sentence_id();
ofs<<"\" chan=\""; ofs<<"\" chan=\"";
ofs<<r->to()->channel_name().c_str(); ofs<<r->to()->channel_name();
ofs<<"\">"; ofs<<"\">";
ofs<<r->to()->annotation_number(); ofs<<r->to()->annotation_number();
ofs<<"</to>"<<endl; ofs<<"</to>"<<endl;
ofs<<" </rel>"<<endl; ofs<<" </rel>"<<endl;
} }
//footer //footer
ofs<<"</relations>"; ofs<<"</relations>";
ofs.close(); ofs.close();
} }
......
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