Re: Counting the number of repeated phrases in a column
От | Shaozhong SHI |
---|---|
Тема | Re: Counting the number of repeated phrases in a column |
Дата | |
Msg-id | CA+i5JwYak0_Rr-TuzsOkRu+jDsFsgZJ7xdhFyDBbsw_X+WF4Cw@mail.gmail.com обсуждение исходный текст |
Ответ на | Counting the number of repeated phrases in a column (Shaozhong SHI <shishaozhong@gmail.com>) |
Ответы |
Re: Counting the number of repeated phrases in a column
|
Список | pgsql-general |
On Tue, 25 Jan 2022 at 17:10, Shaozhong SHI <shishaozhong@gmail.com> wrote:
There is a short of a function in the standard Postgres to do the following:It is easy to count the number of occurrence of words, but it is rather difficult to count the number of occurrence of phrases.For instance:A cell of value: 'Hello World' means 1 occurrence a phrase.A cell of value: 'Hello World World Hello' means no occurrence of any repeated phrase.But, A cell of value: 'Hello World World Hello Hello World' means 2 occurrences of 'Hello World'.'The City of London, London' also has no occurrences of any repeated phrase.Anyone has got such a function to check out the number of occurrence of any repeated phrases?
How about knock unique words into discrete joint up strings? Then check whether there is any repeated words?
Regards,
David
В списке pgsql-general по дате отправления: