Is it possible to compare a long text string and fuzzy match only phrases contained in?

Started by Shaozhong SHIabout 5 years ago3 messagesgeneral
Jump to latest
#1Shaozhong SHI
shishaozhong@gmail.com

We are looking for working examples of comparing a long text string and
fuzzy-matching multiple words (namely, phrases) contained in.

Any such work examples?

Regards,

David

#2Benedict Holland
benedict.m.holland@gmail.com
In reply to: Shaozhong SHI (#1)
Re: Is it possible to compare a long text string and fuzzy match only phrases contained in?

You want to do NLP in postgres? I would say that you would need a tool like
opennlp to get your tokens and phases, then run a fuzzy matching algorithm.

Unless postgres has nlp capabilities but I am not sure I would use them.
You actually want something fairly complex.

Thanks,
Ben

On Sun, Jan 17, 2021, 4:55 PM Shaozhong SHI <shishaozhong@gmail.com> wrote:

Show quoted text

We are looking for working examples of comparing a long text string and
fuzzy-matching multiple words (namely, phrases) contained in.

Any such work examples?

Regards,

David

#3Tim Clarke
tim.clarke@minerva.info
In reply to: Benedict Holland (#2)
Re: Is it possible to compare a long text string and fuzzy match only phrases contained in?

On 17/01/2021 23:09, Benedict Holland wrote:
You want to do NLP in postgres? I would say that you would need a tool like opennlp to get your tokens and phases, then run a fuzzy matching algorithm.

Unless postgres has nlp capabilities but I am not sure I would use them. You actually want something fairly complex.

Thanks,
Ben

On Sun, Jan 17, 2021, 4:55 PM Shaozhong SHI <shishaozhong@gmail.com<mailto:shishaozhong@gmail.com>> wrote:
We are looking for working examples of comparing a long text string and fuzzy-matching multiple words (namely, phrases) contained in.

Any such work examples?

Regards,

David

We've had excellent results with

https://www.postgresql.org/docs/13/fuzzystrmatch.html

and you may find

https://www.postgresql.org/docs/13/unaccent.html

very useful in this area too

Tim Clarke MBCS
IT Director
Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420

Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852 5803 1687 | Toronto: +1 647 503 2848
Web: https://www.manifest.co.uk/

Minerva Analytics Ltd - A Solactive Company
9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom

________________________________

Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee you must not use or disclose such information, instead please report it to admin@minerva.info<mailto:admin@minerva.info>
Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The Manifest Voting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/ for further information.