Andreas Tille wrote: > Unfortunately there is a problem: > > ... > mkdir -p data > for file in ../../dict/dbfiles/data.* ../../dict/dbfiles/index.[anv]* ; > do ln -s ../$file data ; done > LC_ALL=C python wordnet_structures.py `ls data/index.[anv]* | sort` > Opening index file 'data/index.adj'... > Opening data file 'data/index.adv'... > Parsing index file and data file... > Traceback (most recent call last): > File "wordnet_structures.py", line 314, in ? > wnd.wn_dict_add(file_index, file_data) > File "wordnet_structures.py", line 211, in wn_dict_add > (synsets, license_lines) = Synset.build_from_file(file_data) > File "wordnet_structures.py", line 170, in build_from_file > synset = cls.build_from_line(line.rstrip()) > File "wordnet_structures.py", line 129, in build_from_line > synset_offset = int(line_split[0],10) > ValueError: invalid literal for int(): 'tween > >> wordnet_structures.py itself is Free Software, of course; >> specifically, it's GPLed. >> Is this sufficient for you to bring back dict-wn for the newer >> versions of wordnet? > so you will perhaps be able to reproduce the problem and might be > fix the issue. > > I'm REALLY interested in bringing back the dict-wn package and thus > I would like to support your work by a timely upload. wordnet_structures.py is a bit picky about the arguments you feed it; namely it expects to be told both the names of index and data files, and it doesn't try to heuristically determine which is which, never mind how they go together; all of that is part of the argument order. You're only feeding it index files here, which results in it treating some of those as data files, and failing horribly to parse them as such. As the output says: Opening index file 'data/index.adj'... Opening data file 'data/index.adv'...
The arguments to wordnet_structures.py have to consist of a series of pairs of an index_filename and a corresponding data_filename. I.e. something like ./wordnet_structures.py index.foo data.foo index.bar data.bar ... If you don't want to hardcode this into the build script, you're probably better at figuring out how to shell-script it than I am; I have little experience with the language. > > Kind regards and thanks for your work Same to you. > Andreas. > > PS: Note that the clean target in debian/rules is not ready currently > and thus dh_clean fails. I'm working on this but thought you would > be interested in a quick response. You were right. :) Regards, Sebastian Hagen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]