Using Cassys from command line with pyunitex

92 views
Skip to first unread message

zest

unread,
Apr 2, 2014, 10:57:52 AM4/2/14
to unitex-...@googlegroups.com
Hello,

I have made a cascade that works very well ( when using it directly from Unitex ).


But i need to use it from command line. For this purpose i'm using the pyunitex library.

so i want to execute this command :

unitex.Cassys( " -a /home/rccc/unitex/French/Alphabet.txt -t /tmp/tmpaU9S6O.snt -l /home/rccc/unitex/French/Cassys/cascade_titre.csc -w /home/rccc/unitex/French/Dela/dela-fr-public.bin -qutf8-no-bom " )

Here are the messages i get from command line :

CasSys Cascade begins
Construct cascade concord
Concord File /tmp/tmpaU9S6O_snt/concord.ind successfully opened
error in reading when copy '' to '/tmp/tmpaU9S6O_csc.txt'

So Cassys is effectively running, the '/tmp/tmpaU9S6O_csc.txt' exists but after the concord file is created, it seems that Cassys return an empty string, although the cascade is working well from Unitex.

I know it's a very particular problem because i'm using Cassys from command line, thanks by advance for any comments.

Eric


Nathalie Friburger

unread,
Apr 11, 2014, 3:19:57 AM4/11/14
to unitex-...@googlegroups.com
Hello,

A possible problem when using unitex commands out of the interface is to forget that unitex creates (transparently) all the folders needed by the different command lines
including cassys ...
You can firstly check if you create all the folders needed for cassys (explained in the unitex manual) ...

Best regards
Nathalie

eric.laporte

unread,
Sep 23, 2015, 11:28:44 AM9/23/15
to Unitex-GramLab
Hello,
See also this thread by another command-line user of CasSys: https://groups.google.com/forum/#!topic/unitex-gramlab/T6GKzffs1KE
Best,
Eric Laporte
Reply all
Reply to author
Forward
0 new messages