Unsupervised automatic tagging algorithms_ - Stack Overflow
Unsupervised automatic tagging algorithms_ - Stack Overflow
- Stack Overflow
I want to build a web application that lets users upload documents, videos, images, music,
and then give them an ability to search them. Think of it as Dropbox + Semantic Search.
24 When user uploads a new file, e.g. Document1.docx, how could I automatically generate
tags based on the content of the file? In other words no user input is needed to determine
what the file is about. If suppose that Document1.docx is a research paper on data
mining, then when user searches for data mining, or research paper, or document1, that
file should be returned in search results, since data mining and research paper will most
likely be potential auto-generated tags for that given document.
1. Which algorithms would you recommend for this problem?
2. Is there an natural language library that could do this for me?
3. Which machine learning techniques should I look into to improve tagging
precision?
4. How could I extend this to video and image automatic tagging?
Thanks in advance!
algorithm machine-learning nlp tagging
Share Improve this question Follow asked Mar 13, 2013 at 4:48
Sahat Yalkabov
33.6k 44 113 176
How would you search for a video? Would you supply another video or would you (more naturally)
input a few words describing it. If the latter you're going to need some sort of user involvement in
tagging. – daniel gratzer Mar 13, 2013 at 4:54
I am pretty sure you can get a lot of literature by googling it. Because as far as I know, there are
even a bunch of research works out there about trying to tag videos automatically. Given that text
is much easier for machines to interpret than videos or images, I believe you can find what you
want on the website. But keep in mind, there is no perfect algorithm that can do the things
exactly what you expect. – yu239 Mar 13, 2013 at 4:56
@jozefg Two options in my mind right now: a) Either input a few keywords b) Extract audio
channel, analyze it for patterns. If speech, parse speech to text and extract relevant keywords. If
music, pass it to Echospirit for music identification. All other cases will result in no tags.
– Sahat Yalkabov Mar 13, 2013 at 5:16
https://stackoverflow.com/questions/15377290/unsupervised-automatic-tagging-algorithms 1/4
2024/12/21 09:10 machine learning - Unsupervised automatic tagging algorithms? - Stack Overflow
1 In other words, you want to build Google. I commend ambitious projects. – Blacksad Mar 13, 2013
at 17:01
Were you able to make it? – Dev_Man Jul 22 at 13:21
The most common unsupervised machine learning model for this type of task is Latent
Dirichlet Allocation (LDA). This model automatically infers a collection of topics over a
21 corpus of documents based on the words in those documents. Running LDA on your set of
documents would assign words with probability to certain topics when you search for
them, and then you could retrieve the documents with the highest probabilities to be
relevant to that word.
There have been some extensions to images and music as well, see
http://cseweb.ucsd.edu/~dhu/docs/research_exam09.pdf.
LDA has several efficient implementations in several languages:
many implementations from the original researchers
http://mallet.cs.umass.edu/, written in Java and recommended by others on SO
PLDA: a fast, parallelized C++ implementation
Share Improve this answer Follow answered Mar 13, 2013 at 4:59
Andrew Mao
36.8k 24 147 228
4 As much as I am an LDA supporter, i dont think it the "topics" generated from LDA has any value
to produce any useable tags other than for WSI purpose. After generating the topics, an
intermediate step to map topics to a set of semantic/syntactic annotation is required to make a
knowledge-driven NLP annotation, especially one that previous researches had put so much
consideration to create. – alvas Mar 13, 2013 at 22:16
I agree with you, but I think that searching for words that are associated with certain topics can
also retrieve documents with high priors on certain topics that are similar. The OP will have to go
somewhere else for a much more rigorous treatment of this :) – Andrew Mao Mar 14, 2013 at 0:23
2. "Prototype" version. Haven't had a chance to go thru this but this is what they
recommend
UPDATE: I've researched this some more and I've found another approach. Basically, it's a
two-stage approach that's very simple to understand and implement. While too slow for
100,000s of documents, it (probably) has good performance for 1000s of docs (so it's
perfect for tagging a single user's documents). I'm going to try this approach and will
report back on performance/usability.
In the mean time, here's the approach:
1. Use TextRank as per http://qr.ae/36RAP to generate a tag list for a single document.
This generates a tag list for a single document independent of other documents.
2. Use the algorithm from "Using Machine Learning to Support Continuous Ontology
Development"
(https://www.researchgate.net/publication/221630712_Using_Machine_Learning_to_Su
pport_Continuous_Ontology_Development) to integrate the tag list (from step 1) into
the existing tag list.
Share Improve this answer edited Jul 2, 2018 at 15:14 answered Jan 26, 2015 at 15:53
Follow Toby U Avalos
2,294 4 25 34 6,778 8 50 83
No update then? The answers here are probably outdated by now written 4 years ago – borgr Aug
26, 2019 at 14:35
For Developers wanting to customize their own approach - the source code is available
(very cheap) and the back-end service xAIgent (https://xAIgent.com) is very inexpensive to
use.
Share Improve this answer Follow answered Jan 15, 2020 at 15:45
Rod Miller
11 1
https://stackoverflow.com/questions/15377290/unsupervised-automatic-tagging-algorithms 4/4