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 (262 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
For additional commands, e-mail: java-user-help [at] lucene


gsingers at apache

Feb 12, 2008, 6:16 AM

Post #2 of 5 (230 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> <spring [at] gmx> 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
> For additional commands, e-mail: java-user-help [at] lucene
>

--------------------------
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
For additional commands, e-mail: java-user-help [at] lucene


spring at gmx

Feb 12, 2008, 6:24 AM

Post #3 of 5 (226 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]
> Sent: Dienstag, 12. Februar 2008 15:16
> To: java-user [at] lucene
> 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> <spring [at] gmx> 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
> > For additional commands, e-mail: java-user-help [at] lucene
> >
>
> --------------------------
> 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
> For additional commands, e-mail: java-user-help [at] lucene
>


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


ab at getopt

Feb 12, 2008, 7:40 AM

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

spring [at] gmx 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
For additional commands, e-mail: java-user-help [at] lucene


spring at gmx

Feb 12, 2008, 7:54 AM

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

This would be really nice!

> -----Original Message-----
> From: Andrzej Bialecki [mailto:ab [at] getopt]
> Sent: Dienstag, 12. Februar 2008 16:41
> To: java-user [at] lucene
> Subject: Re: TermPositionVector
>
> spring [at] gmx 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
> For additional commands, e-mail: java-user-help [at] lucene
>


---------------------------------------------------------------------
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.