Installation of WordNet 1.4 on a PC You may have recieved WordNet 1.4 on diskettes or via ftp. When unpacked the program and data files take up approximately 13 Megabytes of disk space. This example assumes that you are going to install WordNet on a fixed disk drive c: in a directory called wordnet (c:\wordnet) The DOS version of WordNet contains two interfaces to the WordNet database. 'wndos.exe' is a command line interface and 'wnwin.exe' is a Microsoft Windows interface. 'wndos.exe' is generally accessed via 'wn.bat' which runs the command line interface and pipes the output through more. STEP 1 Make a new directory called wordnet on your c: drive: (mkdir wordnet) Move into that new directory: (cd wordnet) STEP 2 (Only do this step if installing from diskettes) Copy all the files on the floppy disks in to the wordnet directory on your fixed disk. (if you are using floppy a: copy a:*.* /v/b) (if you are using floppy b: copy b:*.* /v/b) STEP 3 If you have obtained WordNet on diskette, enter the command: makewn makewn uncompresses all the WordNet files for you. If you have obtained WordNet via ftp, enter the command: .\arc x wn14.arc You must either have arc insalled on your pc, or you can ftp the file 'arc.exe' from the same place that you obtained WordNet and this file. The following files should now appear in this directory: Documentation (man pages): wn1.lpr wnwin1.lpr wnintro1.lpr wnintro3.lpr wnintro5.lpr wninput5.lpr uniqbeg7.lpr wndb5.lpr morph7.lpr wnintro7.lpr wngloss7.lpr Morphology exception lists: adj.exc noun.exc verb.exc Data files: adj.dat noun.dat verb.dat adv.dat Index files: adj.idx noun.idx verb.idx adv.idx WordNet programs and batch file: wn.bat wndos.exe wnwin.exe Miscellaneous stuff: arc.exe makewn.bat (diskette version only) readme.pc vframes.txt ---------------------------------------------------------- STEP 4 Informing DOS of this new program: 'wndos.exe' can be run using the batch file 'wn.bat'. If you put this file into a directory which is already in your path, you can disregard the rest of this section. Note that 'wn.bat' assumes that you've installed WordNet in the directory c:\wordnet. If you've installed 'wn.bat' elsewhere, you should edit 'wn.bat' to reflect your path. This batch file runs 'wndos.exe' and pipes the output to 'more', which makes reading it on the screen a little easier. Informing WINDOWS of this new program: 'wnwin.exe' can be run by typing 'win wnwin' on the command line from the directory it resides in, or from anywhere if the directory 'wnwin.exe' lies in is known to DOS (as above for wndos). Alternatively you may wish to place the 'wnwin' icon in the program manager so you can use it simply by double clicking on the icon. This is done by selecting "New" from the program manager file menu. Then select "New Program Item" from the dialog box and press OK. Type in the full pathname of the 'wnwin.exe' file in the box labeled "Command Line". In the default installation it is 'c:\wordnet\wnwin.exe'. For more information on the Program Manager and Program Items, refer to your Microsoft Windows Documentation. ONLY READ THE FOLLOWING IF YOU DO NOT WANT TO USE 'WN.BAT' OR IF YOU ARE USING THE MICROSOFT WINDOWS INTERFACE. 'wndos.exe' and 'wnwin.exe' both use the environment variable WNSEARCHDIR to locate the database files. It should be set in your 'autoexec.bat' file. In the default installation the database files are located in c:\wordnet, therefore, WNSEARCHDIR should be set to c:\wordnet. The proper syntax is: set WNSEARCHDIR=c:\wordnet DOS also needs to know where the executable programs 'wndos.exe' and 'wnwin.exe' reside. By default, this is also c:\wordnet, therefore c:\wordnet should be added to the path statement in your 'autoexec.bat' file. You should add the following onto the end of your current 'set PATH=' statement: ;c:\wordnet You should reboot your computer after these changes are made so that DOS will be informed about the new path and WNSEARCHDIR. ------------------------------------------------------------ Hints for using 'wndos': Entering 'wndos' (or 'wn') with no arguments will print out a usage statement for the program. Unless you have a fancy monitor (more than 25 lines) the information will scroll off the screen. If you use 'wn.bat', the output will automatically be piped to more. If you use 'wndos', you may pipe the ouput to more as follows: wndos | more Another approach is to redirect the ouptut of the 'wndos' program to a file so that it can be viewed later. wndos > search.out This example shows how to redirect the output of wndos to a file called 'search.out'. The 'more' command and file redirection are discussed in detail in your DOS manual. Entering 'wndos search_word' prints a list of the searches that are available for the word for all the parts of speech. WordNet knows about collocations as well as individual words. To search for a collocation, you must either enter the string in double quotes or connect the individual words with an underscore character. This document was designed to help you install WordNet and start using it - it is not meant as a user guide. You should read the accompanying man pages for detailed information on the database and interface code.