You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sp...@gmx.eu on 2008/02/12 14:31:48 UTC
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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: TermPositionVector
Posted by sp...@gmx.eu.
This would be really nice!
> -----Original Message-----
> From: Andrzej Bialecki [mailto:ab@getopt.org]
> Sent: Dienstag, 12. Februar 2008 16:41
> To: java-user@lucene.apache.org
> Subject: Re: TermPositionVector
>
> spring@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@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: TermPositionVector
Posted by Andrzej Bialecki <ab...@getopt.org>.
spring@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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: TermPositionVector
Posted by sp...@gmx.eu.
TermA TermB
TermA has position 0 and offset 0
TermB has position 1 and offset 6
Right?
> -----Original Message-----
> From: Grant Ingersoll [mailto:gsingers@apache.org]
> Sent: Dienstag, 12. Februar 2008 15:16
> To: java-user@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, <sp...@gmx.eu> <sp...@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@lucene.apache.org
> > For additional commands, e-mail: java-user-help@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@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: TermPositionVector
Posted by Grant Ingersoll <gs...@apache.org>.
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, <sp...@gmx.eu> <sp...@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@lucene.apache.org
> For additional commands, e-mail: java-user-help@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@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org