TEXT or PDF file.
The sentence closest to the input prompt.
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
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
User (press q to exit): nnapiの速度
Text: NNAPIを使用することで、Google PixelのEdgeTPUや、QualcommやMediatekのNPUを 使用した高速推論が可能になります。 (Similarity:0.863)
Pytorch
ONNX opset=11
multilingual-e5-base.onnx.prototxt
multilingual-e5-base.opt.onnx.prototxt
multilingual-e5-large.onnx.prototxt