On 5 January 2011 08:31, Josep M. Fontana <[email protected]> wrote: > Hi again Jimmy. > > I still have not obtained the full tagset for oldca but I gave the new > version of dix-to-maco.py a run to test it and I noticed there were > somethings that had changed. First I tried to run it on my Mac and I > got a message saying "Permission denied" > > jfontana$ ./dix-to-maco.py -p dictio_oldcat.txt oldca-tags.parole > bash: ./dix-to-maco.py: Permission denied >
You have to chmod a+x dix-to-maco.py > I tried on a Linux machine and the same thing happened. Then I did the > following: > > jfont...@ubuntu:~/SANDBOX$ python dix-to-maco.py > > When I did this before, I got a little message telling me the basic > syntax to run the script: > > Usage: ./dix-to-maco.py [-l|-m|-n] <dix file> <parole lookup> > > Now I get the following error message: > > jfont...@ubuntu:~/SANDBOX$ python dix-to-maco.py > Traceback (most recent call last): > File "dix-to-maco.py", line 36, in <module> > if sys.argv[1] == '-h': > IndexError: list index out of range > > I went on and tried the following: > > jfont...@ubuntu:~/SANDBOX$ python dix-to-maco.py -p dictio_oldcat.txt > oldca-tags.parole > > This seemed to work and the script started processing the files. After > a while, though, I got the following error message: > > > Traceback (most recent call last): > File "dix-to-maco.py", line 216, in <module> > analysis = row[1].strip(); > IndexError: list index out of range > jfont...@ubuntu:~/SANDBOX$ > That's possibly due to an incomplete mapping. There are some things in oldca that I wasn't sure of, so I didn't change them. > > > Josep M. > > > > On Tue, Jan 4, 2011 at 7:45 PM, Jimmy O'Regan <[email protected]> wrote: >> On 4 January 2011 17:46, Jimmy O'Regan <[email protected]> wrote: >>> On 4 January 2011 17:27, Jimmy O'Regan <[email protected]> wrote: >>>>> jfont...@ubuntu:~/Downloads/apertium-oldca-XX-0.7$ ./dix-to-maco.py -l >>>>> apertium-oldca-XX.oldca.dix es-tags.parole.txt >>>>> Traceback (most recent call last): >>>>> File "./dix-to-maco.py", line 249, in<module> >>>>> print key + ' ' + analyses; >>>>> File "/usr/lib/python2.6/codecs.py", line 351, in write >>>>> data, consumed = self.encode(object, self.errors) >>>>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: >>>>> ordinal not in range(128) >>>> >>>> That's the mating call of 'Badly Written Python'/'Python Sucks At >>>> Unicode'. I'm having a look at it. >>> >>> Try the attached version. >>> >> >> Attached to this is a partial conversion of es-tags.parole to suit the >> oldca scheme. >> >> -- >> <Leftmost> jimregan, that's because deep inside you, you are evil. >> <Leftmost> Also not-so-deep inside you. >> > -- <Leftmost> jimregan, that's because deep inside you, you are evil. <Leftmost> Also not-so-deep inside you. ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
