From: Oleg Bartunov <oleg@sai.msu.su>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-docs@postgreSQL.org
Cc: Teodor Sigaev <teodor@sigaev.ru>
Subject: Re: Use of "token" vs "lexeme" in text search documentation
Date: Tue, 16 Oct 2007 20:04:12 +0400 (MSD)
Message-ID: <Pine.LNX.4.64.0710162003020.25678@sn.sai.msu.ru> (raw)
In-Reply-To: <20167.1192476132@sss.pgh.pa.us>
References: <20167.1192476132@sss.pgh.pa.us>
On Mon, 15 Oct 2007, Tom Lane wrote:
> The current documentation seems a bit inconsistent in its use of the
> terms "token" and "lexeme". The majority of the text seems to use
> "lexeme" exclusively, which is inconsistent with the fact that the
> term "token" is exposed by ts_token_type() and friends. But there
> are a few places that seem to use "lexeme" to mean something returned
> by a dictionary.
>
> I was considering trying to adopt these conventions:
>
> * What a parser returns is a "token".
>
> * When a dictionary recognizes a token, what it returns is a "lexeme".
>
> This would make the phrase "normalized lexeme" redundant, since we
> don't call it a lexeme at all unless it's been normalized.
>
> Comments?
Hmm, you say what I always thought. I'd be happy if you stress this in
docs.
>
> regards, tom lane
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-docs@postgresql.org
Cc: oleg@sai.msu.su, tgl@sss.pgh.pa.us, teodor@sigaev.ru
Subject: Re: Use of "token" vs "lexeme" in text search documentation
In-Reply-To: <Pine.LNX.4.64.0710162003020.25678@sn.sai.msu.ru>
References: <20167.1192476132@sss.pgh.pa.us> <Pine.LNX.4.64.0710162003020.25678@sn.sai.msu.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox