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

Improve word prediction for a range of languages #251

Open
willwade opened this issue Mar 17, 2021 · 1 comment
Open

Improve word prediction for a range of languages #251

willwade opened this issue Mar 17, 2021 · 1 comment

Comments

@willwade
Copy link
Collaborator

willwade commented Mar 17, 2021

We should improve our prediction engine across multiple languages

General thoughts

Although we should look to use #252 - we currently have our own lookup engine. But we don't have many languages supported.

This tool https://github.com/LuminosoInsight/wordfreq - may help us to generate a top_n_list - which would help a lot..

from wordfreq import top_n_list >>> top_n_list('en', 10)

@gavinhenderson gavinhenderson changed the title Build word prediction libraries for a range of languages Improve word prediction for a range of languages Mar 9, 2022
@willwade
Copy link
Collaborator Author

willwade commented Mar 14, 2022

For the Hebrew frequency list I threw together this horrible sight:

from wordfreq import top_n_list
i = 1002
for item in top_n_list('he', 1000, wordlist='best'):
	print("  {")
	print('    "v": "'+item+'",')
	print('    "w": "'+str(i)+'",')
	print("  },")
	i = i-1

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

No branches or pull requests

2 participants