summaryrefslogtreecommitdiff
path: root/python/src/decoder.pxd
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-08-09 01:18:51 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-08-09 01:18:51 -0400
commit8ab7731dc55c55272300eafbde2c085b31f886d7 (patch)
treeb893065295b1cee0d30deadc6331f9c2fab1e864 /python/src/decoder.pxd
parentc732ab57899e33c62dad2154ac6ca1caeaaa7789 (diff)
parenteae5efbf112a8697309fe7c1e385a8609124520e (diff)
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/src/decoder.pxd')
-rw-r--r--python/src/decoder.pxd9
1 files changed, 4 insertions, 5 deletions
diff --git a/python/src/decoder.pxd b/python/src/decoder.pxd
index a66166a2..b68b836e 100644
--- a/python/src/decoder.pxd
+++ b/python/src/decoder.pxd
@@ -15,9 +15,8 @@ cdef extern from "decoder/decoder.h":
DecoderObserver()
cdef cppclass Decoder:
- Decoder(int argc, char** argv)
- Decoder(istream* config_file)
- bint Decode(string& inp, DecoderObserver* observer)
+ Decoder(istream* config_file) nogil
+ bint Decode(string& inp, DecoderObserver* observer) nogil
# access this to either *read* or *write* to the decoder's last
# weight vector (i.e., the weights of the finest past)
@@ -27,8 +26,8 @@ cdef extern from "decoder/decoder.h":
variables_map& GetConf()
# add grammar rules (currently only supported by SCFG decoders)
- void AddSupplementalGrammarFromString(string& grammar_str)
- void AddSupplementalGrammar(shared_ptr[Grammar] grammar)
+ void AddSupplementalGrammarFromString(string& grammar_str) nogil
+ void AddSupplementalGrammar(shared_ptr[Grammar] grammar) nogil
cdef extern from "observer.h":
cdef cppclass BasicObserver(DecoderObserver):