lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: calculate average distance between words
Date Fri, 02 Mar 2007 13:27:47 GMT
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.


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:
> For additional commands, e-mail:

Grant Ingersoll
Center for Natural Language Processing

Read the Lucene Java FAQ at 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message