summaryrefslogtreecommitdiff
path: root/python/src/decoder.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-11 16:08:43 +0900
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-07-11 16:08:43 +0900
commit42532406b1246e6f17766b804b8bd5cce828f0fa (patch)
treeb867b7fded89c3de32f0629241a86ea735186884 /python/src/decoder.pxd
parent757f56e391bd2e1d7442ab38fc98aff00d064d38 (diff)
[python] Direct hypergraph access
- small API changes (*_trees methods) - decoder config can now passed as arguments
Diffstat (limited to 'python/src/decoder.pxd')
-rw-r--r--python/src/decoder.pxd4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/decoder.pxd b/python/src/decoder.pxd
index e2678151..660bcb39 100644
--- a/python/src/decoder.pxd
+++ b/python/src/decoder.pxd
@@ -1,7 +1,7 @@
from libcpp.string cimport string
from libcpp.vector cimport vector
from hypergraph cimport Hypergraph
-from utils cimport istream, weight_t
+from utils cimport istream, weight_t, variables_map
cdef extern from "decoder/ff_register.h":
void register_feature_functions()
@@ -23,7 +23,7 @@ cdef extern from "decoder/decoder.h":
vector[weight_t]& CurrentWeightVector()
# void SetId(int id)
- # const boost::program_options::variables_map& GetConf() const { return conf }
+ variables_map& GetConf()
# add grammar rules (currently only supported by SCFG decoders)
# that will be used on subsequent calls to Decode. rules should be in standard