How to use your Keras model in browser with tensorflow.js

In this article I’ll attempt to cover three things:

  1. How to write simple Named-Entity Recognition model — typical Natural Language Processing (NLP) task.
  2. How to export this model to TensorFlow.js format.
  3. How to make simple WEB application for searching Named-Entity in string without back-end.

You can test it on my personal site.

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 “The Unreasonable Effectiveness of Recurrent Neural Networks” by Andrej Karpathy.

TensorFlow.js is a JavaScript library…


Image for post
Image for post

First of all, I’m not a native English speaker, then I will probably make a lot of mistakes, sorry about that.

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.

TF-IDF is useful for clustering…

Mikhail Salnikov

Data Scientist at @Wallarm. DeepDivision.net

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store