-
Notifications
You must be signed in to change notification settings - Fork 100
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 get nearest neighbours using the API? #12
Comments
Did you get any chance to implement this functionality ? |
How can you use nn command for specific word? i'm trying something like: `public void printSimilars(String x) {
to get 10 similar words for a given word in model. Thanks in advance. |
Bump - can this please be added? Shouldn't be too hard as most other functions are supported and this is a pretty important one |
Similar issue I have created in one of forked repo, hope it gives some idea. If anyone interested, we can work on this to bring it as Java APIs. |
Hi!
I want to get the nearest neighbours inside my Java code using the JFastText API; however, I can not find which method I should use.
In the original library the method is the "void FastText::nn(int32_t k)", but so far I've been able to call it only by JFastText "command".
The text was updated successfully, but these errors were encountered: