diff options
Diffstat (limited to 'decoder/hg_io.h')
| -rw-r--r-- | decoder/hg_io.h | 12 | 
1 files changed, 2 insertions, 10 deletions
| diff --git a/decoder/hg_io.h b/decoder/hg_io.h index 5a2bd808..93a9e280 100644 --- a/decoder/hg_io.h +++ b/decoder/hg_io.h @@ -9,19 +9,11 @@ class Hypergraph;  struct HypergraphIO { -  // the format is basically a list of nodes and edges in topological order -  // any edge you read, you must have already read its tail nodes -  // any node you read, you must have already read its incoming edges -  // this may make writing a bit more challenging if your forest is not -  // topologically sorted (but that probably doesn't happen very often), -  // but it makes reading much more memory efficient. -  // 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.   | 
