Skip to content

eugenso/WSD-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSD-Server

Stand-alone server for Word Sense Disambiguation, using dependency features and a language model (LM)

This project contains the open system that was used for experiments on Word Sense Disambiguation:
Panchenko A., Ruppert E., Faralli S., Ponzetto S. P., and Biemann C. (2017): Unsupervised Does Not Mean Uninterpretable: The Case for Word Sense Induction and Disambiguation. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics (EACL’2017). Valencia, Spain. Association for Computational Linguistics.

The paper can be accessed here: http://panchenko.me/papers/eacl2017.pdf

It uses a trigram language model and induced semantic models that contain word senses. These datasets can be downloaded from Zenodo: https://zenodo.org/record/485151

Preparation

  • Download the semantic models and the sense inventories
  • Add the inventories to a MySQL database
  • Load the semantic models into a DCA memory server
  • Start the language model
  • Adapt the configuration .xml files in resources, so that they point to the MySQL server database

Running the server

The main class to run the server is tudarmstadt.lt.wsd.server.ApplicationController.java

When the server is running, you can send requests and receive JSON documents:

curl -i -H "Content-Type: application/json" -X POST -d '{"context":"The Java code is not working.", "word":"java", "featureType": "depslm"}' SERVER:PORT/predictWordSense

About

Stand-alone server for word sense disambiguation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages