-
Notifications
You must be signed in to change notification settings - Fork 38
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
Language detection #77
Comments
After all linking etc. I got to this point:
We would need to provide At this point, it feels like TensorflowLite is kinda a dead end for our use case, unfortunately. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the VS Code extension, we have a way to detect a language using https://github.com/microsoft/vscode-languagedetection. It has a model embedded which comes from https://github.com/yoeo/guesslang. It executes it using https://github.com/tensorflow/tfjs which comes with various backends like CPU or WebGL.
For runme, which is built and distributed as a statically linked binary, the best would be to use Tensorflow Lite which is fairly small (<6MB). Unfortunately, the original guesslang model might not be easily converted to TF Lite. I tried that and got the following output:
Using:
It actually generated a
model.tflite
which might be possible to execute ifStringNGrams
is provided.To be continued...
The text was updated successfully, but these errors were encountered: