Ask HN: How do you standardise strings to search against list of tags?

1 points by jeanpralo ↗ HN
I want to be able to match words from a search API against list of tags / categories so would like to know what are your best practises and if you know of any good python libaries ?

What are the best approaches ? - tokenisation - stemming - lemmatization

1 comment

[ 4.9 ms ] story [ 12.7 ms ] thread
It depends on your use case. Who are your users? What is your data? Do you want phrase queries? Etc. NLTK is a good library to start with.