You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Paul Jones <pa...@yahoo.co.uk> on 2009/06/17 04:04:08 UTC

newbie question: LSA anaylsis + others

Hi to one and all

First time on this list, have read through the wiki, faq and other docs, but before I dived further into Mahout I had a few questions or should I say clarifications.
I am looking for a system which would allow me to:

1. Take a set of words
2. Build clusters of these words, i.e work out the semantic relationship between these (I guess I could use wordnet as a starter) words. i.e inter-relationships
3. Once clusters have been formed of words, also work out relationship between the clusters themselves.

so in essence I could work out that red was similiar to crimson, and hence a search on red would produce docs with crimson in them even though red was not mentioned.

would mahout work here?

Of course prior to this, there is the problem of cleaning up the data, i.e stemming etc.

Now I have read several detailed papers on clustering, ranking, etc, and of course some algos are better than others, but to me a platform like Mahout seems interesting since you can deploy the existing ones in the system, and also later on add others.

Looking at the algorithms it seems as if LSI (PLSI) has not been implemented as yet, if so which other algo would "suffice" in this case. Admitedley my knowledge of algos is poor to say the least :-). Also where would (if it does) Lucene fit in, would it be used to search the results after the algo's had been applied ? since it seems as if Lucene just uses a weighting system to create the index, or can Mahout do it all.

As you can see confused, but this is my first pass at this system.

tks

Paul

P.S are any of the algo's feedback algo's, i.e so that someone could inprove results using user feedback.


      

Re: newbie question: LSA anaylsis + others

Posted by Ted Dunning <te...@gmail.com>.
As yet, no.

There is, however, an active project going to implement LDA.  This will give
you "semantic" representations for words which could then be clustered.  We
do have several clustering algorithms that would be entirely sufficient for
that step.

It would be a very interesting addition to have some other language modeling
implementation as well.  The one that I would find interesting would be
something like a center embedded neural model such as was used in this
article by Ronan
Collobert<http://ronan.collobert.com/pub/matos/2008_nlp_icml.pdf>.
I would be very willing to advise on the implementation of such a beast, but
due to my normal level of over-commitment could only provide minimal direct
code contributions.

On Tue, Jun 16, 2009 at 7:04 PM, Paul Jones <pa...@yahoo.co.uk>wrote:

> 1. Take a set of words
> 2. Build clusters of these words, i.e work out the semantic relationship
> between these (I guess I could use wordnet as a starter) words. i.e
> inter-relationships
> 3. Once clusters have been formed of words, also work out relationship
> between the clusters themselves.
>
> so in essence I could work out that red was similiar to crimson, and hence
> a search on red would produce docs with crimson in them even though red was
> not mentioned.
>
> would mahout work here?
>

Re: newbie question: LSA anaylsis + others

Posted by Grant Ingersoll <gs...@apache.org>.
On Jun 18, 2009, at 11:18 AM, Paul Jones wrote:

> Okay I have brain freeze, reading the email below:-)
>
> I think PLSI will do (or is a great starter) to what I want. I am  
> looking at a hadoop install, with mahout on top, is there any need  
> of lucene.

I haven't looked at the PLSI Pig thing yet, but I've been using the  
Lucene stuff to produce Vectors from a Lucene index.  So, if you  
already have your own Vectors/Matrix, then no need for Lucene.


>
> Also is there a "dummies" guide to all these algos, i.e which are  
> clustering algos, which are indexing, which are for "abc", since I  
> am reading a ton of information and am not 100% sure of which  
> categories they all fit into....hope the question is not to vague

The Wiki is the place to start.   I've been working on http://cwiki.apache.org/confluence/display/MAHOUT/ClusteringYourData 
, but it's far from complete.  That will cover the clustering stuff.   
As for indexing, not sure what you mean.  If you're talking indexing  
as in Lucene, there is no code for that.

FWIW, in answer to your original question, I've seen some people do  
some interesting stuff with Graph Theory (ranking, etc.) and  
relationships between words.

-Grant


Re: newbie question: LSA anaylsis + others

Posted by Paul Jones <pa...@yahoo.co.uk>.
Okay I have brain freeze, reading the email below:-)

