Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to calculate the Wu-Palmer similarity? #1

Open
dinhanhx opened this issue Jul 27, 2022 · 4 comments
Open

How to calculate the Wu-Palmer similarity? #1

dinhanhx opened this issue Jul 27, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@dinhanhx
Copy link

How do you calculate Wu-Palmer similarity given two Vietnamese sentences?

@kh4nh12
Copy link
Owner

kh4nh12 commented Jul 27, 2022

Greetings, Dinhanhx.

Because the NLTK package does not currently support wordnet in Vietnamese, you can use the Vietnamese wordnet set below to compute WUPS for two sentences. (https://github.com/zeloru/vietnamese-wordnet)

@dinhanhx
Copy link
Author

So how do you add the file to NLTK?

@kh4nh12
Copy link
Owner

kh4nh12 commented Aug 26, 2022

Please accept my apologies for the delayed response.

I did not directly add the Vietnamese wordnet to NLTK. Instead, I modified the wup measure function so that it could work with dictionaries.

@kh4nh12 kh4nh12 added the enhancement New feature or request label Aug 26, 2022
@dinhanhx
Copy link
Author

Can you provide some code example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants