summaryrefslogtreecommitdiff
path: root/python/src/decoder.pxd
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-08 18:56:02 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-08-08 18:56:02 -0400
commite0eabf1e59cbfa85b00efcff699cdcd6a524e9c5 (patch)
treee6d013ebdb0eafc8e1e380e84549460847d685ac /python/src/decoder.pxd
parentcc5584e9b066e6d1177495f7028ff49ab057ed52 (diff)
[python] Get rid of the GIL
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):