Procedure for obtaining a distributed representation of a Japanese sentence using a trained Universal Sentence Encoder
.
A vector of documents can be obtained using Universal Sentence Encoder.
Features Supports multiple languages.
Japanese is supported.
Can handle Japanese sentences as vectors.
Usage Clustering, similarity calculation, feature extraction.
Usage Execute the following command as preparation.
pip install tensorflow tensorflow_hub tensorflow_text numpy Trained models are available.
See the python description below for details on how to use it.
import tensorflow_hub as hub import tensorflow_text import numpy as np # for avoiding error import ssl ssl.
[Read More]