lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Linhon <lin...@tudou.com>
Subject Re: How to compute the simlarity of a web page?
Date Tue, 24 Feb 2009 17:13:35 GMT
wow,it sounds very nice,thank you:)

在 2009-02-16一的 22:08 -0500,Grant Ingersoll写道:
> Hmmm, you might be able to do the following:
> 
> Create a document in a memory index containing the web page
> Create a query from the keywords
> Do a search with the query against the memory index and see the score.
> 
> Alternatively, you could use the corpus statistics plus to create a  
> term vector from the document (as if it were a member of the  
> collection) and then do the cosine calculation of that document with  
> your query (which you also calculated the weights for based on your  
> collections stats)
> 
> Last, it sounds like you are essentially describing a categorization  
> task.  Have a look at some categorization software (for instance,  
> Mahout can do Naive Bayes categorization or some alternatives).
> 
> Of course, I might be missing something in understanding what you are  
> asking, so feel free to give a shout back to discuss.
> 
> HTH,
> Grant
> 
> On Feb 12, 2009, at 1:31 AM, renavatior wrote:
> 
> >
> > I am doing some research in vertical search? Therefore, i defined some
> > weights of several keywords in my corpus expressing a certain
> > theme,later,how can i use these to compute the similarity with the  
> > given web
> > page(passed by url to the compute method).I saw the source code of
> > Similarity.java in Lucene,but i do not know how to use the method  
> > such as
> > TF,IDF,and so on.
> > i will really appreciate it if anyone can give me some advice,thanks  
> > in
> > advance.
> > -- 
> > View this message in context: http://www.nabble.com/How-to-compute-the-simlarity-of-a-web-page--tp21970680p21970680.html
> > Sent from the Lucene - Java Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> 
> --------------------------
> Grant Ingersoll
> http://www.lucidimagination.com/
> 
> Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)  
> using Solr/Lucene:
> http://www.lucidimagination.com/search
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 

*******************************************************************
This e-mail is confidential. It may also be legally privileged.
If you are not the addressee you may not copy, forward, disclose
or use any part of it. If you have received this message in error,
please delete it and all copies from your system and notify the
sender immediately by return e-mail.

Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
*******************************************************************
"SAVE PAPER - THINK BEFORE YOU PRINT!" 



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message