Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.01 KB

File metadata and controls

66 lines (48 loc) · 1.01 KB

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