{"id":12127,"date":"2022-02-24T13:05:54","date_gmt":"2022-02-24T12:05:54","guid":{"rendered":"https:\/\/flaven.fr\/?p=12127"},"modified":"2026-09-16T10:09:11","modified_gmt":"2026-09-16T08:09:11","slug":"a-streamlit-application-that-automate-a-user-support-task-for-p-o-with-an-nlp-keybert-text-analyzer","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2022\/02\/a-streamlit-application-that-automate-a-user-support-task-for-p-o-with-an-nlp-keybert-text-analyzer\/","title":{"rendered":"A Streamlit application that automate a User Support task for P.O with an NLP KeyBERT Text Analyzer"},"content":{"rendered":"<p>You are overloaded with support questions&#8230; Meanwhile the corporate hacking just shows you that people are reluctant to change and the User Feedback Loop looks more like beating a dead horse than a true and a constructive dialog&#8230; Then, maybe this post is for you even though it starts like a clickbait! Indeed, this is my personal answer to automate as much as possible the support to a fixed mindset users audience. Originally, this post is the result of a bundle merging 2 concerns in one: How to make efficient support? (less is more) and how to leverage on KeyBERT to make a Text Analyzer to read automatically the mails from support.<\/p>\n<ul>\n<li>The project &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221; (automate_po_job_demo_support)<br \/><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/automate_po_job_demo_support\" target=\"_blank\" rel=\"noopener\">automate_po_job_demo_support<\/a><\/li>\n<li>The project &#8220;KeyBERT Rough Text Analyzer&#8221;<br \/>\n(discovering_bert_and_keybert)<br \/><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/discovering_bert_and_keybert\" target=\"_blank\" rel=\"noopener\">discovering_bert_and_keybert<\/a><\/li>\n<li>The merge of the 2 projects: &#8220;KeyBERT Rough Text Analyzer&#8221; and &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221; (all_in_one_automate_po_job_demo_support_keybert)<br \/><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/all_in_one_automate_po_job_demo_support_keybert\" target=\"_blank\" rel=\"noopener\">automate_po_job_demo_support<\/a><\/li>\n<\/ul>\n<p><b>Two preliminary remarks that precise application&#8217;s scope and purpose:<\/b><\/p>\n<ol>\n<li>The application does not to send any email because the added value for this POC is in the ability to connect the 2 projects not to handle security, network, environment, deployment issues. Feel free to modify it and do this evolution if necessary. Security, network, environment, deployment issues are complexities far beyond this POC.<\/li>\n<li>Again for security reason, I cannot release the real templates that I have gathered for my own usage. Instead I have populated generic template, feel free to modify and adapt to our own use.<\/li>\n<\/ol>\n<p><b>The project leverages on these libraries.<\/b><\/p>\n<ul>\n<li>Streamlit: <a href=\"https:\/\/streamlit.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/streamlit.io\/<\/a><\/li>\n<li>SQLAlchemy: <a href=\"https:\/\/www.sqlalchemy.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.sqlalchemy.org\/<\/a><\/li>\n<li>KeyBERT: <a href=\"https:\/\/maartengr.github.io\/KeyBERT\/index.html\" target=\"_blank\" rel=\"noopener\">https:\/\/maartengr.github.io\/KeyBERT\/<\/a><\/li>\n<li>SQLite: <a href=\"https:\/\/sqlite.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/sqlite.org\/<\/a><\/li>\n<\/ul>\n<h2>1. Question_1: How to make efficient support?<\/h2>\n<p><b>My first concern is &#8220;How can I optimize the support that I currently made as a PO?&#8221;. Making support can be really exhausting! So, it is better to rely on a brainless and turn-to-key solution so you can spend less time as possible on this task.<\/b><\/p>\n<p>I know that support is a key concern but it can turn to harassment that will then change you surreptitiously into a customer support\u2019s hater! I&#8217;m kidding but only halfway :). You must admit that sometimes making support is equivalent to provide a spare brain for people who are lazy to tackle their own difficulties&#8230; and you must be benevolent anyway!<\/p>\n<p>That is the application\u2019s purpose, at least bringing me an asset in continuous learning and at the same time delegating the worst to the machine and act brainless, answering to customers should be dead simple like the blink of an eye, that&#8217;s my purpose. Making support like a robot but with all the smoothness and politeness possible.<\/p>\n<h2>2. Question_2: How to perform Text Analysis with Keybert?<\/h2>\n<p><b>My second concern was more a data science oriented issue: On user&#8217;s support feedback, how can I leverage on NLP to perform text analysis with Keybert in order to sort the user&#8217;s content by topics therefore by keywords! For that purpose, I have selected KeyBERT to explore the texts.<\/b><\/p>\n<blockquote><p>KeyBERT is a minimal and easy-to-use keyword extraction technique that leverages BERT embeddings to create keywords and keyphrases that are most similar to a document.<\/p><\/blockquote>\n<p><i>Source: <a href=\"https:\/\/maartengr.github.io\/KeyBERT\/index.html\" target=\"_blank\" rel=\"noopener\">https:\/\/maartengr.github.io\/KeyBERT\/index.html<\/a><\/i><\/p>\n<h2>3. Answer_1 to Question_1: The project &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221;<\/h2>\n<p>This project enables to simply &#8220;CRUD&#8221; a set of mail&#8217;s templates that can be use to answer to any question regarding the application I am working on. I am currently a PO for a CMS but it can be applied to any application as far as you know your application&#8217;s scope. <\/p>\n<p><b>You can find the working files in &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221; (004_automate_po_job_streamlit_sqlalchemy_example_database): <a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/automate_po_job_demo_support\/004_automate_po_job_streamlit_sqlalchemy_example_database\" target=\"_blank\" rel=\"noopener\">004_automate_po_job_streamlit_sqlalchemy_example_database<\/a><\/b><\/p>\n<p>For that purpose, I am using mostly these 2 libraries:<\/p>\n<ul>\n<li>Streamlit: <a href=\"https:\/\/streamlit.io\/\" target=\"_blank\" rel=\"noopener\">https:\/\/streamlit.io\/<\/a><\/li>\n<li>SQLAlchemy: <a href=\"https:\/\/www.sqlalchemy.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.sqlalchemy.org\/<\/a><\/li>\n<\/ul>\n<h3>3.1 Objective<\/h3>\n<p><b>The objective was to create a quick and dirty mailing User Support templates selector using a database for Knowledge management (KM).<\/b><\/p>\n<p><b>When you &#8220;meta-describe&#8221; a mail as an object, you get the database SQLite description for fields and table! I added some tags to the table to enable a search ability on the database&#8217;s content. So, below here are the notes that I have used to design my database and the SQLite&#8217;s command to create it.<\/b><\/p>\n<pre lang=\"sql\">\r\n--dbName:  km_user_support\r\n--tableName: user_support_mail_templates\r\n\r\n--fieldsTableName:\r\n--### id\r\n--### filename\r\n--### recipients\r\n--### mail_object\r\n--### mail_body\r\n--### mail_search_tags\r\n\r\n--SQLite command_1\r\nPRAGMA foreign_keys=OFF;\r\nBEGIN TRANSACTION;\r\nCREATE TABLE user_support_mail_templates (\r\nid_filename INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,\r\nfilename VARCHAR,\r\nrecipients VARCHAR,\r\nmail_object TEXT UNIQUE,\r\nmail_body TEXT,\r\nmail_search_tags VARCHAR\r\n);\r\nCOMMIT;\r\n\r\n--SQLite command_2\r\nPRAGMA foreign_keys=OFF;\r\nBEGIN TRANSACTION;\r\nCREATE TABLE \"user_support_mail_templates\" (\r\n\"id_filename\" INTEGER NOT NULL,\r\n\"filename\" VARCHAR,\r\n\"recipients\" VARCHAR,\r\n\"mail_object\" TEXT UNIQUE,\r\n\"mail_body\" TEXT,\r\n\"mail_search_tags\" VARCHAR,\r\nPRIMARY KEY(\"id_filename\", AUTOINCREMENT)\r\n);\r\nCOMMIT;\r\n<\/pre>\n<h3>3.2 Note on mailing template building rules<\/h3>\n<p><b>Here are the notes that I have written before coding the application. It is mostly naming convention then defining the content that will be stored in the DB.<\/b><\/p>\n<p><b>3.2.1 NOMEMCLATURE<\/b><br \/>\nDecomposing a typical mail, that is an abstract or class to describe the email as an object, gave me the fields for the database.<\/p>\n<ul>\n<li>TITLE (filename)<\/li>\n<li>DEST (recipients)<\/li>\n<li>OBJECT (mail_object)<\/li>\n<li>BODY (mail_body)<\/li>\n<li>TAGS (mail_search_tags)<\/li>\n<\/ul>\n<p><b>3.2.2 PATTERN<\/b><br \/>\nThe idea is to create a pattern for the email template&#8217;s object to normalize it.<\/p>\n<pre lang=\"bash\">\r\n# to create the mail object template\r\n[nb_increment]_[user_area]_[to_recipient]_[content_mail_type]\r\n\r\n# EXAMPLES\r\n### 001_support_filename\r\n### 002_support_filename\r\n### 003_support_filename\r\n### 004_support_filename\r\n### 005_support_filename\r\n<\/pre>\n<p><b>3.2.3 CONTENT<\/b><br \/>\nI have put some fake text inside the email template&#8217;s body. Check config_values\/values_conf.py to get a glimpse on the values that I am using<\/p>\n<p><b>3.2.4 OTHER DIRECTORIES<\/b><br \/>\nThe other directories in the project are just testimonials of my exploratory work:<\/p>\n<ol>\n<li><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/automate_po_job_demo_support\/002_pythonspot\/\" target=\"_blank\" rel=\"noopener\">002_pythonspot<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/automate_po_job_demo_support\/003_automate_po_job\" target=\"_blank\" rel=\"noopener\">003_automate_po_job<\/a><\/li>\n<\/ol>\n<h2>4. Answer_2 to Question_2: The project &#8220;KeyBERT Rough Text Analyzer&#8221;<\/h2>\n<p>I am not even a real data scientist nor a real developer but I am sure to know to capture the essence of some other projects and to tinker them to fit my own purposes.<br \/>\nSo, I have designed the application with KeyBERT based on these 2 projects. I have sample some existing application structure, in particular 2 remarkable applications: one from charlywargnier and the other from ahmedbesbes<\/p>\n<p>The &#8220;skeleton&#8221; for an application with KeyBERT should work with those parameters and their equivalent in Streamlit.<\/p>\n<ol>\n<li>st.radio :: choose your model e.g DistilBERT (Default) or Flair<\/li>\n<li>st.slider :: choose number of keywords\/keyphrases<\/li>\n<li>st.number_input :: Choose Minimum Ngram<\/li>\n<li>st.number_input :: Choose Maximum Ngram<\/li>\n<li>st.checkbox :: Select Remove stop words<\/li>\n<li>st.checkbox :: Select Use MMR<\/li>\n<li>st.slider :: Keyword diversity (MMR only)<\/li>\n<li>st.text_area :: Paste your text below (max 500 words)<\/li>\n<li>st.button :: Paste your text below (max 500 words)<\/li>\n<\/ol>\n<p>I intend also to use these 2 objects that are often in my Streamlit application.<\/p>\n<pre lang=\"python\">\r\nst.expander\r\nst.help(obj)\r\n<\/pre>\n<ul>\n<li>BERT Keyword Extractor app<br \/><a href=\"https:\/\/share.streamlit.io\/charlywargnier\/bert-keyword-extractor\/main\/app.py\" target=\"_blank\" rel=\"noopener\">https:\/\/share.streamlit.io\/charlywargnier\/bert-keyword-extractor\/main\/app.py<\/a><\/li>\n<li>How to extract meaningful and semantic keywords using BERT and Streamlit<br \/><a href=\"https:\/\/github.com\/ahmedbesbes\/keywords-extractor-with-bert\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/ahmedbesbes\/keywords-extractor-with-bert<\/a><\/li>\n<\/ul>\n<h2>5. Focus on keyBERT: a sesame to text meaning disclosure!<\/h2>\n<p>Let&#8217;s be simplistic! The basic idea is to leverage on automatic keyword generation. This principle is everywhere for multipurpose when you are dealing with texts from Chat solution to any text analysis solution. So, in my case, it will be analyze my users support&#8217;s heavy burden.<\/p>\n<p><b>Bert is one of the best heaviest champion in NLP! keyBERT the greatest carries, as a library, many models with among them my favorite Spacy. So, keyBERT is great for tinkering as there are tremendous number of parameters and it is embedding models such as DistilBERT or Flair. The main drawback is to know exactly what the parameters are about when you are not a specialist.<\/b><\/p>\n<p><b>Personally, I like to have results every time I am doing something! So, I use these 2 models that work for different languages (&#8216;en&#8217;, &#8216;it&#8217;, &#8216;fr&#8217;, &#8216;es&#8217;, &#8216;ru&#8217;) and give me back good-enough results in term of Keywords.<\/b><\/p>\n<pre lang=\"bash\">\r\nLoad pretrained SentenceTransformer: distilbert-base-nli-mean-tokens\r\nLoad pretrained SentenceTransformer: distiluse-base-multilingual-cased-v1\r\n<\/pre>\n<p><b>Top N results<\/b><br \/>\nYou can choose the number of results to be displayed. Between 1 and 30, the default number is 10.<\/p>\n<p><b>Min\/Max  Ngrams<\/b><br \/>\nYou can choose the minimum and maximum values for the ngram range.<br \/>\nThis sets the length of the resulting keywords\/keyphrases.<br \/>\nTo extract a set of single keywords only, set the ngram range to (1, 1)<br \/>\nTo extract keyphrases, set the minimum ngram value to 2. The maximum ngram value can be set to 2 or higher, depending on the number of words you would like to see in each keyphrase.<\/p>\n<p><b>In this post I am going to talk about N-grams, a concept found in Natural Language Processing ( aka NLP). First of all, let\u2019s see what the term \u2018N-gram\u2019 means. Turns out that is the simplest bit, an N-gram is simply a sequence of N words. For instance, let us take a look at the following examples.<\/b><\/p>\n<pre lang=\"bash\">\r\nSan Francisco (is a 2-gram)\r\nThe Three Musketeers (is a 3-gram)\r\nShe stood up slowly (is a 4-gram)\r\n<\/pre>\n<p><i>Source: <a href=\"https:\/\/blog.xrds.acm.org\/2017\/10\/introduction-n-grams-need\/\" target=\"_blank\" rel=\"noopener\">https:\/\/blog.xrds.acm.org\/2017\/10\/introduction-n-grams-need\/<\/a><\/i><\/p>\n<p><b>Check Stop Words<\/b><br \/>\nThe most straightforward definition for stopwords is all the words you want to exclude from your NLP analysis.<\/p>\n<p>I have extended the system to not only have Stop Words in English but to other European languages such as: Italian, French, Spanish and Russian.<\/p>\n<p>More precisely, in any language, you have redundant words that does not bring poor insights on the text understanding. For instance, in English vocabulary, there are many words like &#8220;I&#8221;, &#8220;the&#8221; and &#8220;you&#8221; that appear very frequently in the text but they do not add any valuable information for NLP operations and modeling. These words are called stopwords and they are almost always advised to be removed as part of text preprocessing.<\/p>\n<p>You can add or create your own stop words list like for instance with offending words, very useful when you investigate consumer feedback in Chats or in a Forums!<\/p>\n<p>In my case, I have set files in a directory called stop words with stop words files found on the web for each language except english : stopwords_es.txt, stopwords_fr.txt, stopwords_it.txt, stopwords_ru.txt.<\/p>\n<p>For english language , as the model called is &#8220;distilbert-base-nli-mean-tokens&#8221;, the stop Words list is set directly as a parameter when the model is called.<\/p>\n<p>You have other parameter that you should know but the best is to check directly the website. You can find much more information on the official website of KeyBERT at <a href=\"https:\/\/maartengr.github.io\/KeyBERT\/\" target=\"_blank\" rel=\"noopener\">https:\/\/maartengr.github.io\/KeyBERT\/<\/a><\/p>\n<p><b>Use MMR (Maximal Margin Relevance)<\/b><br \/>\nYou can use Maximal Margin Relevance (MMR) to diversify the results. It creates keywords\/key phrases based on cosine similarity.<\/p>\n<p><b>Diversity<\/b><br \/>\nThe higher the setting, the more diverse the keywords. Note that the *Keyword diversity* slider only works if the *MMR* checkbox is ticked.<\/p>\n<h2>6. Final Thought: Wrap-it-up<\/h2>\n<p>At the end, I want to see a all-in-one. So, I decided to merge the 2 projects: &#8220;KeyBERT Rough Text Analyzer&#8221; and &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221;. Thanks to Streamlit, it has not been so difficult. You can check the result at the address below:<\/p>\n<ul>\n<li>The merge of the 2 projects: &#8220;KeyBERT Rough Text Analyzer&#8221; and &#8220;AUTOMATE P.O. JOB SUPPORT&#8217;S DEMO&#8221;<br \/>\n    (all_in_one_automate_po_job_demo_support_keybert)<br \/><a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/all_in_one_automate_po_job_demo_support_keybert\" target=\"_blank\" rel=\"noopener\">automate_po_job_demo_support<\/a><\/li>\n<\/ul>\n<p><b>Conclusion: Like always, I have the feeling that is maybe overkill to forge as a P.O (Product Owner) my own tools. But, I have the persistent impression that the Product Owner&#8217;s job scope may probably change radically or disappear purely and simply on some aspects due to IA. In any case, as far as user support is concerned, I wish, with all my heart, to have it disappeared! Last thing, thanks again to Streamlit because by using it, I am force to think in term of GUI so it spreads good practices in terms of coding especially by refactoring the code when it is possible (DRY).<\/b><\/p>\n<h2>7. Videos<\/h2>\n<p><b>3 additional videos to tackle this post<\/b><\/p>\n<ul>\n<li>Part 1 &#8211; The project  &#8220;AUTOMATE P.O. JOB SUPPORT\u2019S DEMO&#8221; (automate_po_job_demo_support)<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/YUmClVfNbN8\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/li>\n<li>Part 2 &#8211; The project  &#8220;KeyBERT Rough Text Analyzer&#8221;  (discovering_bert_and_keybert)<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/k8L2_Hrvn-w\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/li>\n<li>Part 3 &#8211; The merge of the 2 projects:  &#8220;KeyBERT Rough Text Analyzer&#8221; and  &#8220;AUTOMATE P.O. JOB SUPPORT\u2019S DEMO&#8221;  (all_in_one_automate_po_job_demo_support_keybert)<iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/XVfD0ubrjhg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/li>\n<\/ul>\n<h2>More infos<\/h2>\n<ul>\n<p>    <H3>SQLALCHEMY<\/H3><\/p>\n<li>SQLAlchemy \u2014 Python Tutorial<br \/><a href=\"https:\/\/towardsdatascience.com\/sqlalchemy-python-tutorial-79a577141a91\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/sqlalchemy-python-tutorial-79a577141a91<\/a><\/li>\n<li>How to update existing table rows in SQLAlchemy in Python?<br \/><a href=\"https:\/\/www.geeksforgeeks.org\/how-to-update-existing-table-rows-in-sqlalchemy-in-python\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.geeksforgeeks.org\/how-to-update-existing-table-rows-in-sqlalchemy-in-python\/<\/a><\/li>\n<li>A PYTHON &#038; SQL EMAIL PARSER<br \/><a href=\"https:\/\/www.benjamindornel.com\/projects\/email_parser.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.benjamindornel.com\/projects\/email_parser.html<\/a><\/li>\n<li>Creating an Email Parser with Python and SQL<br \/><a href=\"https:\/\/towardsdatascience.com\/creating-an-email-parser-with-python-and-sql-c79cb8771dac\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/creating-an-email-parser-with-python-and-sql-c79cb8771dac<\/a><\/li>\n<li>OutlookParser50<br \/><a href=\"https:\/\/github.com\/benjamin-awd\/OutlookParser50\/blob\/main\/Demo\/s_parser.py\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/benjamin-awd\/OutlookParser50\/blob\/main\/Demo\/s_parser.py<\/a><\/li>\n<li>SQLite &#8211; TRUNCATE TABLE Command<br \/><a href=\"https:\/\/www.tutorialspoint.com\/sqlite\/sqlite_truncate_table.htm\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tutorialspoint.com\/sqlite\/sqlite_truncate_table.htm<\/a><\/li>\n<li>Importing and exporting data in SQLite<br \/><a href=\"https:\/\/www.prisma.io\/dataguide\/sqlite\/importing-and-exporting-data-in-sqlite\" target=\"_blank\" rel=\"noopener\">https:\/\/www.prisma.io\/dataguide\/sqlite\/importing-and-exporting-data-in-sqlite<\/a><\/li>\n<li>SQLAlchemy ORM Using Query<br \/><a href=\"https:\/\/www.tutorialspoint.com\/sqlalchemy\/sqlalchemy_orm_using_query.htm\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tutorialspoint.com\/sqlalchemy\/sqlalchemy_orm_using_query.htm<\/a><\/li>\n<li>Fast bulk insert with sqlalchemy<br \/><a href=\"https:\/\/tutorials.technology\/tutorials\/Fast-bulk-insert-with-sqlalchemy.html\" target=\"_blank\" rel=\"noopener\">https:\/\/tutorials.technology\/tutorials\/Fast-bulk-insert-with-sqlalchemy.html<\/a><\/li>\n<li>SQLAlchemy ORM Adding Objects<br \/><a href=\"https:\/\/www.tutorialspoint.com\/sqlalchemy\/sqlalchemy_orm_adding_objects.htm\" target=\"_blank\" rel=\"noopener\">https:\/\/www.tutorialspoint.com\/sqlalchemy\/sqlalchemy_orm_adding_objects.htm<\/a><\/li>\n<li>SQLAlchemy Core \u2013 SQL Expressions<br \/><a href=\"https:\/\/www.geeksforgeeks.org\/sqlalchemy-core-sql-expressions\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.geeksforgeeks.org\/sqlalchemy-core-sql-expressions\/<\/a><\/li>\n<li>SQLAlchemy ORM Tutorial for Python Developers<br \/><a href=\"https:\/\/auth0.com\/blog\/sqlalchemy-orm-tutorial-for-python-developers\/\" target=\"_blank\" rel=\"noopener\">https:\/\/auth0.com\/blog\/sqlalchemy-orm-tutorial-for-python-developers\/<\/a><\/li>\n<li>ORM with SqlAlchemy<br \/><a href=\"https:\/\/pythonspot.com\/orm-with-sqlalchemy\/\" target=\"_blank\" rel=\"noopener\">https:\/\/pythonspot.com\/orm-with-sqlalchemy\/<\/a><\/li>\n<p><H3>KeyBERT and Streamlit<\/H3><\/p>\n<li>How I used machine learning to classify emails and turn them into insights (part 1).<br \/><a href=\"https:\/\/towardsdatascience.com\/how-i-used-machine-learning-to-classify-emails-and-turn-them-into-insights-efed37c1e66\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/how-i-used-machine-learning-to-classify-emails-and-turn-them-into-insights-efed37c1e66<\/a><\/li>\n<li>Using keyword extraction for unsupervised text classification in NLP<br \/><a href=\"https:\/\/towardsdatascience.com\/using-keyword-extraction-for-unsupervised-text-classification-in-nlp-10433a1c0cf9\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/using-keyword-extraction-for-unsupervised-text-classification-in-nlp-10433a1c0cf9<\/a><\/li>\n<li>pytorch-pretrained-bert 0.6.2<br \/><a href=\"https:\/\/pypi.org\/project\/pytorch-pretrained-bert\/#examples\" target=\"_blank\" rel=\"noopener\">https:\/\/pypi.org\/project\/pytorch-pretrained-bert\/#examples<\/a><\/li>\n<li>NLP Tutorial: Creating Question Answering System using BERT + SQuAD on Colab TPU<br \/><a href=\"https:\/\/hackernoon.com\/nlp-tutorial-creating-question-answering-system-using-bert-squad-on-colab-tpu-1utp3352\" target=\"_blank\" rel=\"noopener\">https:\/\/hackernoon.com\/nlp-tutorial-creating-question-answering-system-using-bert-squad-on-colab-tpu-1utp3352<\/a><\/li>\n<li>bert-for-tf2 0.14.9<br \/><a href=\"https:\/\/pypi.org\/project\/bert-for-tf2\/\" target=\"_blank\" rel=\"noopener\">https:\/\/pypi.org\/project\/bert-for-tf2\/<\/a><\/li>\n<li>Word Embedding Using BERT In Python<br \/><a href=\"https:\/\/towardsdatascience.com\/word-embedding-using-bert-in-python-dd5a86c00342\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/word-embedding-using-bert-in-python-dd5a86c00342<br \/>\n<\/a><\/li>\n<li>[Shorts-1] How to download HuggingFace models the right way<br \/><a href=\"https:\/\/gitlost-murali.github.io\/blogs\/nlp\/huggingface\/download-huggingface-models\" target=\"_blank\" rel=\"noopener\">https:\/\/gitlost-murali.github.io\/blogs\/nlp\/huggingface\/download-huggingface-models<\/a><\/li>\n<li>Deploy a pretrained PyTorch BERT model from HuggingFace on Amazon SageMaker with Neuron container<br \/><a href=\"https:\/\/awsdocs-neuron.readthedocs-hosted.com\/en\/latest\/src\/examples\/pytorch\/byoc_sm_bert_tutorial\/sagemaker_container_neuron.html\" target=\"_blank\" rel=\"noopener\">https:\/\/awsdocs-neuron.readthedocs-hosted.com\/en\/latest\/src\/examples\/pytorch\/byoc_sm_bert_tutorial\/sagemaker_container_neuron.html<\/a><\/li>\n<li>bert-as-service<br \/><a href=\"https:\/\/github.com\/hanxiao\/bert-as-service\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/hanxiao\/bert-as-service<\/a><\/li>\n<li>pytorch-pretrained-BERT<br \/><a href=\"https:\/\/github.com\/Edward-JianQAQ\/pytorch-pretrained-BERT\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Edward-JianQAQ\/pytorch-pretrained-BERT<\/a><\/li>\n<li>Question Answering with a Fine-Tuned BERT<br \/><a href=\"http:\/\/mccormickml.com\/2020\/03\/10\/question-answering-with-a-fine-tuned-BERT\/\" target=\"_blank\" rel=\"noopener\">http:\/\/mccormickml.com\/2020\/03\/10\/question-answering-with-a-fine-tuned-BERT\/<\/a><\/li>\n<li>How to Fine-Tune BERT Transformer with spaCy 3<br \/><a href=\"https:\/\/towardsdatascience.com\/how-to-fine-tune-bert-transformer-with-spacy-3-6a90bfe57647\" target=\"_blank\" rel=\"noopener\">https:\/\/towardsdatascience.com\/how-to-fine-tune-bert-transformer-with-spacy-3-6a90bfe57647<\/a><\/li>\n<li>Using BERT Transformer with SpaCy3 to Train a Relation Extraction Model<br \/><a href=\"https:\/\/hackernoon.com\/using-bert-transformer-with-spacy3-to-train-a-relation-extraction-model-pdm435tf\" target=\"_blank\" rel=\"noopener\">https:\/\/hackernoon.com\/using-bert-transformer-with-spacy3-to-train-a-relation-extraction-model-pdm435tf<\/a><\/li>\n<li>multilang_keyBERT<br \/><a href=\"https:\/\/github.com\/Naviden\/multilang_keyBERT\/blob\/master\/main.ipynb\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Naviden\/multilang_keyBERT\/blob\/master\/main.ipynb<\/a><\/li>\n<li>Tagging-with-KeyBert<br \/><a href=\"https:\/\/github.com\/SinLexT\/Tagging-with-KeyBert\/blob\/main\/app.py\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/SinLexT\/Tagging-with-KeyBert\/blob\/main\/app.py<\/a><\/li>\n<li>Keyphrase Extractor with BERT Embedding Models<br \/><a href=\"https:\/\/github.com\/hsekol-hub\/Phrase-Extractor-using-KeyBERT\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/hsekol-hub\/Phrase-Extractor-using-KeyBERT<\/a><\/li>\n<li>Keyphrase Extractor with BERT Embedding Models<br \/><a href=\"https:\/\/github.com\/inistory\/amazon-fashion-data-description-generation\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/inistory\/amazon-fashion-data-description-generation<\/a><\/li>\n<li>zeroshot_topics<br \/><a href=\"https:\/\/github.com\/AnjanaRita\/zeroshot_topics\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/AnjanaRita\/zeroshot_topics<\/a><\/li>\n<li>Multilang KeyBERT<br \/><a href=\"https:\/\/github.com\/Naviden\/multilang_keyBERT\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/Naviden\/multilang_keyBERT<\/a><\/li>\n<li>Text Extraction with BERT<br \/><a href=\"https:\/\/keras.io\/examples\/nlp\/text_extraction_with_bert\/\" target=\"_blank\" rel=\"noopener\">https:\/\/keras.io\/examples\/nlp\/text_extraction_with_bert\/<\/a><\/li>\n<li>English NER in Flair (default model)<br \/><a href=\"https:\/\/huggingface.co\/flair\/ner-english\" target=\"_blank\" rel=\"noopener\">https:\/\/huggingface.co\/flair\/ner-english<\/a><\/li>\n<li>Tutorial 1: NLP Base Types<br \/><a href=\"https:\/\/github.com\/flairNLP\/flair\/blob\/master\/resources\/docs\/TUTORIAL_1_BASICS.md\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/flairNLP\/flair\/blob\/master\/resources\/docs\/TUTORIAL_1_BASICS.md<\/a><\/li>\n<li>Tutorial 2: Tagging your Text<br \/><a href=\"https:\/\/github.com\/flairNLP\/flair\/blob\/master\/resources\/docs\/TUTORIAL_2_TAGGING.md\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/flairNLP\/flair\/blob\/master\/resources\/docs\/TUTORIAL_2_TAGGING.md<\/a><\/li>\n<li>Hugging Face models<br \/><a href=\"https:\/\/huggingface.co\/models\" target=\"_blank\" rel=\"noopener\">https:\/\/huggingface.co\/models<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>You are overloaded with support questions&#8230; Meanwhile the corporate hacking just shows you that people are reluctant to change and the User Feedback Loop looks&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2022\/02\/a-streamlit-application-that-automate-a-user-support-task-for-p-o-with-an-nlp-keybert-text-analyzer\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">A Streamlit application that automate a User Support task for P.O with an NLP KeyBERT Text Analyzer<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":12129,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Automate user support for P.O. with Streamlit and KeyBERT. Reduce workload and enhance feedback loop with NLP text analyzer tools.","bf_ai_og_title":"Automate P.O. Support with KeyBERT","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3437,3444,3445,3447,3448,3449,3450,3435],"tags":[2147,3493,2854,2852,2779,2874,2579,2808,2531,2387,2316,2793,2873,2875,2872],"class_list":["post-12127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-business-case-studies","category-programming-databases","category-seo-web-marketing","category-technology-trends","category-tools-productivity","category-tutorials-how-to","category-ux-product-design","category-web-development","tag-automate","tag-clip","tag-data-science","tag-easy","tag-experimentation","tag-keybert","tag-keywords","tag-nlp","tag-p-o","tag-poc","tag-python","tag-streamlit","tag-task","tag-text-analyzer","tag-user-support"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-39B","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2022\/02\/all_in_one_automate_po_job_demo_support_keybert_b.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/12127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=12127"}],"version-history":[{"count":29,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/12127\/revisions"}],"predecessor-version":[{"id":12163,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/12127\/revisions\/12163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/12129"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=12127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=12127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=12127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}