Skip to content

Latest commit

 

History

History

sentence_transformers_japanese

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Sentence Transformers Japanese

Input

TEXT or PDF file.

Output

The sentence closest to the input prompt.

Requirements

This model requires additional module if you want to load pdf file.

pip3 install pdfminer.six

Usage

Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.

For the sample text,

$ python3 sentence_transformer_japanese.py

If you want to specify the text or pdf file, put the file path after the -i option.

$ python3 sentence_transformer_japanese.py -i FILE_PATH

Example

User (press q to exit): nnapiの速度
Text: 実際、弊社でもSnapdragon 8+ Gen1とyolox_tinyにおいて、CPU(float)に比べてNNAPI NPU(int8)で15倍高速に動作することを確認しています。 (Similarity:0.592)

Reference

Framework

Pytorch

Model Format

ONNX opset=11

Netron

paraphrase-multilingual-mpnet-base-v2.onnx.prototxt