El dj 18 de 04 de 2013 a les 09:19 +0000, en/na Francis Tyers va
escriure:
> Does anyone have any python code handy that uses the -z feature of
> lt-proc in -g mode ? I can't seem to get it to work, neither on the
> command line, doing:
> 
> $ lt-proc -z -g lvs.autogen.bin
> ^zeme<n<f><sg><acc>$^@
> 
> Where ^@ is the null character: "ctrl+@" on many keyboards. Does not
> give any output.

The code to do this is here:

https://apertium.svn.sourceforge.net/svnroot/apertium/trunk/apertium-tools/lt-generate.py

It's a bit weird as it seems with python you need to throw a couple of
NULLs at the pipe before it will spit anything back. 

Fran


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to