From 851e389dffdd6996ea32d70defb8906de80b9edc Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 14 Dec 2009 20:35:11 -0500 Subject: few small fixes of alignment tools, add new orthographic similarity feature for word aligner, final naming of directories, libraries in cdec --- src/forest_writer.cc | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 src/forest_writer.cc (limited to 'src/forest_writer.cc') diff --git a/src/forest_writer.cc b/src/forest_writer.cc deleted file mode 100644 index a9117d18..00000000 --- a/src/forest_writer.cc +++ /dev/null @@ -1,23 +0,0 @@ -#include "forest_writer.h" - -#include - -#include - -#include "filelib.h" -#include "hg_io.h" -#include "hg.h" - -using namespace std; - -ForestWriter::ForestWriter(const std::string& path, int num) : - fname_(path + '/' + boost::lexical_cast(num) + ".json.gz"), used_(false) {} - -bool ForestWriter::Write(const Hypergraph& forest, bool minimal_rules) { - assert(!used_); - used_ = true; - cerr << " Writing forest to " << fname_ << endl; - WriteFile wf(fname_); - return HypergraphIO::WriteToJSON(forest, minimal_rules, wf.stream()); -} - -- cgit v1.2.3