diff options
| author | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 16:15:13 -0500 | 
|---|---|---|
| committer | Wu, Ke <wuke@cs.umd.edu> | 2014-12-17 16:15:13 -0500 | 
| commit | 6829a0bc624b02ebefc79f8cf9ec89d7d64a7c30 (patch) | |
| tree | 125dfb20f73342873476c793995397b26fd202dd /python | |
| parent | b455a108a21f4ba5a58ab1bc53a8d2bf4d829067 (diff) | |
| parent | 7468e8d85e99b4619442c7afaf4a0d92870111bb (diff) | |
Merge branch 'const_reorder_2' into softsyn_2
Diffstat (limited to 'python')
| -rw-r--r-- | python/cdec/hypergraph.pxd | 3 | ||||
| -rw-r--r-- | python/cdec/sa/compile.py | 2 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/python/cdec/hypergraph.pxd b/python/cdec/hypergraph.pxd index 1e150bbc..9780cf8b 100644 --- a/python/cdec/hypergraph.pxd +++ b/python/cdec/hypergraph.pxd @@ -63,7 +63,8 @@ cdef extern from "decoder/viterbi.h":  cdef extern from "decoder/hg_io.h" namespace "HypergraphIO":      # Hypergraph JSON I/O      bint ReadFromJSON(istream* inp, Hypergraph* out) -    bint WriteToJSON(Hypergraph& hg, bint remove_rules, ostream* out) +    bint ReadFromBinary(istream* inp, Hypergraph* out) +    bint WriteToBinary(Hypergraph& hg, ostream* out)      # Hypergraph PLF I/O      void ReadFromPLF(string& inp, Hypergraph* out)      string AsPLF(Hypergraph& hg, bint include_global_parentheses) diff --git a/python/cdec/sa/compile.py b/python/cdec/sa/compile.py index a5bd0699..78ab729d 100644 --- a/python/cdec/sa/compile.py +++ b/python/cdec/sa/compile.py @@ -119,7 +119,7 @@ def main():      a = cdec.sa.Alignment(from_text=args.alignment)      a.write_binary(a_bin)      stop_time = monitor_cpu() -    logger.info('Compiling alignment took %f seonds', stop_time - start_time) +    logger.info('Compiling alignment took %f seconds', stop_time - start_time)      start_time = monitor_cpu()      logger.info('Compiling bilexical dictionary') | 
