Skip to content

Latest commit

 

History

History

multilingual-e5

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Multilingual-E5

Input

TEXT or PDF file.

Output

The sentence closest to the input prompt.

Requirements

This model requires additional modules.

pip3 install ailia_tokenizer

If you want to load pdf file, you need to install pdfminer.six.

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 multilingual-e5.py

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

$ python3 multilingual-e5.py -i FILE_PATH

Example

User (press q to exit): nnapiの速度
Text: NNAPIを使用することで、Google PixelのEdgeTPUや、QualcommやMediatekのNPUを 使用した高速推論が可能になります。 (Similarity:0.863)

Reference

Framework

Pytorch

Model Format

ONNX opset=11

Netron

multilingual-e5-base.onnx.prototxt
multilingual-e5-base.opt.onnx.prototxt
multilingual-e5-large.onnx.prototxt