Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

calculate average distance between words

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


dziadgba at googlemail

Mar 2, 2007, 4:22 AM

Post #1 of 2 (810 views)
Permalink
calculate average distance between words

hy,
We want to correlate words and construct a network which links give the
correleation strength.
We believe that if words occur very often very near to each other the
strenght of the link should be stronger.

I remember that somebody once told me that lucene has the capability of
doing that.
So given two terms and the common field (of a single document or all the
documents in which both words occur) it can give the average distance
between the two words.

anyone has any clue?
thanks for attention
dzi

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene


gsingers at apache

Mar 2, 2007, 5:27 AM

Post #2 of 2 (750 views)
Permalink
Re: calculate average distance between words [In reply to]

Take a look at SpanNearQuery, it returns position information.
You'll have to calculate the average based on the results, but that
is pretty trivial.

-Grant

On Mar 2, 2007, at 7:22 AM, dziadgba wrote:

> hy,
> We want to correlate words and construct a network which links give
> the
> correleation strength.
> We believe that if words occur very often very near to each other the
> strenght of the link should be stronger.
>
> I remember that somebody once told me that lucene has the
> capability of
> doing that.
> So given two terms and the common field (of a single document or
> all the
> documents in which both words occur) it can give the average distance
> between the two words.
>
> anyone has any clue?
> thanks for attention
> dzi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
> For additional commands, e-mail: java-user-help [at] lucene
>

--------------------------
Grant Ingersoll
Center for Natural Language Processing
http://www.cnlp.org

Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/
LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe [at] lucene
For additional commands, e-mail: java-user-help [at] lucene

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.