I think PLSI will do (or is a great starter) to what I want. I am looking at a hadoop install, with mahout on top, is there any need of lucene.

Also is there a "dummies" guide to all these algos, i.e which are clustering algos, which are indexing, which are for "abc", since I am reading a ton of information and am not 100% sure of which categories they all fit into....hope the question is not to vague

Paul




________________________________
From: Ted Dunning <te...@gmail.com>
To: mahout-user@lucene.apache.org
Sent: Wednesday, 17 June, 2009 7:36:48
Subject: Re: newbie question: LSA anaylsis + others

Indeed there is.  And Prasenjit is being properly modest by not pointing out
that this was due to his efforts.

This is a great example of how terse a language like pig can make many
problems that involve a bunch of counting.  Most EM-like algorithms fit into
this category including k-means, HMM fitting, Dirichlet Process mixture
modeling and lots of others.

The problem in my mind is that it is difficult to tie all of the little
scripts together coherenly.  Prasenjit did this using python, but there is
still no cohesive whole to the resulting program even if the result is much
smaller and probably easier to understand than a large java program.

On Tue, Jun 16, 2009 at 11:07 PM, prasenjit mukherjee
<pr...@gmail.com>wrote:

> Well, there is a  PLSI implementation using Pig ( over Hadoop ) as a mahout
> patch : https://issues.apache.org/jira/browse/MAHOUT-106
>
>



      

Re: newbie question: LSA anaylsis + others

Posted by Ted Dunning <te...@gmail.com>.
Indeed there is.  And Prasenjit is being properly modest by not pointing out
that this was due to his efforts.

This is a great example of how terse a language like pig can make many
problems that involve a bunch of counting.  Most EM-like algorithms fit into
this category including k-means, HMM fitting, Dirichlet Process mixture
modeling and lots of others.

The problem in my mind is that it is difficult to tie all of the little
scripts together coherenly.  Prasenjit did this using python, but there is
still no cohesive whole to the resulting program even if the result is much
smaller and probably easier to understand than a large java program.

On Tue, Jun 16, 2009 at 11:07 PM, prasenjit mukherjee
<pr...@gmail.com>wrote:

> Well, there is a  PLSI implementation using Pig ( over Hadoop ) as a mahout
> patch : https://issues.apache.org/jira/browse/MAHOUT-106
>
>

Re: newbie question: LSA anaylsis + others

Posted by prasenjit mukherjee <pr...@gmail.com>.
Well, there is a  PLSI implementation using Pig ( over Hadoop ) as a mahout
patch : https://issues.apache.org/jira/browse/MAHOUT-106

-P

On Wed, Jun 17, 2009 at 7:34 AM, Paul Jones <pa...@yahoo.co.uk>wrote:

> Hi to one and all
>
> First time on this list, have read through the wiki, faq and other docs,
> but before I dived further into Mahout I had a few questions or should I say
> clarifications.
> I am looking for a system which would allow me to:
>
> 1. Take a set of words
> 2. Build clusters of these words, i.e work out the semantic relationship
> between these (I guess I could use wordnet as a starter) words. i.e
> inter-relationships
> 3. Once clusters have been formed of words, also work out relationship
> between the clusters themselves.
>
> so in essence I could work out that red was similiar to crimson, and hence
> a search on red would produce docs with crimson in them even though red was
> not mentioned.
>
> would mahout work here?
>
> Of course prior to this, there is the problem of cleaning up the data, i.e
> stemming etc.
>
> Now I have read several detailed papers on clustering, ranking, etc, and of
> course some algos are better than others, but to me a platform like Mahout
> seems interesting since you can deploy the existing ones in the system, and
> also later on add others.
>
> Looking at the algorithms it seems as if LSI (PLSI) has not been
> implemented as yet, if so which other algo would "suffice" in this case.
> Admitedley my knowledge of algos is poor to say the least :-). Also where
> would (if it does) Lucene fit in, would it be used to search the results
> after the algo's had been applied ? since it seems as if Lucene just uses a
> weighting system to create the index, or can Mahout do it all.
>
> As you can see confused, but this is my first pass at this system.
>
> tks
>
> Paul
>
> P.S are any of the algo's feedback algo's, i.e so that someone could
> inprove results using user feedback.
>
>
>