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

Use machine learning when searching emojilib #11

Open
Jolg42 opened this issue Jul 4, 2016 · 10 comments
Open

Use machine learning when searching emojilib #11

Jolg42 opened this issue Jul 4, 2016 · 10 comments

Comments

@Jolg42
Copy link

Jolg42 commented Jul 4, 2016

Hi!

I think that an offline version would be great! 😃

@sindresorhus
Copy link
Owner

That would be very cool, but not easy to do, as you would have to gather a lot of data, train a model, for a neural network. Not something I'm going to work on, but happy to receive a pull request if anyone wanna take the challenge.

@sindresorhus sindresorhus changed the title Offline version? Offline version Jul 4, 2016
@Jolg42
Copy link
Author

Jolg42 commented Jul 11, 2016

@sindresorhus You're right! Not super easy…!

@sotojuan
Copy link

sotojuan commented Sep 2, 2016

Perhaps some basic caching for repeated entries? Though it'd get memory-heavy.

@matchai
Copy link

matchai commented Sep 8, 2016

The Dango website seems to reference an "Offline Predictions SDK".
http://getdango.com/api/#offline-predictions-sdk

@sindresorhus sindresorhus changed the title Offline version Use machine learning when searching emojilib Mar 5, 2020
@Richienb
Copy link
Contributor

We could alternatively use https://github.com/bfelbo/DeepMoji

@Richienb
Copy link
Contributor

Richienb commented Apr 11, 2023

@sindresorhus I'm much more concerned about distribution. That is, the pre-trained model is probably going to be a bit to large for npm (many megabytes at least, probably).
Perhaps we could upload them to GitHub releases?

@sindresorhus
Copy link
Owner

I think a better solution is to let users opt into using the ChatGPT API by providing their own OpenAI API key. It will return much better results than whatever we can do here.

Example prompt:

Give me the 10 most relevant emojis for this text as a newline list: hungry

@Richienb
Copy link
Contributor

Oh I see. Tragically though, the ChatGPT API has no free plan. Is this a problem?
Locally running a large language model remains on the table, but not if for space concerns. Also am thinking about: using predictions from the large language model as the dataset for training a smaller one.

@sindresorhus
Copy link
Owner

Tragically though, the ChatGPT API has no free plan. Is this a problem?

No. It would be opt-in anyway. The paid plan is not expensive. It would be almost nothing to simply fetch emojis.

Locally running a large language model remains on the table, but not if for space concerns. Also am thinking about: using predictions from the large language model as the dataset for training a smaller one.

I don't see it being worth the effort.

@Richienb
Copy link
Contributor

Richienb commented Jul 14, 2023

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

5 participants