summaryrefslogtreecommitdiff
path: root/decoder/hg_io.h
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-10-19 05:24:21 -0400
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2014-10-19 05:24:21 -0400
commit2bb5f3f4c3c347a2474392993c17cc62653dd133 (patch)
tree9dffbfd57f09393919543dfcfac886870d9afa43 /decoder/hg_io.h
parent9f055ef11c3f1d06b51bab34addac68e4d63eab7 (diff)
stop switch to boost serialization for hypergraph IO
Diffstat (limited to 'decoder/hg_io.h')
-rw-r--r--decoder/hg_io.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/decoder/hg_io.h b/decoder/hg_io.h
index 5a2bd808..5ba86f69 100644
--- a/decoder/hg_io.h
+++ b/decoder/hg_io.h
@@ -18,10 +18,11 @@ struct HypergraphIO {
// see test_data/small.json.gz for an email encoding
static bool ReadFromJSON(std::istream* in, Hypergraph* out);
+ static bool ReadFromBinary(std::istream* in, Hypergraph* out);
+ static bool WriteToBinary(const Hypergraph& hg, std::ostream* out);
+
// if remove_rules is used, the hypergraph is serialized without rule information
// (so it only contains structure and feature information)
- static bool WriteToJSON(const Hypergraph& hg, bool remove_rules, std::ostream* out);
-
static void WriteAsCFG(const Hypergraph& hg);
// Write only the target size information in bottom-up order.