<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mikhail Salnikov on Medium]]></title>
        <description><![CDATA[Stories by Mikhail Salnikov on Medium]]></description>
        <link>https://medium.com/@MSalnikov?source=rss-d25fd7a23202------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Wjf_uXDABYLZ7hFp.jpeg</url>
            <title>Stories by Mikhail Salnikov on Medium</title>
            <link>https://medium.com/@MSalnikov?source=rss-d25fd7a23202------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:08:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MSalnikov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Master Your Online Meetings Workflow with CallBro: The Intro]]></title>
            <link>https://medium.com/@MSalnikov/master-your-workflow-with-callbro-the-intro-ad6d7fae4104?source=rss-d25fd7a23202------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad6d7fae4104</guid>
            <category><![CDATA[ai-meeting-tools]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai-notetaker]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mikhail Salnikov]]></dc:creator>
            <pubDate>Fri, 29 May 2026 16:03:25 GMT</pubDate>
            <atom:updated>2026-05-29T16:06:25.393Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>I recently started a “startup” that aims to solve my personal problem of receiving hundreds of calls every month. The name of our project is “<a href="https://callbro.ai/?utm_source=medium">CallBro.ai</a>” — it’s like calling your friend to remind you or help you with meetings. Yes, it’s a note-taking tool, but it’s not just a note-taker that listens to your calls and provides a summary. It provides a summary based on your personal notes that you can take during the meeting. In this post, I want to introduce you to <a href="https://callbro.ai/?utm_source=medium">CallBro.AI</a> and share what we’ve been doing with my friends over the past few months.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZppNC6V6_qYD326zQzsHGw.png" /></figure><p>In today’s fast-paced world, managing meetings efficiently is crucial. <a href="https://callbro.ai/?utm_source=medium">CallBro.AI</a> is here to help you. This AI meeting tool and AI note taker simplifies meeting management with ease, with a built-in AI notepad.</p><p>Imagine never missing a detail during meetings. The platform offers automatic transcription and note-taking — fast ai transribe and meeting transcribe support — including zoom transcription or Google Meet transcription (and other meeting tools) for online sessions, and works as an AI notetaker when you need structured, searchable records. It integrates seamlessly with any platform, because it’s a no bot meeting notetaker that works with your mic and system audio.</p><p>CallBro.AI is not just an AI notetaker; it enhances your meeting experience by combining your personal notes with automatic transcription and producing automatic meeting minutes — concise AI meeting minutes you can trust. Whether it’s for Zoom, Google Meet, or any other meeting platform, CallBro.AI transcribes your sessions and incorporates your private notes, providing you with a final enhanced note that respects your input. This feature ensures that you have structured, searchable notes that reflect both the transcription and your personal insights, helping you maintain a comprehensive understanding of every meeting.</p><p>The concept behind CallBro.AI is to streamline your meeting experience by allowing you to focus on your ideas and insights, rather than transcribing every detail discussed. Instead of documenting every word spoken, you can concentrate on jotting down your thoughts, key questions for follow-up, or important points that require attention from your team later. For instance, if a participant mentions the need for 8 H100 GPUs for a project, you don’t have to worry about writing that specific detail down. CallBro.AI takes care of the comprehensive transcription, enabling you to stay engaged in the discussion while ensuring that crucial details are captured and can be reviewed later.</p><p>CallBro.AI is equipped with a range of features designed to streamline your meeting workflow and enhance your note-taking experience:</p><ul><li>Listen to Mic and System Audio: Capture audio from any app on your PC or Mac, providing you with accurate transcripts of your meetings.</li><li>Notepad for private notes: Write your private notes during discussions without worrying about missing any details, as CallBro.AI will take care of the transcription.</li><li>Enhanced Notes: Generate comprehensive notes that combine the automatic transcript with your private notes. This includes summaries, action items, AI meeting minutes, and key insights for easy reference.</li><li>Share and Export Features: Effortlessly share your notes using a link or save them in various formats such as PDF, DOCX, or Markdown for convenient access and distribution.</li><li>Chat with Your Notes and Transcript: Engage in discussions with your notes and transcripts in real-time, even during meetings, ensuring you remain focused and informed.</li></ul><p>Well, it’s early staged product, just launched and I will be happy to see any feedback. Try it free on <a href="https://callbro.ai/?utm_source=medium">https://callbro.ai/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad6d7fae4104" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NLP Keras model in browser with TensorFlow.js]]></title>
            <link>https://medium.com/data-science/nlp-keras-model-in-browser-with-tensorflow-js-f4d5035466a2?source=rss-d25fd7a23202------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4d5035466a2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[tensorflowjs]]></category>
            <dc:creator><![CDATA[Mikhail Salnikov]]></dc:creator>
            <pubDate>Thu, 04 Apr 2019 20:56:30 GMT</pubDate>
            <atom:updated>2019-04-04T20:56:30.057Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to use your Keras model in browser with tensorflow.js</h4><p>In this article I’ll attempt to cover three things:</p><ol><li>How to write simple <a href="https://en.wikipedia.org/wiki/Named-entity_recognition">Named-Entity Recognition</a> model — typical <a href="https://en.wikipedia.org/wiki/Natural_language_processing">Natural Language Processing</a> (NLP) task.</li><li>How to export this model to <a href="https://www.tensorflow.org/js">TensorFlow.js</a> format.</li><li>How to make simple WEB application for searching Named-Entity in string without back-end.</li></ol><p><a href="http://deepdivision.net/2019/03/20/nlp-keras-model-in-browser-with-tensorflowjs.html">You can test it on my personal site.</a></p><p>Firstly, this blog post for people who know the main stages of deep learning (RNN, Attention) and who know basic of JavaScript. If you are not good with RNN, I recommend you tread “<a href="http://karpathy.github.io/2015/05/21/rnn-effectiveness/">The Unreasonable Effectiveness of Recurrent Neural Networks</a>” by Andrej Karpathy.</p><blockquote>TensorFlow.js is a JavaScript library for developing and training ML models in JavaScript, and deploying in a browser or on Node.js.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*Rn63hQu9ljtk0wxa.png" /></figure><p>For this example, we will use simple keras model for solving the classic NER task. We will train on <a href="https://www.clips.uantwerpen.be/conll2003/ner/">CoNLL2003</a> data set. Our model it’s just word embedding, GRU and very simple attention mechanism. After we will visualize the attention vector in the browser. If you are familiar with modern approaches for solving a similar task, you know, that this approach is not state of the art. However, for running it in a browser and just, for example, it enough. Furthermore, if you are familiar with NER task, you can skip the next two sections about Named-Entity recognition, data and NER neural network model on Keras and look at the source code.</p><h3>Task and Data</h3><p>Depending on your experience, you may have knowledge of it under different names, like a sequence tagging, Part-of-Speech tagging or, like in our task — Named-Entity recognition.</p><p>In generally, Named-Entity Recognition (NER) task is seq2seq task. For each token from x_i we have to predict token y_i, where x is an input sequence and y is a sequence of named entities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j2vfR4a9c-xQsp5MMcWzvw.png" /></figure><p>In this example, we will be looking for persons (B-PER, I-PER), locations (B-LOC, I-LOC) and organizations (B-ORG, I-ORG), in addition, the model will define special entity — MISC — named entity but not a person, location and organization.</p><p>Firstly, we have to prepare data for a computer (yes, we will use a computer for solving this task :) ).</p><p>In this blog post, we don’t have a goal to make SOTA result on CoNLL2003 data set, that’s why our pre-processing isn’t really good. But just an example, we will load data by <strong><em>load_data</em></strong> method:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7abce0305a5942a09441eb1a54c7610b/href">https://medium.com/media/7abce0305a5942a09441eb1a54c7610b/href</a></iframe><p>As you know, neural networks can’t work with words, only with numbers. That’s why we should represent words as numbers. It’s not a difficult task, we can enumerate all unique words and write the number of word instead word. For storing numbers and words, we can make vocabulary. This vocabulary should support words “unknown” (&lt;UNK&gt;) because when we will make a prediction for a new string with new words that are not in the vocabulary. Word “padded” (&lt;PAD&gt;) because for the neural network, all strings should have the same size, and when some string will smaller than another, we fill the gaps with this word.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/329014af4dcd923261914a6006cd2b74/href">https://medium.com/media/329014af4dcd923261914a6006cd2b74/href</a></iframe><p>In addition, let’s write the simple helper for translate sentence to the sequence of numbers.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/19fa839b58e5582cdc8b17e154d14f6c/href">https://medium.com/media/19fa839b58e5582cdc8b17e154d14f6c/href</a></iframe><p>As you can read above, we should pad sequences for working with neural network, to do this, you can use internal Keras method <a href="https://keras.io/preprocessing/sequence/#pad_sequences"><em>pad_sequences</em></a><em>.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9262a76669e663965d70e5b7639114fd/href">https://medium.com/media/9262a76669e663965d70e5b7639114fd/href</a></iframe><h3>Model</h3><blockquote>Let me guess…RNN ?</blockquote><p>Yes, it’s RNN. More specifically, it’s <a href="https://arxiv.org/pdf/1412.3555.pdf">GRUs (Gated Recurrent Units)</a> and simple attention layer. As a word representation used GloVe. In this blog post, I will not go into the details and just leave the code of model here. I hope it’s easy to understand.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/464eaade8c858ba144422309dc448ccc/href">https://medium.com/media/464eaade8c858ba144422309dc448ccc/href</a></iframe><p>After building the model, we should compile, train and save the model. You can guess, for running this model in a browser, we should save not only weights for the model but also model description and vocabularies for words and tags. Let’s define the method for the export model and vocabularies to JavaScript supported format (JSON basically).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc505a1869178c2ededc1ecab2c5d70b/href">https://medium.com/media/fc505a1869178c2ededc1ecab2c5d70b/href</a></iframe><p>Finally, let’s compile, train and export model:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e3aee1a653cfb14bb3a692e4448896b/href">https://medium.com/media/0e3aee1a653cfb14bb3a692e4448896b/href</a></iframe><p>Full code for this steps, you can find in my<a href="https://github.com/MihailSalnikov/NERjs/blob/master/train.py"> GitHub repository in train.py.</a></p><h3>Development environment</h3><p>Well, the model is ready and now, we should start developing a web application to evaluating this mode in a browser. We need a development environment. Basically, it’s not important, how you will store your model, weights, and vocabulary, but for “easy start”, I will show you, my solution — node.js local server.</p><p>We need two files: <em>package.json</em> and <em>server.js.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f43d6b0ce9202c7c605456dc4fa751e/href">https://medium.com/media/1f43d6b0ce9202c7c605456dc4fa751e/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/967c4f565f71095f4f60df1348c690d3/href">https://medium.com/media/967c4f565f71095f4f60df1348c690d3/href</a></iframe><p>in server.js we defined the static folder for storing model, js scripts and all other files. For using this server, you should enter</p><p><strong><em>npm install &amp;&amp; node server.js</em></strong></p><p>in your terminal. After that, you can get access to your files in the browser by <a href="http://localhost:8081/">http://localhost:8081</a></p><h3>Web application</h3><p>There are<em> index.html</em>, <em>predict.js</em> and files that were generated in previous step. As you see it’s a very small web application. index.html contains requirements and the input field for entering strings.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a575966275f9e202d4ef7fe7fd3ecdc0/href">https://medium.com/media/a575966275f9e202d4ef7fe7fd3ecdc0/href</a></iframe><p>Now, the most interesting part of the blog post — about tensorflow.js. You can load model by <strong><em>tf.loadLayersModel</em></strong> method calling <strong><em>await</em></strong> operator. It’s important because we don’t want to block our web application while loading model. If we load model, we will get the model that can predict tokens only, but what about attention vector? How to get activations from attention? For getting data from internal layers, in tensorflow.js we should make a new model which outputs layers will contain outputs and other layers from the original model, like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7655941338ac23780b97362e2470a9b/href">https://medium.com/media/c7655941338ac23780b97362e2470a9b/href</a></iframe><p>Here, <strong><em>model</em></strong> is the original model, <strong><em>emodel</em></strong> is model with the <em>attention_vector</em> as outputs.</p><h4>Preprocessing</h4><p>Now we have to implement preprocessing for strings as we did in our Python script. It’s a not a difficult task for us because the regular expression on Python and JavaScript is very similar and other method are similar too.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/904e05a0ba10f9ddb80c5a73b5c4f342/href">https://medium.com/media/904e05a0ba10f9ddb80c5a73b5c4f342/href</a></iframe><h4>Make predictions</h4><p>Now we should provide transfer data from simple text string format to TF format — tensor. In the previous section, we wrote helpers to transfer string to an array of numbers. Now we should create <strong><em>tf.tensor</em></strong> from this array. As you remember, the input layer of the model has the shape <strong><em>(None, 113)</em></strong>, that’s why we should expand the dimension of input tensor. Well, it’s all, now we can make a prediction in the browser by <strong><em>.predict</em></strong> method. After that, you should print predicted data into a browser and your web application with neural network without back-end is ready.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d873315bf71f4e259d3f8b63055e279e/href">https://medium.com/media/d873315bf71f4e259d3f8b63055e279e/href</a></iframe><h3>Conclusion</h3><p>TensorFlow.js is a library for using neural networks in a browser like a chrome, Firefox or safari. If you open this web app in your iPhone or Android smartphone, it will work too.</p><p>You can test it on my personal web site by this link: <a href="http://deepdivision.net/2019/03/20/nlp-keras-model-in-browser-with-tensorflowjs.html">http://deepdivision.net/2019/03/20/nlp-keras-model-in-browser-with-tensorflowjs.html</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2kohpjx0ae9NeDJzdrWLBg.png" /></figure><p>In addition, you can find this code with some additions in my <a href="https://github.com/MihailSalnikov/NERjs">GitHub</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4d5035466a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/nlp-keras-model-in-browser-with-tensorflow-js-f4d5035466a2">NLP Keras model in browser with TensorFlow.js</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Text clustering with K-means and tf-idf]]></title>
            <link>https://medium.com/@MSalnikov/text-clustering-with-k-means-and-tf-idf-f099bcf95183?source=rss-d25fd7a23202------2</link>
            <guid isPermaLink="false">https://medium.com/p/f099bcf95183</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[scikit-learn]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[tf-idf]]></category>
            <dc:creator><![CDATA[Mikhail Salnikov]]></dc:creator>
            <pubDate>Sun, 05 Aug 2018 21:07:26 GMT</pubDate>
            <atom:updated>2023-03-07T18:40:32.443Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BXt6-OGyh5yjPx6cRmRC_g.png" /></figure><p>In this post, I’ll try to describe how to clustering text with knowledge, how important word is to a string. Same words in different strings can be badly affected to clustering this kind of data isn’t important for deciding. The first part of this publication is the general information about TF-IDF with examples on Python. In the second part, I’ll provide you the example showed how this approach can be applied to real tasks.</p><p>TF-IDF is useful for clustering tasks, like a document clustering or in other words, tf-idf can help you understand what kind of document you got now.</p><h3>TF-IDF</h3><p><strong>Term Frequency-Inverse Document Frequency</strong> is a numerical statistic that demonstrates how important a word is to a corpus.</p><p>Term Frequency is just ratio number of current word to the number of all words in document/string/etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/0*xNkp82SLMbC_tmyC.png" /></figure><p>Frequency of term t_i, where n_t — the number of t_i in current document/string, the sum of n_k is the number of all terms in current document/string.</p><p>Inverse Document Frequency is a log of the ratio of the number of all documents/string in the corpus to the number of documents with term t_i.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/0*938tpsH_EeWDsx71.png" /></figure><p>tf-idf(t, d, D) is the product tf(t, d) to idf(t, D).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*bIueBhv8fbufUYIq.png" /></figure><p>If you want more theoretic information about TF-IDF I want advice you read publication on <a href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">Wikipedia</a> about it or read <a href="https://nlp.stanford.edu/IR-book/html/htmledition/tf-idf-weighting-1.html">NLP Stanford post</a>.</p><p>Well, now time for a real example on Python.</p><h4>TF-IDF example on Python</h4><p><em>For all code below you need </em><a href="https://www.python.org/downloads/"><em>python 3.5 or newer</em></a><em> and </em><a href="https://pypi.org/project/scikit-learn/">scikit-learn</a><em> and </em><a href="https://pypi.org/project/pandas/"><em>pandas</em></a><em> packages.</em></p><p>Firstly, let’s talk about a data set. For this really simple example, I just set a simple corpus with 3 strings. In this example, strings play a role documents.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9619995764ec2982dad95e58003c3695/href">https://medium.com/media/9619995764ec2982dad95e58003c3695/href</a></iframe><p>After that lets make <a href="https://en.wikipedia.org/wiki/Bag-of-words_model">bags of words</a> for our corpus and for every string too. But before we have to clear the data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ffe423060e314d86d3cc165204377f4/href">https://medium.com/media/0ffe423060e314d86d3cc165204377f4/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odzWCeYMHVU9A298kV8ZjQ.png" /><figcaption>that’s what we get</figcaption></figure><p>In the case of the term frequency, the simplest choice is to use the raw count of a term in a string. For calculating tf for all terms, we must fill a dictionary as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6d1e9b50b89729ae405b145b65e44a91/href">https://medium.com/media/6d1e9b50b89729ae405b145b65e44a91/href</a></iframe><p>idf is a measure of how much information the token or word in our case, provides. For calculating idf we need fill dict too.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/040151ee26173f801dcf3e85a0e6a04a/href">https://medium.com/media/040151ee26173f801dcf3e85a0e6a04a/href</a></iframe><p>Now, I remain you that tf-idf is the product of tf to idf. For our python example, tf-idf it dict with the corresponding products.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/956c68f8e25c7615a29cc1b0ba6d4084/href">https://medium.com/media/956c68f8e25c7615a29cc1b0ba6d4084/href</a></iframe><p>OK, now we have tf-idf weights for each word in our corpus. Below you can clearly see the difference between the original bag of words and the new bag of words with tf-idf weights. For example ‘dogs’, ‘cats’ and ‘mouse’ is important words, but word ‘and’ is not important, because this word is in all the strings and we can’t understand what is a string by the word ‘and’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oTtmOzgTzW5utTa0HXnBFw.png" /><figcaption>TF-IDF bag of words</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odzWCeYMHVU9A298kV8ZjQ.png" /><figcaption>original bag of words</figcaption></figure><h3>KMeans clustering with TF-IDF weights</h3><p>Now, when we understand how TF-IDF work the time has come for almost real example of clustering with TF-IDF weights. For real life we can use scikit-learn implementation of <a href="http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html">TF-IDF</a> and <a href="http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html">KMeans</a> and I suggest you use implementations from scikit-learn or from another popular libraries or frameworks because it’s reducing a number of potential errors in your code.</p><p>For this example, we must import TF-IDF and KMeans, added corpus of text for clustering and process its corpus.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/59ad2beaae4841580aa80a044a2f8a02/href">https://medium.com/media/59ad2beaae4841580aa80a044a2f8a02/href</a></iframe><p>After that let’s fit Tfidf and let’s fit KMeans, with scikit-learn it’s really easy.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/73bbc5da1cbc6d0d30bd85c61d523e22/href">https://medium.com/media/73bbc5da1cbc6d0d30bd85c61d523e22/href</a></iframe><p>Now we have learned KMeans model with k = 2 for clustering strings, it’s easy, right?<br>For predicting, just use predict method as follows.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36e1166fc38814ed057d2961f5bdfa70/href">https://medium.com/media/36e1166fc38814ed057d2961f5bdfa70/href</a></iframe><p>There we can see, that string ‘<em>tf and idf is awesome!</em>’ and ‘<em>some androids is there</em>’ from different clusters and it’s right.</p><p>In addition, you can read <a href="https://github.com/MihailSalnikov/tf-idf_and_k-means/blob/master/main.ipynb">Jupyter notebook</a> with this examples.</p><p>Thanks for the reading, please leave a feedback. This can help me improve the quality of my future posts.</p><p>And don’t forget to follow me on <a href="https://twitter.com/MihailSalnikov">twitter</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f099bcf95183" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>