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

Magic numbers in Android Java Impl and Jupyter Notebook do not match #24

Open
Geosearchef opened this issue Nov 19, 2023 · 1 comment
Open

Comments

@Geosearchef
Copy link

The file generated by your ipython notebook writes a magic number of:

fout.write(struct.pack("i", 0x74666C74))

The Android Java implementation checks for the presence of 0x5553454e, which is also what is present in the file in the models directory.

@vilassn
Copy link
Collaborator

vilassn commented Nov 20, 2023

Magic number can be any four character string like "ABCD". It can be changed to your favourite string. But, need to check same string while loading vocab for validation.

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

No branches or pull requests

2 participants