|
WordNet-APL2
Interface
|
In this page you can find the description of an APL2 workspace and
the mysql databases needed for
working with WordNet from APL2.
The provided release includes a version of WordNet that has been
ported into a relational database under the mysql database manager. In
theory, it could be used with any other relational database management
system, provided that the ODBC driver is available.
The communications between APL2 and the database is done via the
AP227 ODBC auxiliary processor. If the DB2 database is available, and
the database is porteed to DB2, then the auxiliary processor AP127 can
be used instead, without any code modifications.
|
To obtain the APL2 workspace and the mysql WordNet port, please
contact Enrique
Alfonseca.
|
Instructions manual
Firstly, the following programs must be available:
- The APL2 interpreter, service pack 8 (at least)
- The mysql RDBMS.
- An ODBC driver for mysql, installed. It must appear at "ODBC data
sources", at the Windows control panel.
The steps to follow for installing the software are:
- Copy the mysql WordNet database into the mysql data directory.
- Create an entry at the "ODBC data sources", at the Windows control
panel, for that data source, making sure that the user introduced has
privileges for reading the database.
- Start the APL2 interpreter.
- Load the SQL.apl workspace.
- Import the WNLITE.atf workspace.
- Execute wn_init
From now on, it is possible to work with WordNet.
The functions provided are:
- wn_lookup: Looks up a word and returns every synset containing it.
- wn_getSynset: Looks up a synset id, and returns its information,
definition, etc.
- wn_getSynsetWords: Returns the words in a synset.
- wn_followPointer: From a synset 's' and a pointer type, returns
every synset pointed from 's' with that kind of pointers.
|
|