Skip to content

senseAlign/BabelNet_2_HowNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

BabelNet_2_HowNet

Sense aligning algorithm for BabelNet to HowNet

algorithm.py takes 2 files: "entity.txt" and "test.txt". Both of which are from the previous research work : Sememe Prediction for BabelNet Synsets using Multilingual and Multimodal Information. You can download these two files in that paper's github page.

entity.txt has a list of all possible sememes that are considered during mapping (starting from line 15461 to the end) and test.txt is basically the test set developed by the above paper. The algorithm matches the sememes for each babelnet synset in the test set and then calculate the AP and F score.

You can apply the algorithm on some other test set or your own dataset by changing the test.txt file in the code. And the results can be printed at the end if you just bother to add a line of print statement of the final sememe results.

Environment

there is not much env set up needed for this code to work, except for babelnet api for python. The detailed configuration of such api can be found here : https://babelnet.org/guide

You need to follow strictly the guide in the above link for babelnet api to be installed and function correctly. We know this can take some time and trials, don't hesitate to reach out if you encounter problems. During our development, we used an offline version of babelnet (which can not be shared, as required by babelnet website). You can either obtain the offline version of babelnet, by applying it in the babelnet website, or simply use a online version following the insruction in above link.

Once you installed babelnet, you can check all its apis in this site : https://babelnet.org/pydoc/1.1/index.html

please cantact authors if you have any questions!

From Work: Bridging the Gap Between BabelNet and HowNet: Unsupervised Sense Alignment and Sememe Prediction

@inproceedings{zhang-etal-2023-bridging, title = "Bridging the Gap Between BabelNet and HowNet: Unsupervised Sense Alignment and Sememe Prediction", author = "Zhang, Xiang and Shi, Ning and Hauer, Bradley and Kondrak, Grzegorz", booktitle = "Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics", month = may, year = "2023", address = "Dubrovnik, Croatia", publisher = "Association for Computational Linguistics", url = "https://aclanthology.org/2023.eacl-main.205", pages = "2789--2798", }

About

Sense aligning algorithm for BabelNet to HowNet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages