word2vec support #679

Open
opened 2026-02-19 23:13:50 -05:00 by deekerman · 4 comments
Owner

Originally created by @DdHms on GitHub (Jan 7, 2021).

Hi, Love the project and I think that one thing that could be very helpful would be to support word2vec for labels and insted of searching for the exact occurrence of a label allowing similar words to be searched. For example if a photo was tagged as elephant it should also be found when searching animal.
This could later be improved using a hierarchical to search through a dendrogram as in here

Originally created by @DdHms on GitHub (Jan 7, 2021). Hi, Love the project and I think that one thing that could be very helpful would be to support [word2vec](https://gist.github.com/bhaettasch/d7f4e22e79df3c8b6c20) for labels and insted of searching for the exact occurrence of a label allowing similar words to be searched. For example if a photo was tagged as elephant it should also be found when searching animal. This could later be improved using a hierarchical to search through a dendrogram as in [here](https://stackoverflow.com/questions/41462711/python-calculate-hierarchical-clustering-of-word2vec-vectors-and-plot-the-resu)
Author
Owner

@graciousgrey commented on GitHub (Jan 7, 2021):

We already have categories for labels. If you search for animal the result shows photos labeled as cat, dog, elephant etc.
But for sure, later we can add more advanced logic :)

@graciousgrey commented on GitHub (Jan 7, 2021): We already have categories for labels. If you search for animal the result shows photos labeled as cat, dog, elephant etc. But for sure, later we can add more advanced logic :)
Author
Owner

@DdHms commented on GitHub (Jan 10, 2021):

It doesn't seem to work here I have an image of an elephant made sure there was an elephant label, then searched for animal and did not find a thing

@DdHms commented on GitHub (Jan 10, 2021): It doesn't seem to work here I have an image of an elephant made sure there was an elephant label, then searched for animal and did not find a thing
Author
Owner

@ryancc9 commented on GitHub (Jan 10, 2021):

Screenshot_20210110-112943

It works fine here. Searched for elephant and animal, both showed the same elephant pictures.

@ryancc9 commented on GitHub (Jan 10, 2021): ![Screenshot_20210110-112943](https://user-images.githubusercontent.com/26860138/104128784-82efea80-5337-11eb-91c3-b5f9651d65aa.png) It works fine here. Searched for elephant and animal, both showed the same elephant pictures.
Author
Owner

@ToXinE commented on GitHub (Sep 27, 2021):

word2vec is a great idea since it allows not only to do those categorization automatically but it also (and it's a far better reason to use it) allows a kind of translation of categories since they are english words only.

@ToXinE commented on GitHub (Sep 27, 2021): word2vec is a great idea since it allows not only to do those categorization automatically but it also (and it's a far better reason to use it) allows a kind of translation of categories since they are english words only.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/photoprism#679
No description provided.