Amended SRILM generateSentence with prepopulated context, fixed end-of-sentence termination, and wrapped lmclient into a new lmclass. Still need to implement Mauricio advice on Gc.properly -- compiler rejects things like
Gc.finalise self#destroy, or Gc.finalise ignore (Lmclient.destroy handle) -- during runtime!
The wrapped system now works and the new method Lmclient.complete_sentence maxwords context properly generates exact-size completions.
I also got the book “Q for Mortals” and continued to evaluate J; also got the educational APL from Dyalog, but it’s only for Windows.
Ah, and my C bindings handle is now an abstract
type handle
-- also thanks to Mauricio. I added things like null () value and is_null, returning a null value from C and checking it there, similarly to limited private types in Ada.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment