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

Mailing List Archive: Lucene: Java-User

TermPositionVector

 

 

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


spring at gmx

Feb 12, 2008, 5:31 AM

Post #1 of 5 (180 views)
Permalink
TermPositionVector

Hi,

could somebody please explain what the difference between positions and
offsets is?

And: Is there a trick to show theses infos in luke?

Thank you.


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


gsingers at apache

Feb 12, 2008, 6:16 AM

Post #2 of 5 (163 views)
Permalink
Re: TermPositionVector [In reply to]

Position is just relative to other tokens
(Token.getPositionIncrement()), offsets are character offsets
(Token.startOffset(), Token.endOffset())

-Grant

On Feb 12, 2008, at 8:31 AM, <spring[at]gmx.eu> <spring[at]gmx.eu> wrote:

> Hi,
>
> could somebody please explain what the difference between positions
> and
> offsets is?
>
> And: Is there a trick to show theses infos in luke?
>
> Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>

--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com
http://www.lucenebootcamp.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ





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


spring at gmx

Feb 12, 2008, 6:24 AM

Post #3 of 5 (161 views)
Permalink
RE: TermPositionVector [In reply to]

TermA TermB

TermA has position 0 and offset 0
TermB has position 1 and offset 6

Right?

> -----Original Message-----
> From: Grant Ingersoll [mailto:gsingers[at]apache.org]
> Sent: Dienstag, 12. Februar 2008 15:16
> To: java-user[at]lucene.apache.org
> Subject: Re: TermPositionVector
>
> Position is just relative to other tokens
> (Token.getPositionIncrement()), offsets are character offsets
> (Token.startOffset(), Token.endOffset())
>
> -Grant
>
> On Feb 12, 2008, at 8:31 AM, <spring[at]gmx.eu> <spring[at]gmx.eu> wrote:
>
> > Hi,
> >
> > could somebody please explain what the difference between
> positions
> > and
> > offsets is?
> >
> > And: Is there a trick to show theses infos in luke?
> >
> > Thank you.
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> > For additional commands, e-mail: java-user-help[at]lucene.apache.org
> >
>
> --------------------------
> Grant Ingersoll
> http://lucene.grantingersoll.com
> http://www.lucenebootcamp.com
>
> Lucene Helpful Hints:
> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> http://wiki.apache.org/lucene-java/LuceneFAQ
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>


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


ab at getopt

Feb 12, 2008, 7:40 AM

Post #4 of 5 (161 views)
Permalink
Re: TermPositionVector [In reply to]

spring[at]gmx.eu wrote:
> Hi,
>
> could somebody please explain what the difference between positions and
> offsets is?
>
> And: Is there a trick to show theses infos in luke?


Not yet :) Funny thing, I've been thinking about adding this to Luke,
but ran out of time before the last release. Perhaps I'll include it in
a minor update.


--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com


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


spring at gmx

Feb 12, 2008, 7:54 AM

Post #5 of 5 (159 views)
Permalink
RE: TermPositionVector [In reply to]

This would be really nice!

> -----Original Message-----
> From: Andrzej Bialecki [mailto:ab[at]getopt.org]
> Sent: Dienstag, 12. Februar 2008 16:41
> To: java-user[at]lucene.apache.org
> Subject: Re: TermPositionVector
>
> spring[at]gmx.eu wrote:
> > Hi,
> >
> > could somebody please explain what the difference between
> positions and
> > offsets is?
> >
> > And: Is there a trick to show theses infos in luke?
>
>
> Not yet :) Funny thing, I've been thinking about adding this to Luke,
> but ran out of time before the last release. Perhaps I'll
> include it in
> a minor update.
>
>
> --
> Best regards,
> Andrzej Bialecki <><
> ___. ___ ___ ___ _ _ __________________________________
> [__ || __|__/|__||\/| Information Retrieval, Semantic Web
> ___|||__|| \| || | Embedded Unix, System Integration
> http://www.sigram.com Contact: info at sigram dot com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>


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

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


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.