Wordnet: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Created page with "We are using Wordnet for the morphing of words , example plural form to singular form. Wordnet is a ThirdParty lib, we have in PSUnreal\ThirdParty\Wordnet, but be compiled separately and then its linked into our main executable. We are using version 2.1 of Wordnet Wordnet is initialized in NPCDialogDict::Initialize() DEFAULTPATH seems not to be properly working in Debug build, as the init fails to get the proper directory where the files are located. We downloaded t..."
 
No edit summary
 
Line 7: Line 7:
Wordnet is initialized in NPCDialogDict::Initialize()
Wordnet is initialized in NPCDialogDict::Initialize()


DEFAULTPATH seems not to be properly working in Debug build, as the init fails to get the proper directory where the files are located.
To work properly it needs to find the database files, which are read from DEFAULTPATH variable. This seems not to be properly working in Debug build, as the init fails to get the proper directory where the files are located.


We downloaded the database files from here: https://wordnet.princeton.edu/download/current-version contained in the Windows 2.1 version install.
We downloaded the database files from here: https://wordnet.princeton.edu/download/current-version contained in the Windows 2.1 version install.


We use Wordnet in Source\PSUnreal\bulkobjects\psnpcdialog.cpp:286 where we call morphword()
We use Wordnet in Source\PSUnreal\bulkobjects\psnpcdialog.cpp:286 where we call morphword()

Latest revision as of 17:28, 4 September 2022

We are using Wordnet for the morphing of words , example plural form to singular form.

Wordnet is a ThirdParty lib, we have in PSUnreal\ThirdParty\Wordnet, but be compiled separately and then its linked into our main executable.

We are using version 2.1 of Wordnet

Wordnet is initialized in NPCDialogDict::Initialize()

To work properly it needs to find the database files, which are read from DEFAULTPATH variable. This seems not to be properly working in Debug build, as the init fails to get the proper directory where the files are located.

We downloaded the database files from here: https://wordnet.princeton.edu/download/current-version contained in the Windows 2.1 version install.

We use Wordnet in Source\PSUnreal\bulkobjects\psnpcdialog.cpp:286 where we call morphword()