Skip to content

Files

This branch is 3 commits ahead of, 538 commits behind tensorflow/tfjs-models:master.

Universal Sentence Encoder Demo

Contents

The demo shows how to use embeddings produced by the Universal Sentence Encoder.

Setup

cd into the demos folder:

cd universal-sentence-encoder/demos

Install dependencies and prepare the build directory:

yarn

To watch files for changes, and launch a dev server:

yarn watch

If you are developing universal-sentence-encoder locally, and want to test the changes in the demos

cd into the universal-sentence-encoder folder:

cd universal-sentence-encoder

Install dependencies:

yarn

Build and publish universal-sentence-encoder locally:

yarn publish-local

Cd into the demos and install dependencies:

cd demos
yarn

Link the local universal-sentence-encoder to the demos:

yarn link-local

Start the dev demo server:

yarn watch

To get future updates from the universal-sentence-encoder source code:

# cd up into the universal-sentence-encoder directory
cd ../
yarn publish-local