We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Just wanted to know that Is it possible to execute this ./fasttext nn model.bin command, via JAVA call?
./fasttext nn model.bin
reference
The text was updated successfully, but these errors were encountered:
Yes, nn should work, although it is not really tested. Have you tried it?
nn
Sorry, something went wrong.
Thanks for the reply
Yes it is possible, when I execute
jft.runCmd( new String[]{ "nn", "model.bin" } );
By default nn takes input from stdin. Check here
stdin
Is there any way to bring this functionality into Java. Something like this,
jft.loadModel("model.bin"); List<NearestNeighbors> nn = jft.getNearestNeighbors("sampleWord", 10);
Hope you get me now. Thanks
I'm afraid this feature is not implemented indeed. You mentioned you had a fork implementing; feel free to create a pull request from it!
I have no experience with bindings and JNI. Could you give some tips on this? That would be helpful for me to develop this feature.
Thanks
No branches or pull requests
Hi,
Just wanted to know that Is it possible to execute this
./fasttext nn model.bin
command, via JAVA call?reference
The text was updated successfully, but these errors were encountered: